From 37e115589be71b5b0871d6dc6b837499b21ad0a1 Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Wed, 23 Dec 2020 09:23:40 -0500 Subject: [PATCH] docs(angular): update code sample in the incremental builds guide --- .../guides/setup-incremental-builds.md | 25 +++++++++++++------ docs/map.json | 5 ---- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/docs/angular/guides/setup-incremental-builds.md b/docs/angular/guides/setup-incremental-builds.md index 06690e128246a..58771181e8179 100644 --- a/docs/angular/guides/setup-incremental-builds.md +++ b/docs/angular/guides/setup-incremental-builds.md @@ -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" + } + } }, - }, - ... + ... + } }, ``` diff --git a/docs/map.json b/docs/map.json index dbcc3b166c030..559de4e1c337a 100644 --- a/docs/map.json +++ b/docs/map.json @@ -1007,11 +1007,6 @@ "file": "shared/workspace/structure/dependency-graph" } ] - }, - { - "name": "Updating Nx", - "id": "update", - "file": "angular/guides/update" } ] },