add-form
npm run add:form -- --args <workspacePath> <formSchema> <formHookName>npx turbo gen add-form --args <workspacePath> <formSchema> <formHookName>- add-form.ts
Prompt Arguments
| Argument | Type | Question / Description |
|---|---|---|
| workspacePath | autocomplete | Where would you like to add this form? => e.g. features/@app-core |
| formSchema | autocomplete | Which zod / input schema should we use? => e.g. HealthCheckInput / new |
| formHookName | text | What should the form hook be named? => string (e.g. useSomeSchemaState) |
Resulting File Changes
/{workspacePath}/ # <- e.g. 'features/@app-core/' or 'packages/some-package/'
└── hooks/
└── {formHookName}.ts ❇️ # <- Will integrate with chosen / new schema