Rakefile in ears-0.11.2 vs Rakefile in ears-0.12.0
- old
+ new
@@ -1,14 +1,24 @@
# frozen_string_literal: true
require 'rake/clean'
require 'bundler/gem_tasks'
+require 'rubocop'
+require 'rubocop/rake_task'
require 'rspec/core/rake_task'
require 'yard'
CLEAN << '.yardoc'
-CLOBBER << 'doc'
+CLOBBER << 'doc' << 'coverage'
RSpec::Core::RakeTask.new(:spec)
YARD::Rake::YardocTask.new { |t| t.stats_options = %w[--list-undoc] }
-task default: :spec
+RuboCop::RakeTask.new(:rubocop) do |task|
+ task.formatters = ['simple']
+ task.fail_on_error = true
+end
+
+desc 'Run Prettier'
+task(:prettier) { sh 'npm run lint' }
+
+task default: %i[spec rubocop prettier]