-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathRakefile
36 lines (27 loc) · 829 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require "rubocop/rake_task"
require "rspec/core/rake_task"
APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
load "rails/tasks/engine.rake"
load "rails/tasks/statistics.rake"
require "bundler/gem_tasks"
RuboCop::RakeTask.new
RSpec::Core::RakeTask.new
namespace :assets do
desc "Test precompiling assets through dummy application"
task :precompile do
Rake::Task["app:assets:precompile"].invoke
end
desc "Test cleaning assets through dummy application"
task :clean do
Rake::Task["app:assets:clean"].invoke
end
desc "Test clobbering assets through dummy application"
task :clobber do
Rake::Task["app:assets:clobber"].invoke
end
end
desc "Linting for Ruby, JS and SASS"
task lint: %i[rubocop environment] do
sh "yarn run lint"
end
task default: [:lint, :spec, "app:jasmine:ci"]