Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added 'uglifyjs' as an explicit devDependency.

  • Loading branch information...
commit ce0fa62a8454655a6c59a45285f73daec10945be 1 parent 419827c
Reed Riley reedriley authored
Showing with 6 additions and 4 deletions.
  1. +3 −2 Makefile
  2. +3 −2 package.json
5 Makefile
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,7 +18,7 @@ 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
@@ -25,7 +26,7 @@ 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
5 package.json
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" }
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.