Skip to content

Commit f353fea

Browse files
committed
chore(Rakefile): add 'version' rake task to generate version.txt
1 parent b1f5030 commit f353fea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Rakefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ task :minify => [:init, :concat, :concat_scenario, :concat_jstd_scenario_adapter
128128
end
129129

130130

131+
desc 'Generate version.txt file'
132+
task :version => [:init] do
133+
`echo #{NG_VERSION.full} > #{path_to('version.txt')}`
134+
end
135+
136+
131137
desc 'Generate docs'
132138
task :docs => [:init] do
133139
`node docs/src/gen-docs.js`
@@ -150,7 +156,7 @@ end
150156

151157

152158
desc 'Create angular distribution'
153-
task :package => [:clean, :minify, :docs] do
159+
task :package => [:clean, :minify, :version, :docs] do
154160
zip_dir = "angular-#{NG_VERSION.full}"
155161
zip_file = "#{zip_dir}.zip"
156162

0 commit comments

Comments
 (0)