Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2013-11-14 21:26:08 +0400
committerGleb Mazovetskiy <glex.spb@gmail.com>2013-11-15 00:55:26 +0400
commitc58415eef00a708b25f6f7ee32573de038be4a50 (patch)
treeaf5876be9460f80d8b9402327d2a0e331436c1d2 /templates/project/manifest.rb
parent263dc713ff89de6f5784e8cfd0d22aa2bc2aaef0 (diff)
Sass-only support
Diffstat (limited to 'templates/project/manifest.rb')
-rw-r--r--templates/project/manifest.rb13
1 files changed, 11 insertions, 2 deletions
diff --git a/templates/project/manifest.rb b/templates/project/manifest.rb
index 9025d71..730694c 100644
--- a/templates/project/manifest.rb
+++ b/templates/project/manifest.rb
@@ -4,13 +4,22 @@ description 'Bootstrap for Sass'
stylesheet 'styles.scss'
# SCSS:
-bs_stylesheets = "../../vendor/assets/stylesheets/bootstrap"
+
+assets = "../../vendor/assets"
+
+bs_stylesheets = "#{assets}/stylesheets/bootstrap"
stylesheet '_variables.scss.erb', :to => '_variables.scss', :erb => true,
:bs_variables_path => File.expand_path("#{bs_stylesheets}/_variables.scss", File.dirname(__FILE__))
# JS:
-bs_javascripts = "../../vendor/assets/javascripts/bootstrap"
+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