-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
80 lines (64 loc) · 1.91 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
end
require "rubocop/rake_task"
RuboCop::RakeTask.new
namespace :esport_ics do
namespace :generate do
require "esport_ics"
desc "Generate Call of Duty Modern Warfare ics files"
task :call_of_duty_mw do
EsportIcs::Games::CallOfDutyMW.new.build!.write!
end
desc "Generate CSGO ics files"
task :counter_strike do
EsportIcs::Games::CounterStrike.new.build!.write!
end
desc "Generate Dota 2 ics files"
task :dota_2 do
EsportIcs::Games::Dota2.new.build!.write!
end
desc "Generate League of Legends ics files"
task :league_of_legends do
EsportIcs::Games::LeagueOfLegends.new.build!.write!
end
desc "Generate League of Legends Wild Rift ics files"
task :league_of_legends_wildrift do
EsportIcs::Games::LeagueOfLegendsWildRift.new.build!.write!
end
desc "Generate Overwatch 2 ics files"
task :overwatch_2 do
EsportIcs::Games::Overwatch2.new.build!.write!
end
desc "Generate R6Siege ics files"
task :rainbow_six_siege do
EsportIcs::Games::RainbowSixSiege.new.build!.write!
end
desc "Generate Rocket League ics files"
task :rocket_league do
EsportIcs::Games::RocketLeague.new.build!.write!
end
desc "Generate Valorant ics files"
task :valorant do
EsportIcs::Games::Valorant.new.build!.write!
end
desc "Run all generators"
task all: [
"generate:call_of_duty_mw",
"generate:counter_strike",
"generate:dota_2",
"generate:league_of_legends",
"generate:league_of_legends_wildrift",
"generate:overwatch_2",
"generate:rainbow_six_siege",
"generate:rocket_league",
"generate:valorant",
]
end
end
task default: [:test, :rubocop]