aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames deBoer2013-01-15 09:13:28 -0800
committerIgor Minar2013-01-16 23:41:51 -0800
commit965308a32c632e53813b4327da744c28b79bdf20 (patch)
tree8c258082234e7b2dc91cf50835d6f4bcfacb976f
parent92c612a9deac6e311bc2c632d373d525bf9017a0 (diff)
downloadangular.js-965308a32c632e53813b4327da744c28b79bdf20.tar.bz2
chore(Rakefile): generate version.json
Changes 'rake version' to output a version.json file which contains the structured version info which can be used in other tools.
-rw-r--r--Rakefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 16b3bcd1..e3033945 100644
--- a/Rakefile
+++ b/Rakefile
@@ -131,9 +131,15 @@ task :minify => [:init, :concat, :concat_scenario, :concat_jstd_scenario_adapter
end
-desc 'Generate version.txt file'
+desc 'Generate version.txt and version.json files'
task :version => [:init] do
`echo #{NG_VERSION.full} > #{path_to('version.txt')}`
+ `echo '{
+ "full": "#{NG_VERSION.full}",
+ "major": "#{NG_VERSION.major}",
+ "minor": "#{NG_VERSION.minor}",
+ "dot": "#{NG_VERSION.dot}",
+ "codename": "#{NG_VERSION.codename}"\n}' > #{path_to('version.json')}`
end