-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
45 lines (35 loc) · 870 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
37
38
39
40
41
42
43
44
45
# frozen_string_literal: true
require "bundler/gem_tasks"
begin
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
desc "spec task stub"
task :spec do
warn "NOTE: rspec isn't installed, or is disabled for #{RUBY_VERSION} in the current environment"
end
end
desc "alias test task to spec"
task test: :spec
begin
require "yard"
YARD::Rake::YardocTask.new do |t|
t.files = [
# Splats (alphabetical)
"lib/**/*.rb"
]
end
rescue LoadError
task :yard do
warn "NOTE: yard isn't installed, or is disabled for #{RUBY_VERSION} in the current environment"
end
end
desc "Regenerate the Gitmoji reference source files"
task :regenerate do
load "bin/refresh"
end
defaults = %i[regenerate test]
require "rubocop/lts"
Rubocop::Lts.install_tasks
defaults << :rubocop_gradual
task default: defaults