Add minify task to release target

This commit is contained in:
kpdecker
2013-05-29 15:21:19 -04:00
parent 66f6f94867
commit 61f64e9f04
+6 -1
View File
@@ -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"