X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2FMakefile;h=8891679caa31270b38be317c24235534ceaac68b;hb=c6573b00a7fd15722df7ca5155a46fff05b1040c;hp=19476c31f97be638a5c3092755abf77756403fd6;hpb=e40d841f04eac5f811a4672d7986b05f574be824;p=mkws-moved-to-github.git diff --git a/test/Makefile b/test/Makefile index 19476c3..8891679 100644 --- a/test/Makefile +++ b/test/Makefile @@ -4,8 +4,23 @@ all: check clean: +distclean: + rm -rf node_modules + + check: - jasmine-node ./spec + jasmine-node --captureExceptions ./spec + +test: check + +jsbeautifier jsb indent: + for i in ./spec/*.js ./js/*.js; do \ + jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \ + done + +node-modules: node_modules +node_modules: + npm install jquery jsdom request jasmine-node help: - @echo "make [ all | clean | check ]" + @echo "make [ all | clean | check | jsbeautifier | node-modules ]"