Sha256: 6aefc2c2c9fcf136592cd35324b40a6c42f6c611a3fbf642b29cf92150e2e506

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 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' unless File.exist?('mocha/Makefile') || File.exist?('chai/Makefile')
  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

2 entries across 2 versions & 1 rubygems

Version Path
konacha-1.1.3 Rakefile
konacha-1.1.2 Rakefile