From 25b3438fd78184cbbc420e2e051888f4f192a68a Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 7 Jun 2011 12:53:40 -0700 Subject: add appcache for docs site - caches only css/js/img resources --- Rakefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Rakefile') 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)}" -- cgit v1.2.3