chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:38:36 +08:00
commit 8e2a6eb840
10194 changed files with 1593658 additions and 0 deletions
@@ -0,0 +1,9 @@
## Examples
##### Basic executable
Create an executable that initializes an Nx workspace with {my-plugin}'s preset:
```bash
nx g @nx/plugin:create-package create-my-plugin --project my-plugin
```
@@ -0,0 +1,9 @@
## Examples
##### E2E Project
Scaffolds an E2E project for the plugin `my-plugin`.
```bash
nx g @nx/plugin:e2e-project --pluginName my-plugin --npmPackageName my-plugin --pluginOutputPath dist/my-plugin
```
@@ -0,0 +1,33 @@
## Examples
##### Basic executor
Create a new executor called `build` at `tools/my-plugin/src/executors/build.ts`:
```bash
nx g @nx/plugin:executor tools/my-plugin/src/executors/build.ts
```
##### Without providing the file extension
Create a new executor called `build` at `tools/my-plugin/src/executors/build.ts`:
```bash
nx g @nx/plugin:executor tools/my-plugin/src/executors/build
```
##### With different exported name
Create a new executor called `custom` at `tools/my-plugin/src/executors/build.ts`:
```bash
nx g @nx/plugin:executor tools/my-plugin/src/executors/build.ts --name=custom
```
##### With custom hashing
Create a new executor called `build` at `tools/my-plugin/src/executors/build.ts`, that uses a custom hashing function:
```bash
nx g @nx/plugin:executor tools/my-plugin/src/executors/build --includeHasher
```