Sha256: 856e13bc0297ec52b2a26d1b8c88a86fa773c5d8238200bb28ff7f64f7421ea7
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
require 'bundler' require 'bundler/setup' require 'rake/testtask' Rake::TestTask.new(:spec) do |t| t.pattern = 'spec/**/*_spec.rb' t.libs.push 'spec' end $:.push File.expand_path("../lib", __FILE__) require 'csso/version' Bundler::GemHelper.install_tasks task :default => :spec file 'csso' do puts 'Fetching csso repo...' `git clone --single-branch --depth 1 --no-hardlinks git://github.com/css/csso` Dir.chdir('csso'){ puts 'Now making web-version, just in case.' `rm web/csso.web.js; make web` } end desc "updates csso repo" task :update_csso_repo => :csso do #?? Dir.chdir('csso'){ puts 'Updating csso...' `git pull --rebase` `rm web/csso.web.js; make web` } end directory 'vendor/csso' lib_template = 'lib/csso/csso.js.erb' file Csso::CSSO_JS_LIB => [lib_template, 'csso', 'vendor/csso', 'csso/.git/HEAD', 'csso/.git/refs/heads/master'] do puts "Generating #{Csso::CSSO_JS_LIB}" `erb #{lib_template} > #{Csso::CSSO_JS_LIB}` end desc "Generate bundled csso from repo" task :generate_files => [:csso, Csso::CSSO_JS_LIB] desc "Clean generated files" task :rm_generated do puts "Removing #{Csso::CSSO_JS_LIB}" `rm #{Csso::CSSO_JS_LIB}` end task :regenerate => [:rm_generated, :generate_files] desc "Update CSSO" task :update_csso => [:rm_generated, :update_csso_repo, :generate_files] task :build => :generate_files
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
csso-rails-0.3.4 | Rakefile |
csso-rails-0.3.3 | Rakefile |