Skip to content

Commit

Permalink
docs(schematics): Use CLI command to setup default schematics (ngrx#879)
Browse files Browse the repository at this point in the history
Instead of editing the .angular-cli.json manually, you can run ng set. This is also used when setting up the @angular/service-worker.
  • Loading branch information
kiwikern authored and sandangel committed Mar 23, 2018
1 parent 3d6803c commit 0b648b8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/schematics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ After installing `@ngrx/schematics`, install the NgRx dependencies.
## Default Schematics Collection

To use `@ngrx/schematics` as the default collection in your Angular CLI project,
add the following to the `defaults` section in your `.angular-cli.json`.
add it to your `.angular-cli.json`:

```json
"schematics": {
"collection": "@ngrx/schematics"
}
```sh
ng set defaults.schematics.collection=@ngrx/schematics
```

The [collection schema](../../modules/schematics/collection.json) also has aliases to the most common blueprints used to generate files.
Expand Down

0 comments on commit 0b648b8

Please sign in to comment.