Sha256: f91418c071fc358fd116857a029926093fa73f0b8e4a514b106ca5436f36942a

Contents?: true

Size: 616 Bytes

Versions: 2

Compression:

Stored size: 616 Bytes

Contents

require 'bundler/gem_tasks'
require 'middleman-gh-pages'

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

desc "Compile javascript -> coffeescript"
task :coffee do
  destination = "source/javascripts/refills/coffeescript"
  Dir["source/javascripts/refills/**/*.js"].each do |source|
    filename = File.basename(source.gsub(/.js/, ".coffee"))

    `$(npm bin)/js2coffee #{source} > #{destination}/#{filename}`
  end

  puts "Please make sure that all generated coffeescript files are correct"
  puts "before committing the changes\n"
  puts `git status`
end

task default: :spec
task publish: :spec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refills-0.2.0 Rakefile
refills-0.1.0 Rakefile