forked from slashdotdash/jekyll-lunr-js-search
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
44 lines (38 loc) · 1.05 KB
/
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
require 'guard'
begin
require 'jasmine'
load 'jasmine/tasks/jasmine.rake'
rescue LoadError
task :jasmine do
abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
end
end
task default: [:jhw]
desc "Runs jasmine headless webkit"
task :jhw do
system 'jasmine-headless-webkit'
end
desc "compile coffeescript from guardfile"
task :cc do
Guard.setup
Guard::Dsl.evaluate_guardfile(:guardfile => 'Guardfile')
Guard.run_all({})
end
desc "watch for coffeescript"
task :wc do
system 'guard'
end
desc "test setup & bootstrap dummy app"
task :test_setup do
p 'Bootstrap cwoctopress app'
system 'bundle install; rake generate'
p 'Copying files and directories'
system 'cp ../../../../_config.yml _config.yml'
system 'cp ../../../../plugins/search_generator.rb plugins/search_generator.rb'
system 'cp ../../../../plugins/ext.rb plugins/ext.rb'
p 'Syncing source & sass folders'
system 'rsync -a ../../support/source .'
system 'rsync -a ../../support/sass .'
p 'updating site'
system 'rake generate'
end