[Pkg-javascript-commits] [node-async] 157/480: use uglify, nodeunit and nodelint directly from node_modules
Jonas Smedegaard
js at moszumanska.debian.org
Fri May 2 08:58:21 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 ef0ed4d756ca36e8015b6c7a9c67e064eae6f699
Author: Caolan McMahon <caolan at caolanmcmahon.com>
Date: Sun Feb 26 18:40:34 2012 -0800
use uglify, nodeunit and nodelint directly from node_modules
---
Makefile | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 8b573fd..bad647c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
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)
+NODEUNIT = $(CWD)/node_modules/nodeunit/bin/nodeunit
+UGLIFY = $(CWD)/node_modules/uglify-js/bin/uglifyjs
+NODELINT = $(CWD)/node_modules/nodelint/nodelint
BUILDDIR = dist
@@ -11,15 +11,15 @@ all: clean test build
build: $(wildcard lib/*.js)
mkdir -p $(BUILDDIR)
- $(WITH_UGLIFY) uglifyjs lib/async.js > $(BUILDDIR)/async.min.js
+ $(UGLIFY) lib/async.js > $(BUILDDIR)/async.min.js
test:
- $(WITH_NODEUNIT) nodeunit test
+ $(NODEUNIT) test
clean:
rm -rf $(BUILDDIR)
lint:
- $(WITH_NODELINT) nodelint --config nodelint.cfg lib/async.js
+ $(NODELINT) --config nodelint.cfg lib/async.js
.PHONY: test build all
--
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