Bug Report or Feature Request (mark with an x)
This is a feature request
Desired functionality
When creating a new workspace an application is created automatically, I would like to be able to create a new workspace with no applications inside.
Mention any other details that might be useful
This would be helpful for just creating a library without an application. Also it would permit creating all projects inside of the projects directory.
Proposal
Add a new option to the ng-new schematic named empty which would default to false, which can be used to create the workspace without any projects.
ng new my-workspace --empty
# or with an alias
ng new my-workspace -e
Consideration
This logic could be implemented as a custom schematic, but I feel that there is value in providing this in the default schematic collection to reach a broader audience, and at the same time making the default ng-new more extensible for other custom schematic collections that are based upon these default schematics.
UPDATE Another benefit of not generating a default application via this proposed flag is that when an application is added it will be created in the new projects folder (defaulted to projects). With the intention of using a monorepo the consistency of having all projects (apps & libs) in the same directory without special casing the initial project into the root allows for greater consistency for all projects.
Bug Report or Feature Request (mark with an
x)This is a feature request
Desired functionality
When creating a new workspace an application is created automatically, I would like to be able to create a new workspace with no applications inside.
Mention any other details that might be useful
This would be helpful for just creating a library without an application. Also it would permit creating all projects inside of the
projectsdirectory.Proposal
Add a new option to the
ng-newschematic namedemptywhich would default to false, which can be used to create the workspace without any projects.Consideration
This logic could be implemented as a custom schematic, but I feel that there is value in providing this in the default schematic collection to reach a broader audience, and at the same time making the default
ng-newmore extensible for other custom schematic collections that are based upon these default schematics.UPDATE Another benefit of not generating a default application via this proposed flag is that when an application is added it will be created in the new projects folder (defaulted to
projects). With the intention of using a monorepo the consistency of having all projects (apps & libs) in the same directory without special casing the initial project into the root allows for greater consistency for all projects.