mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
23c147dde7
Fixes #914.
23 lines
440 B
Ruby
23 lines
440 B
Ruby
#!/usr/bin/env rake
|
|
|
|
require 'bundler/setup'
|
|
require 'thor'
|
|
|
|
Bundler.require :default
|
|
$LOAD_PATH.unshift 'lib'
|
|
|
|
task :default do
|
|
$LOAD_PATH.unshift 'test'
|
|
Dir['test/**/*_test.rb'].map(&File.method(:expand_path)).each(&method(:require))
|
|
end
|
|
|
|
namespace :assets do
|
|
desc 'Compile all assets'
|
|
task :precompile do
|
|
load 'tasks/docs.thor'
|
|
DocsCLI.new.prepare_deploy
|
|
|
|
load 'tasks/assets.thor'
|
|
AssetsCLI.new.compile
|
|
end
|
|
end
|