2013-10-24 20:25:52 +02:00
|
|
|
#!/usr/bin/env rake
|
|
|
|
|
|
|
|
require 'bundler/setup'
|
|
|
|
require 'thor'
|
|
|
|
|
2018-11-04 14:54:19 +01:00
|
|
|
Bundler.require :default
|
2013-10-24 20:25:52 +02:00
|
|
|
$LOAD_PATH.unshift 'lib'
|
|
|
|
|
2015-03-02 00:46:09 +01:00
|
|
|
task :default do
|
|
|
|
$LOAD_PATH.unshift 'test'
|
|
|
|
Dir['test/**/*_test.rb'].map(&File.method(:expand_path)).each(&method(:require))
|
|
|
|
end
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
namespace :assets do
|
|
|
|
desc 'Compile all assets'
|
|
|
|
task :precompile do
|
2018-10-22 00:41:35 +02:00
|
|
|
load 'tasks/docs.thor'
|
|
|
|
DocsCLI.new.prepare_deploy
|
|
|
|
|
2013-10-24 20:25:52 +02:00
|
|
|
load 'tasks/assets.thor'
|
|
|
|
AssetsCLI.new.compile
|
|
|
|
end
|
|
|
|
end
|