-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23926 from storybookjs/version-prerelease-from-7.…
…4.0-alpha.1 Release: Prerelease 7.4.0-alpha.2
- Loading branch information
Showing
68 changed files
with
887 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,5 @@ code/playwright-results/ | |
code/playwright-report/ | ||
code/playwright/.cache/ | ||
code/bench-results/ | ||
|
||
/packs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
/* eslint-disable import/export */ | ||
import { dirname, join } from 'path'; | ||
|
||
// eslint-disable-next-line import/export | ||
export * from '@storybook/addon-docs/dist/preset'; | ||
|
||
export const mdxLoaderOptions = async (config: any) => { | ||
// eslint-disable-next-line no-param-reassign | ||
config.mdxCompileOptions.providerImportSource = '@storybook/addon-essentials/docs/mdx-react-shim'; | ||
config.mdxCompileOptions.providerImportSource = join( | ||
dirname(require.resolve('@storybook/addon-docs/package.json')), | ||
'/dist/shims/mdx-react-shim' | ||
); | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const { spawn } = require('child_process'); | ||
|
||
const PACKAGE_MANAGER_TO_COMMAND = { | ||
npm: 'npx', | ||
yarn1: 'yarn dlx', | ||
yarn2: 'yarn dlx', | ||
pnpm: 'pnpm dlx', | ||
}; | ||
|
||
module.exports = function postinstall(options) { | ||
const command = PACKAGE_MANAGER_TO_COMMAND[options.packageManager]; | ||
|
||
spawn(command, ['@storybook/auto-config', 'themes'], { | ||
stdio: 'inherit', | ||
cwd: process.cwd(), | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
import { CoreBuilder } from '../../project_types'; | ||
import { baseGenerator } from '../baseGenerator'; | ||
import type { Generator } from '../types'; | ||
|
||
const generator: Generator = async (packageManager, npmOptions, options) => { | ||
await baseGenerator(packageManager, npmOptions, options, 'ember', { | ||
extraPackages: [ | ||
// babel-plugin-ember-modules-api-polyfill is a peerDep of @storybook/ember | ||
'babel-plugin-ember-modules-api-polyfill', | ||
// babel-plugin-htmlbars-inline-precompile is a peerDep of @storybook/ember | ||
'babel-plugin-htmlbars-inline-precompile', | ||
], | ||
staticDir: 'dist', | ||
}); | ||
await baseGenerator( | ||
packageManager, | ||
npmOptions, | ||
{ ...options, builder: CoreBuilder.Webpack5 }, | ||
'ember', | ||
{ | ||
extraPackages: [ | ||
// babel-plugin-ember-modules-api-polyfill is a peerDep of @storybook/ember | ||
'babel-plugin-ember-modules-api-polyfill', | ||
// babel-plugin-htmlbars-inline-precompile is a peerDep of @storybook/ember | ||
'babel-plugin-htmlbars-inline-precompile', | ||
], | ||
staticDir: 'dist', | ||
} | ||
); | ||
}; | ||
|
||
export default generator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.