-
Notifications
You must be signed in to change notification settings - Fork 20
/
Rakefile
50 lines (38 loc) · 1.21 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require "rubocop/rake_task"
require "rspec/core/rake_task"
APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
ENV["RAILS_TRANSLATION_MANAGER_LOCALE_ROOT"] ||= File.expand_path("config/locales", __dir__)
load "rails/tasks/engine.rake"
load "rails/tasks/statistics.rake"
rails_translation_manager = Gem::Specification.find_by_name("rails_translation_manager").gem_dir
load "#{rails_translation_manager}/lib/tasks/translation.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 "Build the Sass files"
task :dartsass do
Rake::Task["app:dartsass:build"].invoke
end
desc "Linting for Ruby, JS and SASS"
task lint: %i[rubocop environment] do
sh "yarn run lint"
end
desc "Jasmine"
task :jasmine do
sh "yarn run jasmine:ci"
end
task default: %i[dartsass lint spec jasmine]