forked from cucumber-attic/website
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (23 loc) · 620 Bytes
/
Copy pathRakefile
File metadata and controls
31 lines (23 loc) · 620 Bytes
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
$: << File.dirname(__FILE__) + '/lib'
ENV["RACK_ENV"] ||= "development"
task default: [:spec, :cucumber]
task :spec do
sh 'bundle exec rspec'
end
task :cucumber do
sh 'bundle exec cucumber'
end
namespace :assets do
require_relative 'apps/static/app'
App = Cucumber::Website::Static::App
desc 'Precompile assets'
task :precompile do
environment = App.assets
manifest = Sprockets::Manifest.new(environment.index, File.join(App.assets_path, "manifest.json"))
manifest.compile(App.assets_precompile)
end
desc "Clean assets"
task :clean do
FileUtils.rm_rf(App.assets_path)
end
end