-
Notifications
You must be signed in to change notification settings - Fork 12k
Unnecessary prompts for ng new when using create application false (i.e. Conditional Prompts) #13383
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
@alan-agius4 you can get the info via ng new --help
--create-application
When true (the default), creates a new initial app project in the new workspace. |
@DenysVuika, apologies, re-opened. |
There are actually a range of different issues related to For example, it's not expected that If these options aren't compatible with Here's an empty workspace {
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {}
} This testing was done with |
Hello! @FrozenPandaz and I were discussing another use case for Conditional Prompts on the Nx repo (see nrwl/nx#1211) which could be achievable via Inquirer's However, we wanted to move that discussion here since the implementation seemed less trivial than we thought for our particular use case. Given the way the AFAICT using the |
…uting and --style refs angular#13383
I think many of issues related to I have started experimenting with this in this draft PR. Should I continue working on this issue? |
…outing and --style refs angular#13383
…outing and --style This is the first step towards solving issue related to angular#13383 closes angular#14705
…outing and --style This is the first step towards solving issue related to angular#13383 closes angular#14705
Late to the party, but I just experienced this today (I've never used a workspace before). When it prompted me to select the preferred stylesheet format, I assumed that this would be a default automatically applied or inherited by all subsequent projects. This assumption was reinforced when I called So while the obvious fix would be to remove the prompts entirely, a potentially useful alternative would be to inherit the workspace's configuration in generated child projects. (Global configuration, as far as I understand, is one of the benefits of using workspaces for multiple projects...) Just laying this out there; I didn't want to open a new ticket since this one was already open. |
If this issue is affecting you, please 👍 the first post. |
…outing and --style This is the first step towards solving issue related to angular#13383 closes angular#14705
…outing and --style This is the first step towards solving issue related to angular#13383 closes angular#14705
The application schematic now supports Next we need to update the |
Yes, I am currently working on it :) |
I just made a PR #15207 to solve this issue 🙂. |
For now all unit tests are green but e2e tests are red :( |
All looks good in the PR now! Thank you. |
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
)Command (mark with an
x
)Versions
CLI: 7.1.4
Repro steps
Generating workspace without application still causes questions about the app:
The log given by the failure
Desired functionality
The CLI should not ask questions about application it is not going to generate anyway.
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: