Skip to content

Commit

Permalink
Add precommit with husky
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jan 11, 2018
1 parent 46912b2 commit c528d47
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"eslint": "^4.1.1",
"expect": "^1.20.2",
"html-webpack-plugin": "^2.30.1",
"husky": "^0.14.3",
"istanbul": "^0.4.2",
"jsdom": "^11.2.0",
"mocha": "^3.1.2",
Expand Down Expand Up @@ -76,6 +77,7 @@
"scripts": {
"lint": "eslint src",
"check": "npm run lint && npm run test",
"precommit": "npm run format && git add",
"build": "npm run check && npm run v:patch && npm run build-dev && webpack --env=prod",
"build-n": "npm run check && npm run build:css && webpack --env=prod",
"build-dev": "webpack --env=dev && npm run build:css",
Expand Down

0 comments on commit c528d47

Please sign in to comment.