Better building within sublime

dev
Andy Meneely 2015-03-11 10:04:01 -04:00
parent 666dae393d
commit bcf78cdbf7
3 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -32,3 +32,4 @@ benchmarks/_output/*.png
benchmarks/_output/*.pdf
benchmarks/_output/
samples/_output/*.svg
*.sublime-workspace

View File

@ -11,6 +11,7 @@ task default: [:install, :spec]
task :run,[:file] => :install do |t, args|
args.with_defaults(file: 'basic.rb')
Dir.chdir('samples') do
args[:file] << ".rb" unless args[:file].end_with? '.rb'
puts "Running samples/#{args[:file]}"
load args[:file]
end

17
squib.sublime-project Normal file
View File

@ -0,0 +1,17 @@
{
"folders":
[
{
"follow_symlinks": true,
"path": "."
}
],
"build_systems":
[
{
"shell_cmd": "rake run[text_options]",
"name": "rake run[text_options]",
}
],
}