build: setup the precommit hook

This commit is contained in:
Alexander Zhukov 2017-05-24 13:51:13 +03:00
parent e11c965e2f
commit d5f69647aa
2 changed files with 30 additions and 1 deletions

View file

@ -20,7 +20,8 @@
"lint:styles": "stylelint ./src/**/*.scss",
"lint:ci": "npm run lint && npm run lint:styles",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "ng e2e"
"e2e": "ng e2e",
"precommit": "npm run lint:ci"
},
"private": true,
"dependencies": {
@ -72,6 +73,7 @@
"@types/node": "6.0.73",
"angular-cli-ghpages": "0.5.0",
"codelyzer": "3.0.1",
"husky": "0.13.3",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "3.2.0",
"karma": "1.4.1",