Sha256: e23291ea2a81c99356b44d850a42a54de26f19a6d77ebd7f913f1f917484667e
Contents?: true
Size: 923 Bytes
Versions: 3
Compression:
Stored size: 923 Bytes
Contents
require 'bundler' require 'bundler/gem_tasks' Bundler.require(:development) require 'rubocop/rake_task' require 'opal' # Add our opal/ directory to the load path Opal.append_path(File.expand_path('../lib', __FILE__)) require 'opal/rspec/rake_task' task :docs do `bundle exec yardoc 'lib/**/*.rb' - Readme.md docs/*` # require 'yard' # require 'yard-docco' # # YARD::Rake::YardocTask.new do |t| # t.files = ['lib/**/*.rb'] # # t.options = ['--any', '--extra', '--opts'] # optional # end end Opal::RSpec::RakeTask.new task default: [:test] task :test do puts "--------------------------\nRun specs in normal ruby\n--------------------------" system 'bundle exec rspec' puts "--------------------------\nRun specs in Opal\n--------------------------" Rake::Task['opal:rspec'].invoke end # Rubocop task RuboCop::RakeTask.new(:rubocop) do |task| task.options = ['--display-cop-names'] end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
volt-0.8.27.beta2 | Rakefile |
volt-0.8.27.beta1 | Rakefile |
volt-0.8.26.beta1 | Rakefile |