all: check
-clean distclean:
+clean:
+
+distclean:
+ rm -rf node_modules
+
check:
jasmine-node ./spec
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 | jsbeautifier ]"
+ @echo "make [ all | clean | check | jsbeautifier | node-modules ]"
Installation
-------------------------------------
1. install node.js, see http://nodejs.org/
-2. install node modules with npm
-
-npm install jquery jsdom request jasmine-node
+2. install node modules with npm: make node-modules
--
Copyright (c) 2013 IndexData ApS. http://indexdata.com