coffeescript-widget/Rakefile

21 lines
522 B
Ruby
Raw Normal View History

2011-07-20 18:43:12 +00:00
require 'rubygems'
require 'coffee_script/source'
require 'erubis'
desc 'build the widget'
task :build do
mkdir_p 'CoffeeScript.wdgt'
Dir['src/**/*'].each do |file|
cp file, 'CoffeeScript.wdgt'
end
cp CoffeeScript::Source.bundled_path, 'CoffeeScript.wdgt'
end
2011-07-20 21:39:29 +00:00
desc 'build a release widget'
task :release => :build do
mkdir_p 'pkg'
system %{tar jcvf pkg/CoffeeScript-#{File.read('VERSION').strip}.tar.bz2 CoffeeScript.wdgt}
2011-07-20 21:49:40 +00:00
system %{open https://github.com/johnbintz/coffeescript-widget/downloads}
2011-07-20 21:39:29 +00:00
end