Add dist to .gitignore.
Exclude hidden files from standalone zip.
This commit is contained in:
parent
ed80a0cad7
commit
7a69d64669
|
@ -1,3 +1,4 @@
|
|||
.idea/
|
||||
.svn/
|
||||
lib/jasmine-*.js
|
||||
dist/
|
10
Rakefile
10
Rakefile
|
@ -147,10 +147,12 @@ jasmine.version_= {
|
|||
FileUtils.cp(File.join(root, src), File.join(lib_dir, dest))
|
||||
end
|
||||
|
||||
dist = File.join(root, 'dist')
|
||||
FileUtils.rm_r dist if File.exists?(dist)
|
||||
Dir.mkdir(dist)
|
||||
exec "cd #{temp_dir} && zip -r #{File.join(dist, "jasmine-standalone-#{jasmine_version}.zip")} ."
|
||||
dist_dir = File.join(root, 'dist')
|
||||
zip_file_name = File.join(dist_dir, "jasmine-standalone-#{jasmine_version}.zip")
|
||||
puts "Zipping Example Project and moving to #{zip_file_name}"
|
||||
FileUtils.rm_r dist_dir if File.exists?(dist_dir)
|
||||
Dir.mkdir(dist_dir)
|
||||
exec "cd #{temp_dir} && zip -r #{zip_file_name} . -x .[a-zA-Z0-9]*"
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue