Skip to content

Commit

Permalink
Try to fix generators loading and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Feb 16, 2021
1 parent a0b6e48 commit 4abc185
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/generators/graphql/install_generator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'rails/generators'
require 'rails/generators/base'
require_relative 'core'
require_relative 'relay'
Expand Down
1 change: 1 addition & 0 deletions lib/generators/graphql/loader_generator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'rails/generators'
require "rails/generators/named_base"
require_relative "core"

Expand Down
1 change: 1 addition & 0 deletions lib/generators/graphql/mutation_generator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'rails/generators'
require 'rails/generators/named_base'
require_relative 'core'

Expand Down
1 change: 1 addition & 0 deletions lib/generators/graphql/relay_generator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'rails/generators'
require 'rails/generators/base'
require_relative 'core'
require_relative 'relay'
Expand Down
1 change: 1 addition & 0 deletions lib/generators/graphql/type_generator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'rails/generators'
require 'rails/generators/base'
require 'graphql'
require 'active_support'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def setup(directory = "app/graphql")
prepare_destination
FileUtils.cd(File.expand_path("../../../tmp", File.dirname(__FILE__))) do
`rm -rf dummy`
`rails new dummy --skip-active-record --skip-test-unit --skip-spring --skip-bundle`
`rails new dummy --skip-active-record --skip-test-unit --skip-spring --skip-bundle --skip-webpack-install`
end

FileUtils.cd(destination_root) do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class GraphQLGeneratorsRelayGeneratorTest < Rails::Generators::TestCase
prepare_destination

FileUtils.cd(File.join(destination_root, '..')) do
`rails new dummy --skip-active-record --skip-test-unit --skip-spring --skip-bundle`
`rails new dummy --skip-active-record --skip-test-unit --skip-spring --skip-bundle --skip-webpack-install`

FileUtils.cd("dummy") do
`rails generate graphql:install`
Expand Down

0 comments on commit 4abc185

Please sign in to comment.