Skip to content

Commit

Permalink
docs(storybook): update builder to webpack 5 (#2386)
Browse files Browse the repository at this point in the history
* chore(project): update .gitignore to include storybook-static

* docs(storybook): update builder to webpack 5

* docs(storybook): update showName to title

* chore: update config to address React.Fragment errors

* chore: update plugin ordering warning

* chore(storybook): run sb upgrade

* chore: rename disabled to disable in controls

* docs: update defaultValue to args

* chore: update deprecated storybook patterns

* chore: update deprecated storybook patterns

* chore: run prettier

* chore: change from lazy compilation mode

* chore: revert lc changes

* chore: update stories with default args
  • Loading branch information
joshblack authored Oct 11, 2022
1 parent 64f719f commit e395681
Show file tree
Hide file tree
Showing 38 changed files with 9,186 additions and 6,199 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ lib-esm/
public/
stats.html
.env
storybook-static
24 changes: 18 additions & 6 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,28 @@ module.exports = {
'@storybook/addon-a11y',
'@storybook/addon-links',
'storybook-addon-performance/register',
{name: 'storybook-addon-turbo-build', options: {optimizationLevel: 2}},
{
name: 'storybook-addon-turbo-build',
options: {
optimizationLevel: 2
}
},
...(process.env.NODE_ENV === 'production' && process.env.GITHUB_JOB !== 'chromatic'
? ['@whitespace/storybook-addon-html']
: [])
],
babel: options => {
options.plugins.push(['open-source', {editor: process.env.NODE_ENV === 'production' ? 'github' : 'vscode'}])
return options
core: {
builder: {
name: 'webpack5',
options: {
lazyCompilation: true,
fsCache: true
}
}
},
features: {
interactionsDebugger: true
}
interactionsDebugger: true,
storyStoreV7: true
},
framework: '@storybook/react'
}
52 changes: 30 additions & 22 deletions examples/nextjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e395681

Please sign in to comment.