diff --git a/Rakefile b/Rakefile index 16bc724..93fc1a9 100644 --- a/Rakefile +++ b/Rakefile @@ -52,3 +52,11 @@ templated_build "Dojo", :location => "dojox/string" templated_build "YUI3", :location => "yui3/mustache" templated_build "RequireJS" templated_build "qooxdoo" + +task :minify do + # npm install uglify-js + mmjs = "mustache.min.js" + `echo "/*! Version: 0.4.2-dev */" > #{mmjs}` + `uglifyjs mustache.js >> #{mmjs}` + puts "Created #{mmjs}" +end