aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorIgor Minar2011-06-07 12:53:40 -0700
committerIgor Minar2011-06-07 14:56:01 -0700
commit25b3438fd78184cbbc420e2e051888f4f192a68a (patch)
tree8b63995fe08546348661f3704ded38305fd7ab9c /Rakefile
parentf21b9214e657d41e20fb761948b05fc2c7c7f5a3 (diff)
downloadangular.js-25b3438fd78184cbbc420e2e051888f4f192a68a.tar.bz2
add appcache for docs site - caches only css/js/img resources
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 31307c4f..c8ba1418 100644
--- a/Rakefile
+++ b/Rakefile
@@ -241,6 +241,13 @@ task :package => [:clean, :compile, :docs] do
f.write text.sub('angular-scenario.js', "angular-scenario-#{version}.js")
end
+ File.open("#{pkg_dir}/docs-#{version}/app-cache.manifest", File::RDWR) do |f|
+ text = f.read
+ f.rewind
+ f.write text.sub('angular.min.js', "angular-#{version}.min.js")
+ end
+
+
%x(tar -czf #{path_to(tarball)} -C #{path_to('pkg')} .)
puts "Package created: #{path_to(tarball)}"