Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
#!/usr/bin/env node
const path = require('path')
const meow = require('meow')
const { buildDev, configLoaderCreator } = require('@storybook/core/server')
const webpack = require('webpack')
// https://github.com/storybooks/storybook/blob/master/app/react/src/server/config.js
const defaultConfig = require('@storybook/react/dist/server/config/babel')
const wrapBabelConfig = require('@storybook/react/dist/server/wrapBabelConfig')
.default
const getBaseConfig = require('@storybook/react/dist/server/config/webpack.config')
.default
const cli = meow(
`
Usage
$ kit-storybook examples
Options
-p --port Port for Storybook development server
--name Name displayed in storybook (default Kit Examples)
`,
{
flags: {
port: {
type: 'string',