angular-cli
angular-cli copied to clipboard
Allow creating applications and libraries in separate folders for better project structure.
[ V ] Feature request
Currently both applications and libraries placed in same directory.
And there is only one config for this: newProjectRoot
Please add another one: newLibraryRoot
- if set, libraries would be stored there.
It would be nice to define the directory/folder as a generate option:
ng g library foo -d libs/datelibs/
ng g library bar -d libs/layoutlibs/
ng g application -d projects/mysubapp
Just figured out that you could generate libraries with namespace. For example:
ng g library @namespace/xxx
ng g library @namespace/yyy
Will generate two libraries with following structure
@
(at sign) is required for namespace.
For some reason it's not mentioned in wiki. https://github.com/angular/angular-cli/wiki/generate
@filipesilva Should be documented, don't you think ?
@filipesilva this should definitely be documented. can you maybe promote from your backlog?
It will a good feature, so developers can easily understand libs and projects (i.e application).
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.
Find more details about Angular's feature request process in our documentation.
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.
We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
You can find more details about the feature request process in our documentation.