1 | init:
|
2 | @echo 'create git pre-commit hook'
|
3 | ln -s ../../lint.sh .git/hooks/pre-commit
|
4 | @echo 'adjust pre-commit hook file permission'
|
5 | chmod +x .git/hooks/pre-commit
|
6 | @echo 'install dependencies'
|
7 | npm install
|
8 | @echo 'done'
|
9 |
|
10 | gen:
|
11 | node ./scripts/gen.js
|
12 |
|
13 | .PHONY: test
|
14 | test:
|
15 | ./node_modules/mocha/bin/mocha test/index.js -s 10 -R spec -b --timeout 60000
|
16 |
|
17 |
|