Skip to content

Commit

Permalink
docs(angular): update angular-monorepo tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
dmmishchenko authored and mandarini committed Oct 23, 2023
1 parent ac038e3 commit 329a2bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/shared/angular-tutorial/angular-monorepo.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Create a new Angular monorepo with the following command:
✔ Enable distributed caching to make your CI faster · Yes
```

Let's name the initial application `angular-store`. In this tutorial we're going to use `vite` as a bundler, `cypress` for e2e tests and `css` for styling. The above command generates the following structure:
Let's name the initial application `angular-store`. In this tutorial we're going to use `cypress` for e2e tests and `css` for styling. The above command generates the following structure:

```
└─ angular-monorepo
Expand Down Expand Up @@ -150,7 +150,7 @@ Each target contains a configuration object that tells Nx how to run that target
...
"targets": {
"serve": {
"executor": "@nx/vite:dev-server",
"executor": "@angular-devkit/build-angular:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "angular-store:build"
Expand All @@ -173,7 +173,7 @@ Each target contains a configuration object that tells Nx how to run that target

The most critical parts are:

- `executor` - this is of the syntax `<plugin>:<executor-name>`, where the `plugin` is an NPM package containing an [Nx Plugin](/extending-nx/intro/getting-started) and `<executor-name>` points to a function that runs the task. In this case, the `@nx/vite` plugin contains the `dev-server` executor which serves the Angular app using Vite.
- `executor` - this is of the syntax `<plugin>:<executor-name>`, where the `plugin` is an NPM package containing an [Nx Plugin](/extending-nx/intro/getting-started) and `<executor-name>` points to a function that runs the task.
- `options` - these are additional properties and flags passed to the executor function to customize it

Learn more about how to [run tasks with Nx](/core-features/run-tasks). We'll [revisit running tasks](#testing-and-linting-running-multiple-tasks) later in this tutorial.
Expand Down

0 comments on commit 329a2bf

Please sign in to comment.