Permalink
Browse files

Update makefile for UglifyJS2, ignore vim undo files

  • Loading branch information...
1 parent d4c51ad commit 8768069dd78019d6ba1954e21a251b27d7c60897 @danro danro committed Mar 24, 2013
Showing with 6 additions and 7 deletions.
  1. +2 −0 .gitignore
  2. +3 −3 Makefile
  3. +1 −4 README.md
View
@@ -3,3 +3,5 @@
npm-*.log
/node_modules
+
+*.un~
View
@@ -9,14 +9,14 @@ all: minify commonjs amd report
# -*- minification -*- #
UGLIFYJS ?= ./node_modules/.bin/uglifyjs
-UGLIFY_OPTS += --lift-vars --unsafe
+UGLIFY_OPTS += -m -c hoist_vars=true,unsafe=true
UGLY = $(BUILD_DIR)/p.min.js
$(UGLY): $(SRC)
- $(UGLIFYJS) $(UGLIFY_OPTS) $< > $@
+ $(UGLIFYJS) $(UGLIFY_OPTS) $< -o $@
%.min.js: %.js
- $(UGLIFYJS) $(UGLIFY_OPTS) $< > $@
+ $(UGLIFYJS) $(UGLIFY_OPTS) $< -o $@
minify: $(UGLY)
View
@@ -43,7 +43,7 @@ tom.move()
## how is pjs different from X
-Most class systems for JS let you define classes by passing an object. P.js lets you pass a function instead, which allows you to closure private methods and macros. It's also 546 bytes minified (see `make report`).
+Most class systems for JS let you define classes by passing an object. P.js lets you pass a function instead, which allows you to closure private methods and macros. It's also 548 bytes minified (see `make report`).
### why doesn't pjs suck?
@@ -173,6 +173,3 @@ Here are the things you can build:
- `make test`
runs the test suite using the commonjs version. Requires `mocha`.
-
-(I tested these tasks with GNU make. If someone could verify this all works
-with BSD make (like on a Mac) that'd be awesome.)

0 comments on commit 8768069

Please sign in to comment.