summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-05-29 15:21:19 -0400
committerkpdecker <kpdecker@gmail.com>2013-05-29 15:21:19 -0400
commit61f64e9f04ec6039759519371aff76cd504ed5da (patch)
treeddf3e9e27f87cf0931bb25642576411f0a0263ec
parent66f6f94867e622e9df10a875a9c8a2fda2a82565 (diff)
downloadhandlebars.js-61f64e9f04ec6039759519371aff76cd504ed5da.zip
handlebars.js-61f64e9f04ec6039759519371aff76cd504ed5da.tar.gz
handlebars.js-61f64e9f04ec6039759519371aff76cd504ed5da.tar.bz2
Add minify task to release target
-rw-r--r--Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index a6e3e10..794686f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -106,8 +106,13 @@ task :version => [] do |task|
end
end
+task :minify => [] do |task|
+ system "./node_modules/.bin/uglifyjs --comments -o dist/handlebars.min.js dist/handlebars.js"
+ system "./node_modules/.bin/uglifyjs --comments -o dist/handlebars.runtime.min.js dist/handlebars.runtime.js"
+end
+
desc "build the build and runtime version of handlebars"
-task :release => [:version, :build, :runtime]
+task :release => [:version, :build, :runtime, :minify]
directory "vendor"