what2watch/scss/vendor/sassy-maps/Rakefile

24 lines
649 B
Text
Raw Normal View History

2023-09-22 00:43:18 +00:00
require 'bundler/gem_tasks'
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs = ['lib','tests']
t.test_files = Dir.glob('tests/**/*_test.rb').sort
t.verbose = false
t.options = "- --tapy | tapout navigator --require tapout/reporters/navigator_reporter"
end
task :default => :test
desc 'Re-render all test Sass files to new control files.'
task 'render' => ['environment'] do
require File.expand_path('../tests/navigator', __FILE__)
Navigator::Renderer.render_controls
end
task 'environment' do
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'sassy-maps'
end