aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames deBoer2013-01-15 09:13:28 -0800
committerIgor Minar2013-01-16 23:41:45 -0800
commita69674b36da0f51c80d881b5d5ff6005653dfd55 (patch)
treebec22d814793b75af3933ed277c42576035abc45
parent8b9e6c3501746edb2c9e2d585e8e0eaeb8ba8327 (diff)
downloadangular.js-a69674b36da0f51c80d881b5d5ff6005653dfd55.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 3a8cc00e..a3dc51aa 100644
--- a/Rakefile
+++ b/Rakefile
@@ -112,9 +112,15 @@ task :minify => [:init, :concat, :concat_scenario] do
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