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

manifest.rb « project « templates - github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d13539a41864197451ec0eccc925e8d0380815ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
description 'Bootstrap'

# Stylesheet importing bootstrap
stylesheet 'styles.scss'

# Bootstrap variable overrides file
stylesheet '_bootstrap-variables.scss', :to => '_bootstrap-variables.scss'

# Copy JS
manifest = Pathname.new(File.dirname(__FILE__))
assets   = File.expand_path('../../assets', manifest)
{:javascript => 'javascripts'}.each do |method, dir|
  root = Pathname.new(assets).join(dir)
  Dir.glob root.join('**', '*.*') do |path|
    path = Pathname.new(path)
    send method, path.relative_path_from(manifest).to_s, :to => path.relative_path_from(root).to_s
  end
end