Sha256: bd7bb5913fbb5fc51e7682f27947104105017c7463646e5ca0f95c688f890aef
Contents?: true
Size: 1.35 KB
Versions: 6
Compression:
Stored size: 1.35 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.' `npm install && npm run browserify` } end desc "updates csso repo" task :update_csso_repo => :csso do #?? Dir.chdir('csso'){ puts 'Updating csso...' `git pull --rebase` `npm install && npm run browserify` } 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
csso-rails-0.7.1 | Rakefile |
csso-rails-0.7.0 | Rakefile |
csso-rails-0.6.0 | Rakefile |
csso-rails-0.5.0 | Rakefile |
csso-rails-0.4.1 | Rakefile |
csso-rails-0.4.0 | Rakefile |