UNPKG

@m1stergo/storybook-autodocs

Version:

Storybook autodocs is an utility that takes the typescript definitions of your Vue component and defines the argTypes for storybook automatically.

8 lines (5 loc) 217 B
const findStories = require("./findStories.js"); const parseFiles = require("./parseFiles.js"); const arg = process.argv.slice(2); const dir = arg[0] ? arg[0].split("=")[1] : __dirname; parseFiles(findStories(dir))