mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 02:01:06 +08:00
Merge branch 'tom/sb-849-cant-run-the-v6-store-in-sandboxes-2' into tom/sb-732-docs2-support-docs-only-stories-in-v6
This commit is contained in:
commit
b602e3393e
@ -68,7 +68,6 @@ export default async (
|
|||||||
serverChannelUrl,
|
serverChannelUrl,
|
||||||
} = options;
|
} = options;
|
||||||
|
|
||||||
const frameworkName = await getFrameworkName(options);
|
|
||||||
const frameworkOptions = await presets.apply('frameworkOptions');
|
const frameworkOptions = await presets.apply('frameworkOptions');
|
||||||
|
|
||||||
const isProd = configType === 'PRODUCTION';
|
const isProd = configType === 'PRODUCTION';
|
||||||
|
@ -12,6 +12,7 @@ import {
|
|||||||
cache,
|
cache,
|
||||||
loadMainConfig,
|
loadMainConfig,
|
||||||
validateFrameworkName,
|
validateFrameworkName,
|
||||||
|
resolveAddonName,
|
||||||
} from '@storybook/core-common';
|
} from '@storybook/core-common';
|
||||||
import prompts from 'prompts';
|
import prompts from 'prompts';
|
||||||
import global from 'global';
|
import global from 'global';
|
||||||
@ -90,7 +91,7 @@ export async function buildDevStandalone(options: CLIOptions & LoadOptions & Bui
|
|||||||
require.resolve('./presets/common-preset'),
|
require.resolve('./presets/common-preset'),
|
||||||
...(managerBuilder.corePresets || []),
|
...(managerBuilder.corePresets || []),
|
||||||
...(previewBuilder.corePresets || []),
|
...(previewBuilder.corePresets || []),
|
||||||
...(renderer ? [renderer] : []),
|
...(renderer ? [resolveAddonName(options.configDir, renderer, options)] : []),
|
||||||
...corePresets,
|
...corePresets,
|
||||||
require.resolve('./presets/babel-cache-preset'),
|
require.resolve('./presets/babel-cache-preset'),
|
||||||
],
|
],
|
||||||
|
@ -20,6 +20,7 @@ import {
|
|||||||
normalizeStories,
|
normalizeStories,
|
||||||
logConfig,
|
logConfig,
|
||||||
loadMainConfig,
|
loadMainConfig,
|
||||||
|
resolveAddonName,
|
||||||
} from '@storybook/core-common';
|
} from '@storybook/core-common';
|
||||||
|
|
||||||
import { outputStats } from './utils/output-stats';
|
import { outputStats } from './utils/output-stats';
|
||||||
@ -84,7 +85,7 @@ export async function buildStaticStandalone(
|
|||||||
require.resolve('./presets/common-preset'),
|
require.resolve('./presets/common-preset'),
|
||||||
...(managerBuilder.corePresets || []),
|
...(managerBuilder.corePresets || []),
|
||||||
...(previewBuilder.corePresets || []),
|
...(previewBuilder.corePresets || []),
|
||||||
...(renderer ? [renderer] : []),
|
...(renderer ? [resolveAddonName(options.configDir, renderer, options)] : []),
|
||||||
...corePresets,
|
...corePresets,
|
||||||
require.resolve('./presets/babel-cache-preset'),
|
require.resolve('./presets/babel-cache-preset'),
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user