You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: astro-docs/src/content/docs/technologies/build-tools/docker/introduction.mdoc
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -99,15 +99,15 @@ Configure `buildTarget` and `runTarget` as objects to pass custom arguments, set
99
99
100
100
When using the object format, the following properties are available:
101
101
102
-
- **`name`** (string, required): The name of the inferred target
102
+
- **`name`** (string, required): The name of the task
103
103
- **`args`** (string[], optional): Additional arguments to pass to the Docker command. Supports pattern interpolation.
104
104
- **`env`** (object, optional): Environment variables to set when running the Docker command. Values support pattern interpolation.
105
105
- **`envFile`** (string, optional): Path to an environment file to load
106
106
- **`cwd`** (string, optional): Working directory for the command. Supports pattern interpolation.
107
107
- **`configurations`** (object, optional): Named Nx configurations that override `args`, `env`, `envFile`, `cwd`, or `skipDefaultTag`.
108
108
- **`skipDefaultTag`** (boolean, default `false`): Do not add the default Nx `--tag` argument to build commands. Supply a tag in `args`; opting out also disables Nx Release versioning and publishing for that Docker project.
109
109
110
-
The build task depends on the project's `build` task and dependency builds. The run task depends on the inferred Docker build task. Nx also adds an `nx-release-publish` target that uses the `@nx/docker:release-publish` executor.
110
+
The build task depends on the project's `build` task and dependency builds. The run task depends on the Docker build task. Nx also adds an `nx-release-publish` task for publishing images with [Nx Release](/docs/features/manage-releases).
Copy file name to clipboardExpand all lines: astro-docs/src/content/docs/technologies/build-tools/rollup/introduction.mdoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ The `@nx/rollup/plugin` plugin looks for these Rollup configuration files:
48
48
- `rollup.config.cts`
49
49
- `rollup.config.mts`
50
50
51
-
A configuration file is associated with a project when its directory also contains a `package.json` or `project.json`. Nx reads the Rollup outputs and creates a cached build task that runs `rollup -c`, depends on the same task in dependency projects, and records the configured output paths for cache restoration.
51
+
A configuration file is associated with a project when its directory also contains a `package.json` or `project.json`. Nx creates a cached build task that runs `rollup -c`, with outputs based on your Rollup configuration, and depends on the same task in dependency projects.
Copy file name to clipboardExpand all lines: astro-docs/src/content/docs/technologies/build-tools/rspack/introduction.mdoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ The `@nx/rspack/plugin` is configured in the `plugins` array in `nx.json`.
95
95
| `buildDepsTargetName` | none | Name of an optional dependency build task. |
96
96
| `watchDepsTargetName` | none | Name of an optional dependency watch task. |
97
97
98
-
The build target depends on builds of project dependencies. When TypeScript project references are enabled, the inferred targets also run the TypeScript sync generator.
98
+
The build task depends on builds of project dependencies. When TypeScript project references are enabled, the tasks also run the TypeScript sync generator.
99
99
100
100
Use `include` and `exclude` glob patterns on the plugin entry to scope inference. A [target defaults](/docs/reference/nx-json#target-defaults) `plugin` filter must use the exact identifier `@nx/rspack/plugin`.
Copy file name to clipboardExpand all lines: astro-docs/src/content/docs/technologies/build-tools/vite/introduction.mdoc
+20-22Lines changed: 20 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ filter: 'type:References'
9
9
10
10
[Vite](https://vite.dev/) is a fast build tool and dev server for modern web apps. In a Vite monorepo, Nx runs and caches Vite tasks across every project so you only rebuild what changed.
11
11
12
-
The `@nx/vite` plugin adds [inferred targets](#configuration) and [project configuration generators](#setup).
12
+
The `@nx/vite` plugin adds [inferred tasks](#configuration) and [project configuration generators](#setup).
13
13
14
14
{% aside type="note" title="Vitest is now in @nx/vitest" %}
15
15
Starting with Nx v22, Vitest support has moved to the dedicated [`@nx/vitest` plugin](/docs/technologies/test-tools/vitest/introduction). In Nx v21 and prior, `@nx/vite` contained what is now in `@nx/vitest`. If you are upgrading, see the [migration guide](/docs/kb/migrating-from-nx-vite).
@@ -106,16 +106,16 @@ The `@nx/vite` plugin infers tasks by reading Vite config files. Any of the foll
106
106
107
107
The configuration directory must also contain a `package.json` or `project.json`.
108
108
109
-
Build targets are only created when the project is buildable. A project is treated as buildable when any of the following are true:
109
+
Build tasks are only created when the project is buildable. A project is treated as buildable when any of the following are true:
110
110
111
111
- `build.lib` is set in `vite.config.*`
112
112
- `build.rollupOptions.input` or `build.rolldownOptions.input` is set (Vite 8 uses `rolldownOptions`)
113
113
- `builder.buildApp` is set
114
114
- an `index.html` file exists at the project root
115
115
116
-
Dev, preview, and serve-static targets are created for buildable projects. If you are in library mode (`build.lib`), these targets are skipped unless you explicitly configure a dev server (e.g. `server.host` or `server.port`).
116
+
Dev, preview, and serve-static tasks are created for buildable projects. If you are in library mode (`build.lib`), these tasks are skipped unless you explicitly configure a dev server (e.g. `server.host` or `server.port`).
117
117
118
-
Typecheck targets are created when a `tsconfig*.json` file exists in the project.
118
+
Typecheck tasks are created when a `tsconfig*.json` file exists in the project.
119
119
120
120
### Plugin options
121
121
@@ -143,24 +143,22 @@ Configure `@nx/vite/plugin` in the `plugins` array in `nx.json`:
143
143
}
144
144
```
145
145
146
-
`serveTargetName` is deprecated; use `devTargetName` instead. `buildDepsTargetName` and `watchDepsTargetName` create targets that build or watch project dependencies.
| `buildDepsTargetName` | Name of the build-deps target for dependency builds | none |
158
-
| `watchDepsTargetName` | Name of the watch-deps target for dependency watches | none |
159
-
160
-
Build and typecheck tasks are cached.
161
-
Build tasks declare the resolved Vite build output directory.
162
-
Typecheck tasks do not declare cache outputs.
163
-
Development, preview, and static-server tasks are continuous.
146
+
`serveTargetName` is deprecated; use `devTargetName` instead. `buildDepsTargetName` and `watchDepsTargetName` create tasks that build or watch project dependencies.
Copy file name to clipboardExpand all lines: astro-docs/src/content/docs/technologies/build-tools/webpack/introduction.mdoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ The `@nx/webpack/plugin` is configured in the `plugins` array in `nx.json`.
102
102
| `buildDepsTargetName` | `build-deps` | Name of the dependency build task. |
103
103
| `watchDepsTargetName` | `watch-deps` | Name of the dependency watch task. |
104
104
105
-
The build target depends on builds of project dependencies. When TypeScript project references are enabled, the inferred targets also run the TypeScript sync generator.
105
+
The build task depends on builds of project dependencies. When TypeScript project references are enabled, the tasks also run the TypeScript sync generator.
106
106
107
107
Use `include` and `exclude` glob patterns on the plugin entry to scope inference. A [target defaults](/docs/reference/nx-json#target-defaults) `plugin` filter must use the exact identifier `@nx/webpack/plugin`.
0 commit comments