Skip to content

Commit

Permalink
Merge pull request #21 from plumelo/feature/update-to-storybook-7
Browse files Browse the repository at this point in the history
Update to storybook 7
  • Loading branch information
megheaiulian authored Apr 4, 2024
2 parents 440e167 + 2269eb3 commit 0e9d9d4
Show file tree
Hide file tree
Showing 8 changed files with 9,566 additions and 3,871 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
coverage/
dist/
storybook-static/
24 changes: 21 additions & 3 deletions .storybook/main.js
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;
Loading

0 comments on commit 0e9d9d4

Please sign in to comment.