Created
January 6, 2012 15:34
-
-
Save meh/1571082 to your computer and use it in GitHub Desktop.
opal builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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