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.

Ability to create a component without creating it's parent directory?

See original GitHub issue

If I have a components/ directory and want to just create a file in that directory when running the script can I do that with the current implementation?

so if I run create-component-app -t container and call it NavContainer can I get it to create it under components/NavContainer.js instead of components/NavContainer/NavContainer.js

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
puemoscommented, Oct 29, 2017

Hey @CVarisco @mdxprograms ,

Maybe we can create an optional config file in the base directory of the template with specific configs for it. When we use the template first we read the config and then we can generate the components by them.

  1. create directory or not
  2. set of extra questions
  3. flow supprt

.config.yml

dir: bool
flow: bool
questions: Array<Question>
...etc
1reaction
mdxprogramscommented, Nov 10, 2017

Thanks @CVarisco

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Component without folder - Stack Overflow
I need to create a component without the folder ...
Read more >
ng generate component using the CLI - Pluralsight
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 >
Getting started with standalone components - Angular
imports can also be used to reference standalone directives and pipes. In this way, standalone components can be written without the need to...
Read more >
Python - Import from parent directory - GeeksforGeeks
As we have discussed earlier it is not possible to import a module from the parent directory, so this leads to an error...
Read more >
How to share data between components in Angular
When we build components in an application, we maybe need to share or send data from parent to child or without a direct...
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