@takuma-ru/auto-story-generator
v0.4.0
Published
Automatic real-time story file generation from React, Vue, Angular and Lit component files
Maintainers
Readme
@takuma-ru/auto-story-generator
![]()
Description
Automatic real-time story file generation from React, Vue, Angular and Lit component files
Getting Started
1. Install the package
npm i @takuma-ru/auto-story-generator2. Add config
Add settings to main.ts in Storybook (./storybook/main.ts)
For React, Vite
import type { StorybookConfig } from "@storybook/react-vite";
import autoStoryGenerator from "@takuma-ru/auto-story-generator";
import { mergeConfig } from "vite";
const config: StorybookConfig = {
viteFinal: async config =>
mergeConfig(config, {
plugins: [
autoStoryGenerator.vite({
preset: "react",
imports: ["src/components/**/*.tsx"],
}),
],
}),
};
export default config;Supported Frameworks
✅: Supported 🚧: Work in progress ❌: Not supported 📝: Not yet implemented
| Framework | Supported | | --------- | --------- | | React | ✅ | | Vue | 🚧 | | Lit | ✅ | | Angular | 🚧 | | Svelte | 📝 | | Custom | 📝 |
Contributors
Main contributor
takuma-ru : Core API, React presets more...
