Sha256: 070f8f28d9ebd87c9f36c5ac82f934e5b5b31ef55d95aed73a59d902c84d24c5

Contents?: true

Size: 981 Bytes

Versions: 12

Compression:

Stored size: 981 Bytes

Contents

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

task :default => :spec

task :console do
  sh "irb -rubygems -I lib -r coffeelint.rb"
end

task :cmd do
  sh "ruby -I lib -- bin/coffeelint.rb"
end

task :prepare_coffeelint do
  sh "git submodule init"
  sh "git submodule update"

  Dir.chdir('coffeelint') do
    sh "npm install"
    sh "npm run compile"
  end
end

task :compile => [:prepare, :build]

task :prepare do
  sh "git submodule init"
  sh "git submodule update"

  Dir.chdir('coffeelint') do
    sh "npm install"
    sh "npm run compile"
  end

  sh "rake spec"
end

def coffeelint_version
  Dir.chdir('coffeelint') do
    retval = `git describe`
    retval.strip! || retval
  end
end

task :update_readme do
  readme_name = 'README.md'
  readme = File.read(readme_name)
  readme = readme.gsub(/(coffeelint version: )v[0-9.]+/, "\\1#{coffeelint_version}")
  File.open(readme_name, 'w') do |f|
    f.write(readme)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coffeelint-1.16.1 Rakefile
coffeelint-1.16.0 Rakefile
coffeelint-1.14.0 Rakefile
coffeelint-1.11.0 Rakefile
coffeelint-1.10.0.pre.patch.1 Rakefile
coffeelint-1.10.0 Rakefile
coffeelint-1.9.1 Rakefile
coffeelint-1.8.1 Rakefile
coffeelint-0.4.0 Rakefile
coffeelint-0.3.0 Rakefile
coffeelint-0.2.7 Rakefile
coffeelint-0.2.6 Rakefile