[Pkg-javascript-commits] [node-async] 144/480: updated package.json to specify devDependencies. updated Makefile to use cli versions of dev dependencies in node_modules

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:20 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-async.

commit 4cecd8a814d14cfba8667cc623d7f088b743d001
Author: Jonathan Stewmon <jstewmon at gmail.com>
Date:   Mon Jan 23 11:21:23 2012 -0600

    updated package.json to specify devDependencies. updated Makefile to use cli versions of dev dependencies in node_modules
---
 Makefile     | 12 ++++++++----
 package.json |  5 +++++
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 00f07ea..8b573fd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,25 @@
 PACKAGE = asyncjs
 NODEJS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node)
+CWD := $(shell pwd)
+WITH_NODEUNIT = PATH=$(CWD)/node_modules/nodeunit/bin:$(PATH)
+WITH_UGLIFY = PATH=$(CWD)/node_modules/uglify-js/bin:$(PATH)
+WITH_NODELINT = PATH=$(CWD)/node_modules/nodelint/bin:$(PATH)
 
 BUILDDIR = dist
 
-all: build
+all: clean test build
 
 build: $(wildcard  lib/*.js)
 	mkdir -p $(BUILDDIR)
-	uglifyjs lib/async.js > $(BUILDDIR)/async.min.js
+	$(WITH_UGLIFY) uglifyjs lib/async.js > $(BUILDDIR)/async.min.js
 
 test:
-	nodeunit test
+	$(WITH_NODEUNIT) nodeunit test
 
 clean:
 	rm -rf $(BUILDDIR)
 
 lint:
-	nodelint --config nodelint.cfg lib/async.js
+	$(WITH_NODELINT) nodelint --config nodelint.cfg lib/async.js
 
 .PHONY: test build all
diff --git a/package.json b/package.json
index 92f5546..6f5eb08 100644
--- a/package.json
+++ b/package.json
@@ -13,4 +13,9 @@
     , "url" : "http://github.com/caolan/async/raw/master/LICENSE"
     }
   ]
+, "devDependencies":
+    { "uglify-js": ">0.0.0"
+    , "nodeunit": ">0.0.0"
+    , "nodelint": ">0.0.0"
+    }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list