Skip to content

Generators and tasks do not work in engines #138

Open
@pbhogan

Description

@pbhogan

When using Stimulus in an engine, running the stimulus controller generator doesn't respect the engine namespace. So it'll generate in app/javascript/controllers instead of app/javascript/engine_name/controllers

Furthermore, the stimulus tasks are not available, so the automatic execution of stimulus:manifest:update by the generator fails.

I know this can all be done manually, but it's unintuitive that it doesn't work when other Rails generators operate correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions