Skip to content

Commit

Permalink
Added 'uglifyjs' as an explicit devDependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
reedriley committed Sep 19, 2011
1 parent 419827c commit ce0fa62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions 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
Expand All @@ -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

Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -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.