Nx plugin to integrate the Code PushUp CLI into your workspace 🛠️
npm install @push-based/zod2nx-schema-nx-pluginRegister this plugin in your nx.json to leverage a set of generators and executors to integrate zod2nx-schema into a Nx workspace.
#### Registration
``jsonc`
// nx.json
{
//...
"plugins": ["@push-based/zod2nx-schema-nx-plugin"],
}
Resulting targets:
- nx run (no config file present)nx run
- (zod2nx-schema.config.{ts,mjs,js} is present)
#### Init
Install JS packages and register plugin.
See init generator docs for details
Examples:
- nx g @push-based/zod2nx-schema-nx-plugin:init - setup push-based in the workspacenx g @push-based/zod2nx-schema-nx-plugin:init --skipPackageJson
- - skip package.json update
#### Configuration
Adds a zod2nx-schema.config.ts to your project root.
See configuration generator docs for details
Examples:
- nx g @push-based/zod2nx-schema-nx-plugin:configuration --project=
#### CLI
Install JS packages configure a target in your project json.
See CLI executor docs for details
Examples:
`json`
{
"name": "my-project",
"targets": {
"push-based": {
"executor": "@push-based/zod2nx-schema-nx-plugin:cli",
"options": {
"config": "zod2nx-schema.config.ts"
}
}
}
}
- nx run nx run
-