Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add config boolean to make styles file optional #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chaoticbear
Copy link
Contributor

@chaoticbear chaoticbear commented Feb 23, 2022

Proposal

The current plop generator includes a styles template, which is great for many group's workflows.

In our case we are going with a one export per file approach for our styled components and the initial default file doesn't make sense. Since none of the current options seem to disable creating that file we've added that feature here.

Usage

By default the style file is still created and the config option is not required to exist in the list.

To disable the style file creation, add the following to the plop file atomicGenerator config:

createStyles: false,

@chaoticbear chaoticbear force-pushed the jf/feature/add-config-styles-toggle branch from 1c5150e to 6383348 Compare February 23, 2022 07:25
@chaoticbear chaoticbear marked this pull request as ready for review March 3, 2022 17:45
@chaoticbear
Copy link
Contributor Author

@ahoendgen Here's another PR for disabling the style.ts file. Let me know if you have any feedback or need any changes here.

@chaoticbear chaoticbear changed the title [WIP][FEATURE] Add config boolean to make styles file optional [FEATURE] Add config boolean to make styles file optional Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant