-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
55 lines (45 loc) · 862 Bytes
/
Rakefile
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
task :default => :loop
task :release => [ :build ]
desc "loop"
task :loop do
sh %(
brunch watch --server -p 9000
)
end
task :build do
sh %Q(
# build to build/
brunch build --production
# compile coffee
find build/ -name '*.coffee' | xargs coffee -c
)
puts '# compile slim files'
[ 'build' ].map do |path|
Dir.glob("#{path}/**/*.slim") do |file|
target = file.gsub( /\.slim$/, '')
sh "slimrb #{file} #{target}"
end
end
# CHROME
# sh %Q(
# # work around the prefix ignored by brunch
# rsync -avvv app/assets/_locales build/
# )
end
desc "clean"
task :clean do
sh %(
rm -rf build/
)
end
desc 'bootstrap'
task :'bootstrap' do
sh %(
# needs npm, bower.
npm install -g grunt-cli
npm install -g grunt
npm install -g brunch
npm install
bower install
)
end