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

Version Path
volt-0.8.22 Rakefile
volt-0.8.22.beta2 Rakefile
volt-0.8.22.beta1 Rakefile
volt-0.8.21 Rakefile
volt-0.8.20 Rakefile
volt-0.8.19 Rakefile
volt-0.8.18 Rakefile
volt-0.8.17 Rakefile
volt-0.8.16 Rakefile