Configure what files generate command creates
See original GitHub issueAs the application grows, one might need to change the content of what the commands generate, or if just by design, wanting to avoid creating tests or storybook files for certain generate commands.
Suggestion for the command options
--no--test
--no-story
Suggestions for the global options via config
[web]
port = 8910
apiProxyPath = "/.netlify/functions"
[generate]
[cells]
stories = "true"
tests = "false"
[pages]
stories = "false"
tests = "true"
Credit to @dthyresson for the command and config suggestions
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
ng generate
Generates and/or modifies files based on a schematic. ng generate < schematic >. ng g < schematic >. This command has the following...
Read more >ng generate component using the CLI
ng generate component is a simple one-line command which creates different files and a folder, and it references the newly created component ...
Read more >How to generate components in a specific folder with ...
Right click on the folder in which you want to create component. Select option Open in Integrated Terminal or Open in Command Prompt...
Read more >Ionic Generate: Create Pages, Components, & Angular ...
Automatically create framework features with Ionic Generate. This command uses the Angular CLI to generate features such as pages , components , directives ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jvanbaarsen Oh, I agree with you. It will be a nice option to have – I just wanted to put in the history of the issue that there can be another perspective.
I actually think I would want stories just for cells and components – and not so much layouts and pages.
So this feature will help me not to generate those 😃
@cannikin Can you assign this one to me? I’d like to work on this, feels like a nice “Good first issue”