install missing node modules locally
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 18 Sep 2013 14:32:42 +0000 (16:32 +0200)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 18 Sep 2013 14:32:42 +0000 (16:32 +0200)
test/Makefile
test/README.txt

index 8f90995..532e776 100644 (file)
@@ -2,7 +2,11 @@
 
 all: check
 
-clean distclean:
+clean:
+
+distclean:
+       rm -rf node_modules
+       
 
 check:
        jasmine-node ./spec 
@@ -14,5 +18,9 @@ jsbeautifier jsb indent:
          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 ]"
index 86ca30f..6c6b504 100644 (file)
@@ -35,9 +35,7 @@ https://github.com/pivotal/jasmine
 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