Skip to content

Commit

Permalink
Merge pull request #115 from thomasaull/master
Browse files Browse the repository at this point in the history
Update cli options
  • Loading branch information
pksunkara authored Nov 26, 2020
2 parents 8242b4b + 163ad2c commit 6c58430
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ const sharedOptions = [
['-s, --static-dir <dir-names>', 'Directory where to load static files from', parseList],
['-c, --config-dir [dir-name]', 'Directory where to load Storybook configurations from'],
['--quiet', 'Suppress verbose build output'],
['--debug-webpack', 'Preview Webpack Config for debugging'],
['--loglevel [level]', 'Control level of logging during build'],
['--no-dll', 'Do not use dll reference (no-op)'],
['--docs-dll', 'Use Docs dll reference (legacy)'],
['--ui-dll', 'Use UI dll reference (legacy)'],
['--debug-webpack', 'Display final webpack configurations for debugging purposes'],
['--preview-url [string]', 'Disables the default storybook preview and lets your use your own'],
];

// Parsed from storybook repo.
// tags/v4.1.4: storybook/lib/core/src/server/cli/prod.js
// tags/v6.1.6: storybook/lib/core/src/server/cli/prod.js
const prodOptions = [
...sharedOptions,
['-o, --output-dir [dir-name]', 'Directory where to store built files'],
Expand All @@ -21,7 +26,7 @@ const prodOptions = [
];

// Parsed from storybook repo.
// tags/v4.1.4: storybook/lib/core/src/server/cli/dev.js
// tags/v6.1.6: storybook/lib/core/src/server/cli/dev.js
const devOptions = [
...sharedOptions,
['-p, --port [number]', 'Port to run Storybook', (str) => parseInt(str, 10)],
Expand All @@ -31,7 +36,11 @@ const devOptions = [
['--ssl-cert <cert>', 'Provide an SSL certificate. (Required with --https)'],
['--ssl-key <key>', 'Provide an SSL key. (Required with --https)'],
['--smoke-test', 'Exit after successful start'],
['--ci', "CI mode (skip interactive prompts, don't open browser"],
['--ci', "CI mode (skip interactive prompts, don't open browser)"],
['--no-version-updates', 'Suppress update check', true],
['--no-release-notes', 'Suppress automatic redirects to the release notes after upgrading', true],
['--no-manager-cache', 'Do not cache the manager UI'],
['--docs', 'Starts Storybook in documentation mode'],
];

const generateVueCliOptions = (options) => options.reduce(
Expand Down

0 comments on commit 6c58430

Please sign in to comment.