Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Import Bundler tasks to Rakefile
Browse files Browse the repository at this point in the history
Also changes default linting to auto correct and adds a description for the npm_install task
  • Loading branch information
jacoblearned committed Sep 11, 2019
1 parent a3e534d commit 6908ac1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

task default: %I[lint spec]
task default: %I[lint:auto_correct spec]

RuboCop::RakeTask.new(:lint)

Expand All @@ -26,6 +27,7 @@ task :integration_test do
end
end

desc 'Install test project NPM packages'
task :npm_install do
Dir.chdir('spec/support/test-project')
sh 'npm i'
Expand Down

0 comments on commit 6908ac1

Please sign in to comment.