Sha256: c2c3f0d65d7e35e0c8bebc60f519c1b36392be0d56d077ec4e1068e6ac1a9686

Contents?: true

Size: 989 Bytes

Versions: 20

Compression:

Stored size: 989 Bytes

Contents

require 'bundler'
require 'bundler/gem_tasks'
require 'bundler/setup'
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 -r Readme.md --markup-provider=redcarpet --markup=markdown 'lib/**/*.rb' - Readme.md docs/*.md`
end

# Setup the opal:rspec task
Opal::RSpec::RakeTask.new('opal:rspec') do |s|
  # Add the app folder to the opal load path.
  s.append_path('app')
end


task default: [:test]

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('ruby:rspec')

task :test do
  puts "--------------------------\nRun specs in Opal\n--------------------------"
  Rake::Task['opal:rspec'].invoke
  puts "--------------------------\nRun specs in normal ruby\n--------------------------"
  Rake::Task['ruby:rspec'].invoke
end

# Rubocop task
RuboCop::RakeTask.new(:rubocop) do |task|
  task.options = ['--display-cop-names']
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
volt-0.9.1 Rakefile
volt-0.9.1.pre5 Rakefile
volt-0.9.1.pre4 Rakefile
volt-0.9.1.pre3 Rakefile
volt-0.9.1.pre2 Rakefile
volt-0.9.1.pre1 Rakefile
volt-0.9.0 Rakefile
volt-0.9.0.pre7 Rakefile
volt-0.9.0.pre6 Rakefile
volt-0.9.0.pre5 Rakefile
volt-0.9.0.pre4 Rakefile
volt-0.9.0.pre3 Rakefile
volt-0.9.0.pre2 Rakefile
volt-0.9.0.pre1 Rakefile
volt-0.8.27.beta9 Rakefile
volt-0.8.27.beta8 Rakefile
volt-0.8.27.beta7 Rakefile
volt-0.8.27.beta6 Rakefile
volt-0.8.27.beta5 Rakefile
volt-0.8.27.beta4 Rakefile