Skip to content

Commit

Permalink
⬆️ Upgrade Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Dec 22, 2024
1 parent 3fd48ed commit 69c22fe
Show file tree
Hide file tree
Showing 6 changed files with 2,073 additions and 7,678 deletions.
5 changes: 2 additions & 3 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ const config: StorybookConfig = {
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'storybook-react-intl',
'@storybook/addon-webpack5-compiler-babel'
],
docs: {
autodocs: 'tag',
},
docs: {},
webpackFinal: async config => {
if (!config.resolve) {
config.resolve = {};
Expand Down
17 changes: 11 additions & 6 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
export const parameters = {
actions: {argTypesRegex: '^on[A-Z].*'},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
import {Preview} from '@storybook/react';

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};

export default preview;
5 changes: 0 additions & 5 deletions .storybook/test-runner.ts

This file was deleted.

24 changes: 24 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
sourceType: 'unambiguous',
presets: [
[
'@babel/preset-env',
{
targets: {
chrome: 100,
},
},
],
'@babel/preset-typescript',
['@babel/preset-react', {runtime: 'automatic'}],
],
// plugins: [
// [
// 'formatjs',
// {
// idInterpolationPattern: '[sha512:contenthash:base64:6]',
// ast: true
// }
// ]
// ]
};
Loading

0 comments on commit 69c22fe

Please sign in to comment.