-
-
Save ottodranik/b4b6c3b920ee01ed9ab4 to your computer and use it in GitHub Desktop.
Revisions
-
Burgestrand revised this gist
May 18, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ end desc "Compiles SASS using Compass" task 'sass:compile' do sh 'bundle exec compass compile' end namespace :assets do -
Burgestrand revised this gist
Feb 23, 2011 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,7 +22,8 @@ namespace :assets do desc "Bundles all assets with Jammit" task :bundle do require 'jammit' Jammit.package! end desc "Removes all compiled and bundled assets" -
Burgestrand revised this gist
Dec 8, 2010 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,8 +21,8 @@ namespace :assets do task :compile => ['coffee:compile', 'sass:compile'] desc "Bundles all assets with Jammit" task :bundle do system "bundle exec jammit" end desc "Removes all compiled and bundled assets" -
Burgestrand revised this gist
Oct 15, 2010 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ end desc "Compiles SASS using Compass" task 'sass:compile' do system 'bundle exec compass compile' end namespace :assets do @@ -22,7 +22,7 @@ namespace :assets do desc "Bundles all assets with Jammit" task :bundle => :environment do system "cd #{Rails.root} && bundle exec jammit" end desc "Removes all compiled and bundled assets" -
Burgestrand revised this gist
Oct 15, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ namespace :assets do files << ['assets'] files << ['javascripts', 'compiled'] files << ['stylesheets', 'compiled'] files = files.map { |path| Dir[Rails.root.join('public', *[path, '*.*'])] }.flatten puts "Removing:" files.each do |file| -
Burgestrand revised this gist
Oct 6, 2010 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,10 +4,9 @@ # Date: 6th October 2010 # License: X11 License (MIT License) # URL: http://gist.github.com/gists/613114 desc "Compiles CoffeeScript using Barrista (but only if they changed)" task 'coffee:compile' => :environment do require 'barista' abort "'#{Barista::Compiler.bin_path}' is unavailable." unless Barista::Compiler.available? Barista.compile_all! false, false end -
Burgestrand revised this gist
Oct 6, 2010 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,11 @@ # Rake task for compiling CoffeeScript and SASS (Compass). # # Author: Kim Burgestrand <http://burgestrand.se/> # Date: 6th October 2010 # License: X11 License (MIT License) # URL: http://gist.github.com/gists/613114 require 'barista' desc "Compiles CoffeeScript using Barrista (but only if they changed)" task 'coffee:compile' => :environment do abort "'#{Barista::Compiler.bin_path}' is unavailable." unless Barista::Compiler.available? -
Burgestrand created this gist
Oct 6, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,39 @@ desc "Compiles CoffeeScript using Barrista (but only if they changed)" task 'coffee:compile' => :environment do abort "'#{Barista::Compiler.bin_path}' is unavailable." unless Barista::Compiler.available? Barista.compile_all! false, false end desc "Compiles SASS using Compass" task 'sass:compile' do system 'compass compile' end namespace :assets do desc "Compiles all assets (CSS/JS)" task :compile => ['coffee:compile', 'sass:compile'] desc "Bundles all assets with Jammit" task :bundle => :environment do system "cd #{Rails.root} && jammit" end desc "Removes all compiled and bundled assets" task :clean => :environment do files = [] files << ['assets'] files << ['javascripts', 'compiled'] files << ['stylesheets', 'compiled'] files = files.map { |path| Dir[Rails.root.join('public', *path, '*.*')] }.flatten puts "Removing:" files.each do |file| puts " #{file.gsub(Rails.root.to_s + '/', '')}" end File.delete *files end end desc "Compiles and bundles all assets" task :assets => ['assets:compile', 'assets:bundle']