-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rules
56 lines (43 loc) · 1.09 KB
/
Rules
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
46
47
48
49
50
51
52
53
54
55
56
require "kramdown"
preprocess do
@config[:env] = ENV["ENV"] if ENV["ENV"]
end
filter_with_kramdown = proc do |item|
item.filter :kramdown, parse_block_html: true
end
ignore "/**/_*"
compile "/home.haml" do
filter :haml, remove_whitespace: true
layout "/default.*"
write "/index.html"
end
compile "/**/*.haml" do
filter :haml, remove_whitespace: true
layout "/default.*"
write item.identifier.without_ext + "/index.html"
end
compile "/**/*.md" do
filter_with_kramdown[self]
layout "/text.*"
layout "/default.*"
write item.identifier.without_ext + "/index.html"
end
compile "/**/*.scss" do
filter :sass, syntax: :scss, style: :compact, cache_location: "tmp/sass-cache"
write item.identifier.without_ext + ".css"
end
compile "/javascripts/vision.jsx" do
filter :browserify,
args: %w[--no-detect-globals --extension=jsx],
export: "@uuseakus/vision"
write "/assets/vision.js"
end
ignore "/javascripts/**/*"
ignore "/initiatives.json"
compile "/**/*" do
write item.identifier.to_s
end
compile "/.htaccess" do
write item.identifier.to_s
end
layout "/**/*", :haml, remove_whitespace: true