mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
chore(Rakefile): add 'version' rake task to generate version.txt
This commit is contained in:
parent
b1f50307b3
commit
f353fea042
1 changed files with 7 additions and 1 deletions
8
Rakefile
8
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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue