Skip to content

Commit

Permalink
chore: upgraded storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
meza committed Apr 2, 2023
1 parent 36115e2 commit 6c8e40d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 26 deletions.
41 changes: 16 additions & 25 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
import { DefinePlugin } from 'webpack';
import { StorybookConfig } from '@storybook/react-webpack5';

const storybookConfig: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-a11y',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
{
name: '@storybook/addon-postcss',
options: {
postcssLoaderOptions: {
implementation: require('postcss')
}
}
},
{
name: '@storybook/addon-docs',
options: {
configureJSX: true,
babelOptions: {},
sourceLoaderOptions: null,
transcludeMarkdown: true
addons: ['@storybook/addon-a11y', '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions', {
name: '@storybook/addon-postcss',
options: {
postcssLoaderOptions: {
implementation: require('postcss')
}
}
],
}, {
name: '@storybook/addon-docs',
options: {
configureJSX: true,
babelOptions: {},
sourceLoaderOptions: null,
transcludeMarkdown: true
}
}],
core: {
builder: '@storybook/builder-webpack5',
disableTelemetry: true
},
docs: {
Expand All @@ -48,7 +39,7 @@ const storybookConfig: StorybookConfig = {
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true)
propFilter: prop => prop.parent ? !/node_modules/.test(prop.parent.fileName) : true
}
},
webpackFinal: async config => {
Expand All @@ -62,4 +53,4 @@ const storybookConfig: StorybookConfig = {
return config;
}
};
export default storybookConfig;
export default storybookConfig;
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ of the app is running on any given environment.
We have built a custom cookie consent solution that is compatible with secure XSS protection practices as well as with
the EU cookie law.

> **Note**
> **Note**
> you can read more about this in the [Cookie Consent ADR](./docs/adr/0001-cookie-consent.md)
The solution is in the `src/components/CookieConsent` folder, and **it is meant to be modified to fit your needs.**
Expand Down

0 comments on commit 6c8e40d

Please sign in to comment.