Skip to content

docs: ng add configures project in cwd #15377

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

Merged
merged 2 commits into from
Aug 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/angular/cli/commands/add.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Adds the npm package for a published library to your workspace, and configures your default
app project to use that library, in whatever way is specified by the library's schematic.
Adds the npm package for a published library to your workspace, and configures
the project in the current working directory (or the default project if you are
not in a project directory) to use that library, as specified by the library's schematic.
For example, adding `@angular/pwa` configures your project for PWA support:
```bash
ng add @angular/pwa
```

The default app project is the value of `defaultProject` in `angular.json`.
The default project is the value of `defaultProject` in `angular.json`.