Loading…
Loading…
Overview of optional tooling plugins available in @woographql/next for Storybook, Prettier, and Playwright
@woographql/next includes optional tooling plugins that enhance the developer experience. These plugins are activated during the install process based on your project configuration and template selections.
| Plugin | Purpose | Activation |
|---|---|---|
| Storybook | Component development and visual testing | Enabled when .storybook/ template is included |
| Prettier | Code formatting with Tailwind CSS and import sorting | Prompt during install |
| Playwright | End-to-end browser testing | Enabled when e2e/ template is included |
Plugins hook into the @woographql/next install lifecycle through an event system. Each plugin can:
package.jsonPlugins only add tooling when it is needed. If a template does not request Playwright, the Playwright plugin stays dormant. If the user declines Prettier, its config files are not created.
| Event | When It Runs |
|---|---|
onPromptsCollected | After user answers configuration prompts |
onTemplateRead | When a template entry is processed (detects plugin requests) |
onCollectDependencies | When gathering npm packages to install |
onCollectAppConfig | When building the final package.json scripts |
beforeDependenciesInstall | Before npm install runs |
afterDependenciesInstall | After npm install completes |
onComplete | Final setup step after all templates are written |