1 Star 1 Fork 0

开源中国 / rouge

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Rakefile 680 Bytes
一键复制 编辑 原始数据 按行查看 历史
require 'rake/clean'
require 'pathname'
task :spec do
spec_files = FileList.new(ENV['files'] || './spec/**/*_spec.rb')
switch_spec_files = spec_files.map { |x| "-r#{x}" }.join(' ')
sh "ruby -I./lib -r ./spec/spec_helper #{switch_spec_files} -e Minitest::Unit.autorun"
end
task :doc do
sh 'bundle exec yard'
end
namespace :doc do
task :server do
sh 'bundle exec yard server --reload'
end
task :clean do
sh 'rm -rf ./doc/ ./.yardoc/'
end
end
CLEAN.include('*.gem')
task :build => [:clean, :spec] do
puts
sh "gem build rouge.gemspec"
end
task :default => :spec
Dir.glob(Pathname.new(__FILE__).dirname.join('tasks/*.rake')).each do |f|
load f
end
1
https://gitee.com/oschina/rouge.git
git@gitee.com:oschina/rouge.git
oschina
rouge
rouge
master

搜索帮助