-
Notifications
You must be signed in to change notification settings - Fork 12k
List available projects in a workspace - ng projects
#23482
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
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I'm joining the supporters of this feature request! In my case, I have a workspace with multiple projects and it is time-consuming to write the --project="" argument after the command, and don't want to create a separate npm script command in the packege.json for every project for every command that needs the project parameter. I have currently 2, but there will be 12 or more in the future. Another scenario: Currently, I plan to implement this in a separate bash script but I think this feature would be also beneficial in the CLI. |
There is another workaround. It's to call $> ng serve Z
$< Error: Invalid values:
Argument: project, Given: "Z", Choices: "forms", "material-view-samples" Also from v14 $> ng serve
$< Error: Cannot determine project for command.
This is a multi-project workspace and more than one project supports this command.
Run "ng serve [project]" to execute the command for a specific project or change the
current working directory to a project directory.
Available projects are:
- forms
- material-view-samples |
This comment was marked as resolved.
This comment was marked as resolved.
I would also love this feature. |
The option to specify a library or application would also be useful. |
🚀 Feature request
Command (mark with an
x
)Description
In large Angular monorepo workspaces, it can sometimes be non-obvious to discover all the available projects which can be built. We should consider a new command (
ng projects
,ng ls
, etc.) which lists all the projects in the current workspace. This can help new developers in workspace figure out exactly what they want to work on and how to do it.Describe alternatives you've considered
Workaround is to introspect the
angular.json
file, which is not obvious or easy to do, especially for a new developer.The text was updated successfully, but these errors were encountered: