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 Generator Root Path Location #45

Closed
Pekes317 opened this issue Jan 16, 2018 · 6 comments
Closed

[FEATURE] - Add Generator Root Path Location #45

Pekes317 opened this issue Jan 16, 2018 · 6 comments
Assignees

Comments

@Pekes317
Copy link

It would be great if we could define where the generator creates files base on the templates.

@thomrick
Copy link
Contributor

Hey @Pekes317
Thanks for feedbacks.
Can you explain how you need this feature works ?

@thomrick thomrick self-assigned this Jan 16, 2018
@Pekes317
Copy link
Author

Sure, currently the Nest cli generates the templates in using a "src" folder as the root. Ex. "src/controllers/main/main.contoller.ts" It would nice to be able to change it to a different folder like "server" if the current "src" folder is being used for another component. Does that make sense?

@thomrick
Copy link
Contributor

Yeah totally !

If you want try to develop and make a PR about this cool feature ! ;-)
Start from master that will be released very soon on v2.0.0-rc1.

@thomrick
Copy link
Contributor

thomrick commented Apr 1, 2018

The CLI tool was rebuild from scratch and integrate schematics to generate assets.
Please upgrade to v4.0.0-rc1

@thomrick thomrick closed this as completed Apr 1, 2018
@mmenik
Copy link

mmenik commented Jun 8, 2018

Sorry but I did not understand if this feature was implemented? thks

@iamsteeve
Copy link
Contributor

This may help some who modify their nestjs to create a nest-cli.json that already comes in a generated project if it is not added and change the sourceRoot by the desired one.

{ 
    "language": "ts", 
    "sourceRoot": "src" 
} 

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

No branches or pull requests

4 participants