Skip to content

Commit b06bab3

Browse files
author
Georgii Rychko
authored
Merge pull request #222 from valor-software/develop
sync master with develop
2 parents 36a4760 + 12852c9 commit b06bab3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1524
-1116
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.vscode
33
.publish
44
dist
5-
demo-dist
5+
dist-demo
66
build
77
coverage
88
bundles

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
printWidth: 120
2+
singleQuote: true
3+
bracketSpacing: true

e2e/app.e2e-spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ describe('Tree App', () => {
3131
expect(browser.isElementPresent(antiquaNode)).toBeTruthy();
3232
expect(await antiquaNode.getText()).toEqual('Antiqua');
3333

34-
const attrs = {id: 'antiqua', class: 'test'};
34+
const attrs = { id: 'antiqua', class: 'test' };
3535

3636
const expectations = Object.keys(attrs).map((key: string) => {
37-
return antiquaNode.getAttribute(key).then((value: string) => expect(value).toEqual(attrs[key]));
37+
return antiquaNode.getAttribute(key).then((value: string) => expect(value).toEqual(attrs[key]));
3838
});
3939

4040
return Promise.all(expectations as any);

package.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,28 @@
3333
"scripts": {
3434
"compile": "ngc -p tsconfig-aot.json && node umd-bundler.js",
3535
"clean": "rimraf coverage build dist dist-demo bundles factories .publish",
36-
"pre:publish": "npm run clean && npm run test && npm run lint && npm run compile && mkdir -p dist && cp -R src/styles.css README.md media dist",
36+
"pre:publish":
37+
"npm run clean && npm run test && npm run lint && npm run compile && mkdir -p dist && cp -R src/styles.css README.md media dist",
3738
"post:publish": "npm run build:demo && gh-pages -d dist-demo",
3839
"start": "ng serve",
3940
"build:demo": "ng build",
4041
"test": "ng test -sr",
4142
"test:w": "ng test -w",
4243
"test:cov": "ng test -sr -cc",
43-
"lint": "ng lint --fix --type-check",
44+
"lint": "ng lint --type-check",
4445
"e2e": "ng e2e",
4546
"changelog": "conventional-changelog -i CHANGELOG.md -s -p angular",
4647
"github-release": "conventional-github-releaser -p angular",
4748
"version": "npm run changelog && git add CHANGELOG.md",
4849
"postversion": "git push origin master && git push --tags && npm run github-release && node publish.js",
49-
"webdriver-update": "node ./node_modules/protractor/bin/webdriver-manager update"
50+
"webdriver-update": "node ./node_modules/protractor/bin/webdriver-manager update",
51+
"precommit": "pretty-quick --staged",
52+
"prettier": "prettier --write '{.,src,test}/**/*.ts'"
53+
},
54+
"husky": {
55+
"hooks": {
56+
"pre-commit": "npm run lint && pretty-quick --staged"
57+
}
5058
},
5159
"devDependencies": {
5260
"@angular/cli": "1.6.8",
@@ -70,6 +78,7 @@
7078
"core-js": "2.5.1",
7179
"font-awesome": "4.7.0",
7280
"gh-pages": "1.1.0",
81+
"husky": "0.14.3",
7382
"jasmine-core": "2.8.0",
7483
"jasmine-data-provider": "2.2.0",
7584
"jasmine-spec-reporter": "4.2.1",
@@ -82,6 +91,8 @@
8291
"karma-phantomjs-launcher": "1.0.4",
8392
"phantomjs-polyfill": "0.0.2",
8493
"phantomjs-prebuilt": "2.1.16",
94+
"prettier": "1.10.2",
95+
"pretty-quick": "1.4.1",
8596
"protractor": "5.2.0",
8697
"rimraf": "2.6.2",
8798
"rxjs": "5.5.2",

0 commit comments

Comments
 (0)