From ce0fa62a8454655a6c59a45285f73daec10945be Mon Sep 17 00:00:00 2001 From: Reed Riley Date: Sun, 18 Sep 2011 23:01:20 -0700 Subject: [PATCH] Added 'uglifyjs' as an explicit devDependency. --- Makefile | 5 +++-- package.json | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ea4d5c6ac..5b5bcc115 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/package.json b/package.json index 2e2108099..16d1b37da 100644 --- a/package.json +++ b/package.json @@ -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" } -} \ No newline at end of file +}