1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
subject: remove node module
author: Sruthi Chandran <srud@disroot.org>
forwarded: not needed
Do not use node_modules but global path
Index: node-chai/Makefile
===================================================================
--- node-chai.orig/Makefile
+++ node-chai/Makefile
@@ -8,13 +8,13 @@ REPORTER = dot
all: chai.js
-chai.js: node_modules lib/*
- @printf "==> [Browser :: build]\n"
- @./node_modules/.bin/browserify \
- --bare \
- --outfile chai.js \
- --standalone chai \
- --entry index.js
+chai.js: lib/*
+# @printf "==> [Browser :: build]\n"
+# @./node_modules/.bin/browserify \
+# --bare \
+# --outfile chai.js \
+# --standalone chai \
+# --entry index.js
#
# Release Task
@@ -40,18 +40,18 @@ release-major:
# Node Module
#
-node_modules: package.json
- @npm install
+#node_modules: package.json
+# @npm install
#
# Tests
#
-test: test-node test-phantom
+test: test-node
-test-node: node_modules
+test-node:
@printf "==> [Test :: Node.js]\n"
- @NODE_ENV=test ./node_modules/.bin/mocha \
+ @NODE_ENV=test mocha \
--require ./test/bootstrap \
--reporter $(REPORTER) \
$(TESTS)
|