File: manifest.rb

package info (click to toggle)
ruby-bootstrap-sass 3.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,368 kB
  • sloc: javascript: 3,526; ruby: 1,211; sh: 57; makefile: 9
file content (20 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
description 'Bootstrap for Sass'

# Stylesheet importing bootstrap
stylesheet 'styles.sass'

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

# Copy JS and fonts
manifest = Pathname.new(File.dirname(__FILE__))
assets   = File.expand_path('../../assets', manifest)
{:javascript => 'javascripts',
 :font       => 'fonts'
}.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