Permalink
Browse files

Added 'uglifyjs' as an explicit devDependency.

  • Loading branch information...
1 parent 419827c commit ce0fa62a8454655a6c59a45285f73daec10945be @reedriley reedriley committed Sep 19, 2011
Showing with 6 additions and 4 deletions.
  1. +3 −2 Makefile
  2. +3 −2 package.json
View
@@ -1,6 +1,7 @@
TESTS = test/*.js
SRC = $(shell find lib -name "*.js" -type f)
+UGLIFY = $(shell find node_modules -name "uglifyjs" -type f)
UGLIFY_FLAGS = --no-mangle
all: jade.min.js runtime.min.js
@@ -17,15 +18,15 @@ jade.js: $(SRC)
@node support/compile.js $^
jade.min.js: jade.js
- @uglifyjs $(UGLIFY_FLAGS) $< > $@ \
+ @$(UGLIFY) $(UGLIFY_FLAGS) $< > $@ \
&& du jade.min.js \
&& du jade.js
runtime.js: lib/runtime.js
@cat support/head.js $< support/foot.js > $@
runtime.min.js: runtime.js
- @uglifyjs $(UGLIFY_FLAGS) $< > $@ \
+ @$(UGLIFY) $(UGLIFY_FLAGS) $< > $@ \
&& du runtime.min.js \
&& du runtime.js
View
@@ -17,8 +17,9 @@
"less": ">= 0.0.1",
"markdown": ">= 0.0.1",
"stylus": ">= 0.0.1",
- "uubench": "0.0.1"
+ "uubench": "0.0.1",
+ "uglify-js": ">= 1.0.7"
},
"scripts" : { "prepublish" : "npm prune" },
"engines": { "node": ">= 0.1.98" }
-}
+}

0 comments on commit ce0fa62

Please sign in to comment.