mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-27 03:30:24 +00:00
feat:build: better build/pkg/ dir structure
rake package now produced directory structure that can be uploaded to the ftp server as is without manual changes
This commit is contained in:
parent
68ab0f9b02
commit
6dc22fe575
1 changed files with 3 additions and 0 deletions
3
Rakefile
3
Rakefile
|
|
@ -250,6 +250,9 @@ task :package => [:clean, :compile, :docs] do
|
|||
|
||||
%x(tar -czf #{path_to(tarball)} -C #{path_to('pkg')} .)
|
||||
|
||||
FileUtils.cp path_to(tarball), pkg_dir
|
||||
FileUtils.mv pkg_dir, path_to(['pkg', version])
|
||||
|
||||
puts "Package created: #{path_to(tarball)}"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue