forked from robertcedwards/HIT-timer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.rb
45 lines (31 loc) · 1.45 KB
/
manifest.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
description 'Foundation Compass Gem'
# Sass Files
stylesheet '../../scss/normalize.scss', :to => '_normalize.scss'
stylesheet '../../scss/foundation/_variables.scss', :to => '_settings.scss'
stylesheet 'scss/app.scss', :to => 'app.scss', :media => "screen, projector, print"
# Make sure you list all the project template files here in the manifest.
file 'humans.txt'
file 'robots.txt'
file 'MIT-LICENSE.txt'
def copy_js_from(relative_path, prefix_path, excludes=[])
absolute_path = File.join(File.dirname(__FILE__), relative_path, prefix_path)
js_files = Dir.glob("#{absolute_path}/*.js")
js_files.reject! {|f| excludes.include? File.basename(f)}
js_files.each do |js|
javascript "#{relative_path}/#{prefix_path}/#{File.basename(js)}",
:to => "#{prefix_path}/#{File.basename(js)}"
end
return js_files.map {|f| "#{prefix_path}/#{File.basename(f)}"}
end
javascripts = copy_js_from("../../js", "foundation", ["foundation.js", "index.js"])
vendor_javascripts = copy_js_from("../../js", "vendor")
javascript "../../js/foundation/foundation.js", :to => "foundation/foundation.js"
html 'index.html', :erb => true, :javascripts => javascripts, :version => Foundation::VERSION
help %Q{
If you need help, email us at [email protected] or visit foundation.zurb.com"
}
welcome_message %Q{
w00t! You're using ZURB Foundation, now go forth and rock 'n roll!
}
# file 'config.rb'
# no_configuration_file!