projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jasmine-node needs to catch errors, and exit with non-zero status code
[mkws-moved-to-github.git]
/
test
/
Makefile
diff --git
a/test/Makefile
b/test/Makefile
index
264fda8
..
8891679
100644
(file)
--- a/
test/Makefile
+++ b/
test/Makefile
@@
-2,17
+2,25
@@
all: check
all: check
-clean distclean:
+clean:
+
+distclean:
+ rm -rf node_modules
+
check:
check:
- jasmine-node ./spec
+ jasmine-node --captureExceptions ./spec
test: check
test: check
-jsbeautifier jsb:
+jsbeautifier jsb indent:
for i in ./spec/*.js ./js/*.js; do \
jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \
done
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:
help:
- @echo "make [ all | clean | check | jsbeautifier ]"
+ @echo "make [ all | clean | check | jsbeautifier | node-modules ]"