From 2f135e2e15dcc3c61385212261faaf00597bae10 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Fri, 24 Feb 2012 09:58:31 +0100 Subject: [PATCH] add minify task --- Rakefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Rakefile b/Rakefile index 46afc38..61700ee 100644 --- a/Rakefile +++ b/Rakefile @@ -49,3 +49,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.5.1-dev */" > #{mmjs}` + `uglifyjs mustache.js >> #{mmjs}` + puts "Created #{mmjs}" +end