Skip to content

Commit

Permalink
docs(angular): update code sample in the incremental builds guide
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Dec 23, 2020
1 parent 8400d75 commit 37e1155
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
25 changes: 17 additions & 8 deletions docs/angular/guides/setup-incremental-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,24 +74,33 @@ To serve an app incrementally use this command:
nx serve myapp --with-deps --parallel
```

Note: you can obviously specify the `--with-deps` and `--parallel` flags as part of the options property on the executor in your `angular.json` or `workspace.json`.
Note: you can specify the `--with-deps` and `--parallel` flags as part of the options property on the file-server executor in your `angular.json` or `workspace.json`. The file-server executor will pass those to the `nx build` command it invokes.

```
"mylib": {
"projectType": "library",
"app0": {
"projectType": "application",
...
"architect": {
"build": {
"builder": "@nrwl/angular:ng-packagr-lite",
"builder": "@nrwl/angular:webpack-browser",
"options": { ... }
"configurations": { ... }
},
"serve": {
"builder": "@nrwl/web:file-server",
"options": {
...,
"buildTarget": "app0:build",
"withDeps": true,
"parallel": true
},
...
"configurations": {
"production": {
"buildTarget": "app0:build:production"
}
}
},
},
...
...
}
},
```

Expand Down
5 changes: 0 additions & 5 deletions docs/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -1007,11 +1007,6 @@
"file": "shared/workspace/structure/dependency-graph"
}
]
},
{
"name": "Updating Nx",
"id": "update",
"file": "angular/guides/update"
}
]
},
Expand Down

0 comments on commit 37e1155

Please sign in to comment.