atcheck/lsscanner/new_ubuntu/node_modules_win/node-datetime/Makefile

18 lines
352 B
Makefile
Raw Normal View History

2019-12-16 18:42:21 +01:00
init:
@echo 'create git pre-commit hook'
ln -s ../../lint.sh .git/hooks/pre-commit
@echo 'adjust pre-commit hook file permission'
chmod +x .git/hooks/pre-commit
@echo 'install dependencies'
npm install
@echo 'done'
gen:
node ./scripts/gen.js
.PHONY: test
test:
./node_modules/mocha/bin/mocha test/index.js -s 10 -R spec -b --timeout 60000