angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Allow creating applications and libraries in separate folders for better project structure.

Open ph55 opened this issue 6 years ago • 6 comments

[ 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.

ph55 avatar Jun 04 '18 09:06 ph55

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

cluen avatar Jun 25 '18 06:06 cluen

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 image

@ (at sign) is required for namespace. image

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 ?

ph55 avatar Jun 26 '18 00:06 ph55

@filipesilva this should definitely be documented. can you maybe promote from your backlog?

zpydee avatar Aug 26 '19 10:08 zpydee

It will a good feature, so developers can easily understand libs and projects (i.e application).

ramjawade avatar Nov 14 '19 12:11 ramjawade

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.

angular-robot[bot] avatar Feb 01 '22 17:02 angular-robot[bot]

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.

angular-robot[bot] avatar Feb 21 '22 13:02 angular-robot[bot]