|
33 | 33 | "scripts": { |
34 | 34 | "compile": "ngc -p tsconfig-aot.json && node umd-bundler.js", |
35 | 35 | "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", |
37 | 38 | "post:publish": "npm run build:demo && gh-pages -d dist-demo", |
38 | 39 | "start": "ng serve", |
39 | 40 | "build:demo": "ng build", |
40 | 41 | "test": "ng test -sr", |
41 | 42 | "test:w": "ng test -w", |
42 | 43 | "test:cov": "ng test -sr -cc", |
43 | | - "lint": "ng lint --fix --type-check", |
| 44 | + "lint": "ng lint --type-check", |
44 | 45 | "e2e": "ng e2e", |
45 | 46 | "changelog": "conventional-changelog -i CHANGELOG.md -s -p angular", |
46 | 47 | "github-release": "conventional-github-releaser -p angular", |
47 | 48 | "version": "npm run changelog && git add CHANGELOG.md", |
48 | 49 | "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 | + } |
50 | 58 | }, |
51 | 59 | "devDependencies": { |
52 | 60 | "@angular/cli": "1.6.8", |
|
70 | 78 | "core-js": "2.5.1", |
71 | 79 | "font-awesome": "4.7.0", |
72 | 80 | "gh-pages": "1.1.0", |
| 81 | + "husky": "0.14.3", |
73 | 82 | "jasmine-core": "2.8.0", |
74 | 83 | "jasmine-data-provider": "2.2.0", |
75 | 84 | "jasmine-spec-reporter": "4.2.1", |
|
82 | 91 | "karma-phantomjs-launcher": "1.0.4", |
83 | 92 | "phantomjs-polyfill": "0.0.2", |
84 | 93 | "phantomjs-prebuilt": "2.1.16", |
| 94 | + "prettier": "1.10.2", |
| 95 | + "pretty-quick": "1.4.1", |
85 | 96 | "protractor": "5.2.0", |
86 | 97 | "rimraf": "2.6.2", |
87 | 98 | "rxjs": "5.5.2", |
|
0 commit comments