-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
28 lines (26 loc) · 674 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
require "graphql/rake_task"
require "rake"
GraphQL::RakeTask.new(
idl_outfile: "graphql/test-schema.graphql",
json_outfile: "graphql/test-schema.json",
load_schema: lambda { |_task|
require_relative "spec/example_schema/test_schema"
TestSchema
},
)
GraphQL::RakeTask.new(
idl_outfile: "graphql/test-schema-b.graphql",
json_outfile: "graphql/test-schema-b.json",
load_schema: lambda { |_task|
require_relative "spec/example_schema/test_schema_b"
TestSchemaB
},
)
namespace :graphql do
namespace :schema do
desc "Dump the test GraphQL schema to a file"
task :dump do
Rake::Task["graphql:schema:dump"].invoke
end
end
end