Sha256: 2a451216c47be761a7047973c32c184508d015fec681dfbea883b467bc73e049
Contents?: true
Size: 812 Bytes
Versions: 9
Compression:
Stored size: 812 Bytes
Contents
require 'rubygems' require 'bundler' require 'bundler/gem_tasks' Bundler.require(:development) 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
Version data entries
9 entries across 9 versions & 1 rubygems