From 18731173f9d857bbed287ed6cecfe2154031052b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 4 Sep 2012 16:38:01 -0700 Subject: chore(Rakefile): add 'version' rake task to generate version.txt --- Rakefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 09acb861..887548b8 100644 --- a/Rakefile +++ b/Rakefile @@ -128,6 +128,12 @@ task :minify => [:init, :concat, :concat_scenario, :concat_jstd_scenario_adapter end +desc 'Generate version.txt file' +task :version => [:init] do + `echo #{NG_VERSION.full} > #{path_to('version.txt')}` +end + + desc 'Generate docs' task :docs => [:init] do `node docs/src/gen-docs.js` @@ -150,7 +156,7 @@ end desc 'Create angular distribution' -task :package => [:clean, :minify, :docs] do +task :package => [:clean, :minify, :version, :docs] do zip_dir = "angular-#{NG_VERSION.full}" zip_file = "#{zip_dir}.zip" -- cgit v1.2.3