-
Notifications
You must be signed in to change notification settings - Fork 1
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 #21 from plumelo/feature/update-to-storybook-7
Update to storybook 7
- Loading branch information
Showing
8 changed files
with
9,566 additions
and
3,871 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
coverage/ | ||
dist/ | ||
storybook-static/ |
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,3 +1,21 @@ | ||
module.exports = { | ||
stories: ['../stories/**/*.stories.@(js|jsx|ts|tsx)'], | ||
}; | ||
import esbuild from 'rollup-plugin-esbuild'; | ||
|
||
/** @type { import('@web/storybook-framework-web-components').StorybookConfig } */ | ||
const config = { | ||
stories: ['../stories/**/*.stories.{js,ts,mdx}'], | ||
//staticDirs: ['../demo'], | ||
addons: ['@storybook/addon-essentials', '@storybook/addon-links'], | ||
framework: { | ||
name: '@web/storybook-framework-web-components', | ||
}, | ||
/* Try to make the build parse TS files */ | ||
async rollupFinal(config) { | ||
// add extra configuration for rollup | ||
// e.g. a new plugin | ||
config.plugins.push(esbuild({})); | ||
|
||
return config; | ||
}, | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.