From 7a69d6466902ad90cc2f1f63f1b21bf605199961 Mon Sep 17 00:00:00 2001 From: Lee Byrd & Christian Williams Date: Fri, 25 Jun 2010 10:07:08 -0700 Subject: [PATCH] Add dist to .gitignore. Exclude hidden files from standalone zip. --- .gitignore | 1 + Rakefile | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ae7f062..35f4062 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea/ .svn/ lib/jasmine-*.js +dist/ \ No newline at end of file diff --git a/Rakefile b/Rakefile index 0aa3c48..f29053e 100644 --- a/Rakefile +++ b/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