Class: ReactOnRails::Generators::ReactWithReduxGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ReactOnRails::Generators::ReactWithReduxGenerator
- Includes:
- GeneratorHelper, DemoPageConfig
- Defined in:
- lib/generators/react_on_rails/react_with_redux_generator.rb
Instance Method Summary collapse
-
#run_generator ⇒ Object
Only this public method is dispatched by Rails; helpers below stay private.
Methods included from DemoPageConfig
#build_hello_server_view_config, #build_hello_world_view_config
Methods included from GeneratorHelper
#absolute_generator_path, #absolute_path_relative_to_destination, #add_documentation_reference, #add_npm_dependencies, #bundler_flag_given?, #component_extension, #configured_shakapacker_relative_path, #destination_config_path, #detect_react_version, #example_component_source_directory, #example_component_source_path, #explicit_bundler_choice, #extract_declared_layout_name, #gem_in_lockfile?, #html_comment_ranges, #inherited_application_layout_name, #javascript_relative_import_path, #layout_destination_path, #layout_file_links_tailwind_pack?, #layout_links_tailwind_pack?, #package_json, #path_inside_or_equal?, #print_generator_messages, #pro_gem_installed?, #range_overlaps_any?, #relative_tailwind_stylesheet_import_path, #resolve_server_client_or_both_path, #root_route_present?, #rsc_plugin_class_name, #rsc_plugin_import_path, #rspack_bundler_default, #safe_generator_destination_path, #shakapacker_entrypoint_path, #shakapacker_path_config_value, #shakapacker_source_entry_path, #shakapacker_source_path, #shakapacker_stylesheet_path, #shakapacker_version_9_or_higher?, #stylesheet_dir_relative_path, #tailwind_css_source_directives, #tailwind_css_string, #tailwind_import_statement, #tailwind_pack_filename, #tailwind_pack_name, #tailwind_pack_path, #tailwind_source_statement, #tailwind_stylesheet_path, #unsafe_generator_destination_path?, #use_pro?, #use_rsc?, #use_tailwind?, #using_rspack?, #using_swc?
Instance Method Details
#run_generator ⇒ Object
Only this public method is dispatched by Rails; helpers below stay private.
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/generators/react_on_rails/react_with_redux_generator.rb', line 33 def run_generator add_legacy_redux_generator_warning validate_standalone_tailwind create_redux_directories copy_base_files copy_base_redux_files create_appropriate_templates add_redux_npm_dependencies ensure unless [:invoked_by_install] end |