Class: ReactOnRails::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ReactOnRails::Generators::InstallGenerator
- Includes:
- GeneratorHelper
- Defined in:
- lib/generators/react_on_rails/install_generator.rb
Overview
rubocop:disable Metrics/ClassLength
Instance Method Summary collapse
-
#run_generators ⇒ Object
Removed: –skip-shakapacker-install (Shakapacker is now a required dependency).
Methods included from GeneratorHelper
#add_documentation_reference, #add_npm_dependencies, #copy_file_and_missing_parent_directories, #dest_dir_exists?, #dest_file_exists?, #empty_directory_with_keep_file, #keep_file, #package_json, #setup_file_error, #symlink_dest_file_to_dest_file
Instance Method Details
#run_generators ⇒ Object
Removed: –skip-shakapacker-install (Shakapacker is now a required dependency)
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/generators/react_on_rails/install_generator.rb', line 31 def run_generators if installation_prerequisites_met? || .ignore_warnings? invoke_generators add_bin_scripts else error = <<~MSG.strip 🚫 React on Rails generator prerequisites not met! Please resolve the issues listed above before continuing. All prerequisites must be satisfied for a successful installation. Use --ignore-warnings to bypass checks (not recommended). MSG GeneratorMessages.add_error(error) end ensure end |