3 Star 0 Fork 0

Gitee 极速下载 / haml

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/haml/haml
克隆/下载
Rakefile 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
Takashi Kokubun 提交于 2023-09-27 00:51 . Drop C extension (#1146)
require 'bundler/gem_tasks'
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << 'lib' << 'test'
files = Dir['test/haml/**/*_test.rb']
t.ruby_opts = %w[-rtest_helper]
t.test_files = files
t.verbose = true
end
task :test
desc 'bench task for CI'
task :bench do
if ENV['SLIM_BENCH'] == '1'
cmd = %w[bundle exec ruby benchmark/slim/run-benchmarks.rb]
else
cmd = ['bin/bench', 'bench', ('-c' if ENV['COMPILE'] == '1'), *ENV['TEMPLATE'].split(',')].compact
end
exit system(*cmd)
end
namespace :doc do
task :sass do
require 'sass'
Dir["yard/default/**/*.sass"].each do |sass|
File.open(sass.gsub(/sass$/, 'css'), 'w') do |f|
f.write(Sass::Engine.new(File.read(sass)).render)
end
end
end
desc "List all undocumented methods and classes."
task :undocumented do
command = 'yard --list --query '
command << '"object.docstring.blank? && '
command << '!(object.type == :method && object.is_alias?)"'
sh command
end
end
desc "Generate documentation"
task(:doc => 'doc:sass') {sh "yard"}
desc "Generate documentation incrementally"
task(:redoc) {sh "yard -c"}
task default: :test
Ruby
1
https://gitee.com/mirrors/haml.git
git@gitee.com:mirrors/haml.git
mirrors
haml
haml
main

搜索帮助