Skip to content

Instantly share code, notes, and snippets.

@meh
Created January 6, 2012 15:34
Show Gist options
  • Save meh/1571082 to your computer and use it in GitHub Desktop.
Save meh/1571082 to your computer and use it in GitHub Desktop.
opal builder
desc 'Build dependencies matching /^opal-/ into .'
task :dependencies do
Opal::DependencyBuilder.new(out: '.').build
end
desc 'Build specified dependencies into .'
task :dependencies do
Opal::DependencyBuilder.new(dependencies: %w[call-me opal-spec], out: '.').build
end
desc 'Build production mode'
task :test do
Opal::Builder.new('lib', join: 'foo.js').build
end
desc 'Build debug mode'
task :test do
Opal::Builder.new('lib', join: 'foo.debug.js', debug: true).build
end
desc 'Build test mode'
task :test do
Opal::Builder.new(%w[lib spec], join: 'foo.debug.js', debug: true).build
end
desc 'Build production mode for method_missing support'
task :test do
Opal::Builder.new('lib', join: 'foo.js', :method_missing).build
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment