-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
36 lines (26 loc) · 858 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
# frozen_string_literal: true
require "bundler/setup"
require "bundler/gem_tasks"
require "rspec/core/rake_task"
APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
load "rails/tasks/engine.rake"
load "rails/tasks/statistics.rake"
# prepend test:prepare to run generators, and db:prepare to run migrations
RSpec::Core::RakeTask.new(spec: %w[app:spec:prepare])
require "rubocop/katalyst/rake_task"
RuboCop::Katalyst::RakeTask.new
require "rubocop/katalyst/erb_lint_task"
RuboCop::Katalyst::ErbLintTask.new
require "rubocop/katalyst/prettier_task"
RuboCop::Katalyst::PrettierTask.new
namespace :yarn do
desc "Compile javascript"
task build: :environment do
sh "yarn build"
end
end
desc "Compile assets"
task build: ["yarn:build", "app:dartsass:build"]
task default: %i[lint build spec] do
puts "🎉 build complete! 🎉"
end