Skip to content
Snippets Groups Projects
Commit d1cf0a43 authored by Ray Schamp's avatar Ray Schamp Committed by GitHub
Browse files

Merge pull request #27 from rschamp/hooks

Make git hooks a bit less cumbersome
parents 71a8a30c 560849ac
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,6 @@ to the git hooks for the project. Create a file called `.opt-in` in the root of
the project with the contents:
```
precommit
prepush
postmerge
postrewrite
......@@ -48,11 +47,8 @@ postrewrite
Or you can include only the hooks you would like to use.
### precommit
Run lint before committing
### prepush
Run tests before pushing
Run lint before pushing
### postmerge
`npm install` after merging
......
......@@ -13,8 +13,7 @@
"lint": "eslint . --ext .js,.jsx",
"postmerge": "opt --in postmerge --exec 'npm install'",
"postrewrite": "opt --in postrewrite --exec 'npm install'",
"precommit": "opt --in precommit --exec 'npm run lint'",
"prepush": "opt --in prepush --exec 'npm run test'",
"prepush": "opt --in prepush --exec 'npm run lint'",
"start": "webpack-dev-server --port $npm_package_config_port --content-base=./build",
"test": "npm run lint && npm run build"
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment