Skip to content

Commit

Permalink
Add pre-commit hook (to launch tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgreg committed Feb 4, 2019
1 parent 4573faf commit b270164
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ then :

`npm test`

## Pre-commit hook

To install the pre-commit hook (which launch tests): `ln -s ../../pre-commit.sh .git/hooks/pre-commit`

## Contributors

Thanks to all contributors : https://github.com/Mappy/Leaflet-active-area/graphs/contributors
Expand Down
2 changes: 2 additions & 0 deletions pre-commit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash -x
npm run test

0 comments on commit b270164

Please sign in to comment.