mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
25 lines
823 B
Ruby
25 lines
823 B
Ruby
description 'Bootstrap for Sass'
|
|
|
|
# Stylesheet importing bootstrap
|
|
stylesheet 'styles.sass'
|
|
|
|
# SCSS:
|
|
|
|
assets = "../../vendor/assets"
|
|
|
|
bs_stylesheets = "#{assets}/stylesheets/bootstrap"
|
|
stylesheet '_variables.sass.erb', :to => '_variables.sass', :erb => true,
|
|
:bs_variables_path => File.expand_path("#{bs_stylesheets}/_variables.scss", File.dirname(__FILE__))
|
|
|
|
# JS:
|
|
bs_javascripts = "#{assets}/javascripts/bootstrap"
|
|
Dir.glob File.expand_path("#{bs_javascripts}/*.js", File.dirname(__FILE__)) do |path|
|
|
file = File.basename(path)
|
|
javascript "#{bs_javascripts}/#{file}", :to => "bootstrap/#{file}"
|
|
end
|
|
|
|
bs_fonts = "#{assets}/fonts/bootstrap"
|
|
Dir.glob File.expand_path("#{bs_fonts}/*", File.dirname(__FILE__)) do |path|
|
|
file = File.basename(path)
|
|
font "#{bs_fonts}/#{file}", :to => "bootstrap/#{file}"
|
|
end
|