Skip to content

Commit

Permalink
Add "rake clean" task to erase generated parser files
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Aug 9, 2021
1 parent a177377 commit 4e3e635
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Rakefile
Expand Up @@ -90,6 +90,12 @@ task "#{path}.gem" => package_parser_files
desc "Generate all files used racc and kpeg"
task :generate => parsed_files

task :clean do
parsed_files.each do |path|
File.delete(path) if File.exist?(path)
end
end

begin
require 'rubocop/rake_task'
rescue LoadError
Expand Down

0 comments on commit 4e3e635

Please sign in to comment.