Skip to content

Commit

Permalink
Add rake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Jun 24, 2024
1 parent 52f2247 commit bcfc4cd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,15 @@ Rake::TestTask.new(:test) do |t|
end

task default: :test

namespace :rbs do
task :generate do
sh "rbs-inline --opt-out --output lib"
end

task :watch do
sh "fswatch -0 lib | xargs -n1 -0 rbs-inline --opt-out --output lib"
rescue Interrupt
# nop
end
end

0 comments on commit bcfc4cd

Please sign in to comment.