-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (34 loc) · 948 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
desc 'Make vimrc_default'
task :make_default_vimrc do
require 'yaml'
require './lib/vimrc_option'
require './lib/vimrc_creator'
config = YAML.load_file('./config/config.yml')
VimFactory::VimrcCreator.new(
VimFactory::VimrcOption.initial_options,
"#{config['vimrc_dir']}/default/vimrc",
nil
).create
end
desc 'Compile Sass'
task :compile_sass do
Bundler.with_clean_env do
`bundle exec sass ./sass/butterfly.sass ./public/css/butterfly.css`
`bundle exec sass ./sass/main.sass ./public/css/main.css`
end
end
desc 'Compile CoffeeScript'
task :compile_coffee_script do
`coffee -o ./public/js/ -c coffee/`
end
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = ['./app.rb', 'lib/**/*.rb', './Rakefile']
task.options = ['--debug']
end
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << 'tests'
t.test_files = FileList['tests/test*.rb']
t.verbose = true
end