mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-04 05:04:44 +00:00
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.
This commit is contained in:
parent
8b9e6c3501
commit
a69674b36d
1 changed files with 7 additions and 1 deletions
8
Rakefile
8
Rakefile
|
|
@ -112,9 +112,15 @@ task :minify => [:init, :concat, :concat_scenario] do
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
desc 'Generate version.txt file'
|
desc 'Generate version.txt and version.json files'
|
||||||
task :version => [:init] do
|
task :version => [:init] do
|
||||||
`echo #{NG_VERSION.full} > #{path_to('version.txt')}`
|
`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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue