Add generator options to skip reflex and stimulus #543
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature
Description
As requested by @julianrubisch in #541. A user might not require a stimulus controller or an application_reflex or both to be created or modified when using the generator. This PR adds four options
--skip-stimulus
,--skip-reflex
,--skip-app-controller
and--skip-app-reflex
that helps the developer customize the files required.Fixes #541
Why should this be added
Everyone doesn't need the stimulus controller to be automatically created when using the generator. The added options can potentially save time by adding a simple flag to the generator instead of having to delete files or manually modify unwanted changes made by the generator.
Checklist
Thank for your the opportunity to contribute again! ❤️