question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configure what files generate command creates

See original GitHub issue

As 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:closed
  • Created 3 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
dthyressoncommented, Nov 7, 2020

@dthyresson I actually really would like this option for myself, since I don’t write stories for every component. See my question about this on the forum for more context: https://community.redwoodjs.com/t/when-do-stories-make-sense-for-pages/1380

@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 😃

1reaction
jvanbaarsencommented, Nov 7, 2020

@cannikin Can you assign this one to me? I’d like to work on this, feels like a nice “Good first issue”

Read more comments on GitHub >

github_iconTop 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 >
Angular - ng generate
Generates and/or modifies files based on a schematic.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found