forked from simplecov-ruby/simplecov-html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
31 lines (27 loc) · 778 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
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
namespace :assets do
desc "Compiles all assets"
task :compile do
puts "Compiling assets"
require 'sprockets'
assets = Sprockets::Environment.new
assets.append_path 'assets/javascripts'
assets.append_path 'assets/stylesheets'
assets['application.js'].write_to('public/application.js')
assets['application.css'].write_to('public/application.css')
end
end