List available projects in a workspace - `ng projects`

Open
#23,482 8 comments 21 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
angular, typescript
Domain
cli, tooling

Research direction

Start by examining how the Angular CLI reads the current workspace's angular.json and how existing commands are registered. Compare the proposed ng projects and ng ls entry points, then verify that the chosen command lists every available workspace project and explains how each can be used.

Written by the indexing model from the issue text.

Description

area: @angular/cli feature feature: under consideration

🚀 Feature request

Command (mark with an x)
  • projects
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.

Dominant language
TypeScript
Stars
27k
Forks
11.8k
Avg merge
16h 35m
Merged PRs (30d)
176

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from angular/angular-cli

All issues in angular/angular-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.