summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Rakefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index e9c0122..6fe5d84 100644
--- a/Rakefile
+++ b/Rakefile
@@ -81,8 +81,14 @@ file "dist/handlebars.runtime.js" => runtime_deps do |task|
build_for_task(task)
end
-task :build => [:compile, "dist/handlebars.js"]
-task :runtime => [:compile, "dist/handlebars.runtime.js"]
+task :build => [:compile] do |task|
+ # Since the tests are dependent on this always rebuild.
+ Rake::Task["dist/handlebars.js"].execute
+end
+task :runtime => [:compile] do |task|
+ # Since the tests are dependent on this always rebuild.
+ Rake::Task["dist/handlebars.runtime.js"].execute
+end
desc "build the build and runtime version of handlebars"
task :release => [:build, :runtime]