Better building within sublime
parent
666dae393d
commit
bcf78cdbf7
|
|
@ -32,3 +32,4 @@ benchmarks/_output/*.png
|
||||||
benchmarks/_output/*.pdf
|
benchmarks/_output/*.pdf
|
||||||
benchmarks/_output/
|
benchmarks/_output/
|
||||||
samples/_output/*.svg
|
samples/_output/*.svg
|
||||||
|
*.sublime-workspace
|
||||||
|
|
|
||||||
1
Rakefile
1
Rakefile
|
|
@ -11,6 +11,7 @@ task default: [:install, :spec]
|
||||||
task :run,[:file] => :install do |t, args|
|
task :run,[:file] => :install do |t, args|
|
||||||
args.with_defaults(file: 'basic.rb')
|
args.with_defaults(file: 'basic.rb')
|
||||||
Dir.chdir('samples') do
|
Dir.chdir('samples') do
|
||||||
|
args[:file] << ".rb" unless args[:file].end_with? '.rb'
|
||||||
puts "Running samples/#{args[:file]}"
|
puts "Running samples/#{args[:file]}"
|
||||||
load args[:file]
|
load args[:file]
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"folders":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"follow_symlinks": true,
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"build_systems":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"shell_cmd": "rake run[text_options]",
|
||||||
|
"name": "rake run[text_options]",
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue