Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Wrap concatenated files in closure so nothing leaks

  • Loading branch information...
commit 78186154081b82cb23ce9e3c47d4e16dae55dd79 1 parent 5c713f5
@daleharvey daleharvey authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 Makefile
View
10 Makefile
@@ -1,11 +1,15 @@
YUI = ./lib/yuicompressor-2.4.7.jar
+RELEASE = alpha
+
JS_TARGETS = \
+ src/jquery-1.7.1.min.js \
src/uuid.js \
- src/pouch.js
+ src/pouch.js \
+ src/pouch.merge.js
all :
- cat $(JS_TARGETS) > pouch.js
+ (echo "(function() { "; cat $(JS_TARGETS); echo " })(this);") > pouch.$(RELEASE).js
min : all
- java -jar $(YUI) pouch.js -o pouch.min.js
+ java -jar $(YUI) pouch.$(RELEASE).js -o pouch.$(RELEASE).min.js
Please sign in to comment.
Something went wrong with that request. Please try again.