Skip to content

Commit

Permalink
chore(deps): bump Storybook from 6.4.9 to 7.6.15 (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond authored Feb 15, 2024
1 parent 072812b commit 9c485fb
Show file tree
Hide file tree
Showing 19 changed files with 37,518 additions and 19,243 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@ on:
branches:
- master

env:
FORCE_COLOR: 2
NODE: 20

jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '14.x'
- name: Install dependencies
node-version: "${{ env.NODE }}"
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Build Storybook
run: npm run build-storybook
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.21.3
20.11.0
25 changes: 17 additions & 8 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
const path = require('path');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');

module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
const config = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-knobs"
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/html-webpack5",
options: {
builder: {
useSWC: true,
},
},
},
docs: {
autodocs: "tag",
},
webpackFinal: async (config, {configType}) => {
config.resolve.plugins = [
new TsconfigPathsPlugin({
Expand All @@ -19,4 +27,5 @@ module.exports = {
];
return config;
}
}
};
export default config;
16 changes: 13 additions & 3 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
/** @type { import('@storybook/html').Preview } */
const preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
}
export default preview;
Loading

0 comments on commit 9c485fb

Please sign in to comment.