Skip to content

Commit

Permalink
Merge pull request #17 from Neovici/feature/upgrade-to-storybook-7
Browse files Browse the repository at this point in the history
feat: upgrade to storybook 7
  • Loading branch information
florianstancioiu authored Jun 3, 2024
2 parents 5969fea + d4e9c23 commit 7852d62
Show file tree
Hide file tree
Showing 8 changed files with 14,221 additions and 6,821 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deploy PR previews
concurrency: preview-${{ github.ref }}
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
permissions:
contents: write
pull-requests: write
jobs:
storybook:
uses: Neovici/cfg/.github/workflows/preview.yml@master
secrets: inherit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
coverage
dist
/storybook-static/
.eslintcache
23 changes: 20 additions & 3 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
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}'],
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 7852d62

Please sign in to comment.