-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
46 lines (31 loc) · 904 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
def consoleHeading(taskName)
puts
puts '---------------------------------------'
puts taskName + '...'
puts '---------------------------------------'
end
task :init do
puts consoleHeading('Installing Bundler')
sh 'gem install bundler'
puts consoleHeading('Installing Grunt')
sh 'npm install -g grunt-cli'
puts consoleHeading('Installing Bower')
sh 'npm install -g bower'
end
task :default do
puts consoleHeading('Installing Ruby Gems')
sh 'bundle install --path=vendor'
puts consoleHeading('Installing npm modules')
sh 'npm install'
puts consoleHeading('Installing Bower packages')
sh 'bower install'
end
task :clean do
puts consoleHeading('Cleaning out dev dependencies')
sh 'rm -rf dist'
sh 'rm -rf build'
sh 'rm -rf vendor'
sh 'rm -rf .bundle'
sh 'rm -rf .sass-cache'
sh 'rm -rf node_modules'
end