-
Notifications
You must be signed in to change notification settings - Fork 12k
No option to create workspace only with ng-new #11402
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
Comments
Maybe I should phrase this as a feature request... It would be nice if So... steps would then become:
yields the typical:
Next... So the result would be:
|
Related to #10929 |
Hi, you can create a workspace without an application using the See the docs for If I am misunderstanding your needs kindly let me know. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Area
Repro steps
This is more of a conceptual / documentation request... I'm in the process of creating my own collection of schematics to scaffold out a project structure using a mono-repo approach.
The only way to do this at the moment is to run:
but then all of the
src/
files remain (and the original angular.json info for a project that is now inconsistently stored). There's no way to create a new repo without thesrc
folder... and when I do this using a custom schematic by essentially duplicatingng-new
and removingangular-cli/packages/schematics/angular/ng-new/index.ts
Line 61 in 6449a75
schematic('application', applicationOptions),
Whenever I run...
Only the e2e files get put into
projects/
and theangular.json
file remains largely empty:I suspect this has to do with something silently failing in the application schematic or a path being off... but I wanted to check first if there was an easier way.
Desired functionality
Seems like as mono-repo / project-based apps may become more common... there should be an easy way to create a workspace-only repo (no
/src
application). Or if there is a preferred way to do it, it should be documented. I'd rather not do ng new, remove src and remove "clean" the angular.json file.Mention any other details that might be useful
I'd be happy to submit a PR for documentation and/or enabling a way to create a project-structure-based app (i.e. no
/src
folder)The text was updated successfully, but these errors were encountered: