Sha256: dc26dc0d813cbd4b8af4ff69a88c1b170cacea702408158d58de648dc0d3deca

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 Bytes

Contents

#!/usr/bin/env rake

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new :spec => :assets

desc 'Build and copy Mocha and Chai assets from submodules into vendor/assets'
task :assets do
  sh 'git submodule update --init'
  sh 'cd mocha && make -s'
  sh 'cd chai && make -s'
  mkdir_p 'vendor/assets/javascripts'
  mkdir_p 'vendor/assets/stylesheets'
  cp 'mocha/mocha.js',  'vendor/assets/javascripts/'
  cp 'mocha/mocha.css', 'vendor/assets/stylesheets/'
  cp 'chai/chai.js',    'vendor/assets/javascripts/'
end

task :default => :spec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
konacha-1.1.1 Rakefile