generate_pinia_store
Generate a Pinia store file with state, actions, and getters in a Nuxt 4 project. Specify store name, relative path, and optional module.
Instructions
Generate a Pinia store in the target Nuxt 4 codebase. Creates a new store file with state, actions, and getters.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the store (e.g., 'user', 'auth') | |
| relativePath | Yes | Relative path in target (e.g., 'stores/user.ts') | |
| module | No | Optional module name to prefix path (e.g., 'deals', 'tickets') | |
| targetPath | No | Optional absolute target path override | |
| stateProperties | No | Optional state properties to include | |
| actions | No | Optional actions to include | |
| getters | No | Optional getters to include |