diff options
| author | Igor Minar | 2012-09-04 16:38:01 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-09-04 16:38:01 -0700 |
| commit | f353fea042b33066009af38d19054774aa52562d (patch) | |
| tree | fdd0bdcdfd43d2631967311fa2710bd58084d79d /Rakefile | |
| parent | b1f50307b32283e8800062290ce56562177499bc (diff) | |
| download | angular.js-f353fea042b33066009af38d19054774aa52562d.tar.bz2 | |
chore(Rakefile): add 'version' rake task to generate version.txt
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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" |
