1c8796a4d7
This PR cleans up the markdown files under `packages/`. We previously had to support Next.js docs and translate it for astro docs with proper markdown syntax. This applies to generators, executors, and migrations. Also removes the function to do the translation in astro app since it's no longer needed. ## Code block (migrations) <img width="1086" height="800" alt="Screenshot 2025-11-20 at 1 23 53 PM" src="https://github.com/user-attachments/assets/bd9acb9b-7960-4e41-9d26-22d29da6658e" /> ## Aside (generators) <img width="802" height="443" alt="Screenshot 2025-11-20 at 1 43 17 PM" src="https://github.com/user-attachments/assets/e2999821-8783-46ed-a984-2193f6f8eafa" />
843 B
843 B
Examples
Basic executor
Create a new executor called build at tools/my-plugin/src/executors/build.ts:
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:
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:
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:
nx g @nx/plugin:executor tools/my-plugin/src/executors/build --includeHasher