Module: Hibiki::Rails::Generators::GeneratorHelpers

Included in:
InstallGenerator, IslandGenerator, PhlexGenerator, StimulusGenerator
Defined in:
lib/generators/hibiki/rails/generator_helpers.rb

Overview

Shared naming and wiring-detection helpers for the hibiki:rails:* generators. The naming helpers ride on NamedBase's name parts (regular_class_path / file_name); the wiring predicates only need destination_root, so the install generator uses them too.

Constant Summary collapse

INDEX_JS =
"app/javascript/controllers/index.js"
SHIM =
"app/javascript/controllers/hibiki_controller.js"
APPLICATION_HELPER =
"app/helpers/application_helper.rb"
REGISTER_FRAGMENT =
'application.register("hibiki"'
IMPORTMAP =
"config/importmap.rb"