Sha256: 8aafdb1f631b323af4f5888e9fda9dd39ccc6812c898343beb4dab74ad71c9f0

Contents?: true

Size: 1.25 KB

Versions: 29

Compression:

Stored size: 1.25 KB

Contents

require 'rubygems'
require 'bundler'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'rake'

BOOTSTRAP_CSS = "bootstrap.css"
BOOTSTRAP_MIN_CSS = "bootstrap.min.css"
BOOTSTRAP_THEME_CSS = "bootstrap-theme.css"
BOOTSTRAP_THEME_MIN_CSS = "bootstrap-theme.min.css"

SASS_COMMAND = "sass --precision 16 --load-path lib --style"

task BOOTSTRAP_CSS do |target|
  sh "#{SASS_COMMAND} expanded lib/bootstrap.scss:dist/css/#{target}"
end

task BOOTSTRAP_MIN_CSS do |target|
  sh "#{SASS_COMMAND} compressed lib/bootstrap.scss:dist/css/#{target}"
end

task BOOTSTRAP_THEME_CSS do |target|
  sh "#{SASS_COMMAND} expanded lib/_theme.scss:dist/css/#{target}"
end

task BOOTSTRAP_THEME_MIN_CSS do |target|
  sh "#{SASS_COMMAND} compressed lib/_theme.scss:dist/css/#{target}"
end


desc "build regular and compressed versions of bootstrap"
task :build => [BOOTSTRAP_CSS, BOOTSTRAP_MIN_CSS, BOOTSTRAP_THEME_CSS, BOOTSTRAP_THEME_MIN_CSS]

desc "rebuild regular version of bootstrap when modifications are made"
task :watch do
  sh "#{SASS_COMMAND} expanded --watch lib/bootstrap.scss:dist/css/#{BOOTSTRAP_CSS}"
end

task :default => :build

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
praxis-0.16.1 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.16.0 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.15.0 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.14.0 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.13.0 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.11.2 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.11.1 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.11 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.11pre lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.10.1 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.10.0 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
praxis-0.9 lib/api_browser/app/bower_components/bootstrap-sass/Rakefile
test_server-0.3.4 vendor/assets/components/bootstrap-sass/Rakefile
test_server-0.3.2 vendor/assets/components/bootstrap-sass/Rakefile
test_server-0.3.1 vendor/assets/components/bootstrap-sass/Rakefile
test_server-0.2.4 vendor/assets/components/bootstrap-sass/Rakefile
test_server-0.2.3 vendor/assets/components/bootstrap-sass/Rakefile
test_server-0.2.2 vendor/assets/components/bootstrap-sass/Rakefile
test_server-0.2.1 vendor/assets/components/bootstrap-sass/Rakefile
test_server-0.2.0 vendor/assets/components/bootstrap-sass/Rakefile