Skip to content

Commit

Permalink
Storybook files to TS (#996)
Browse files Browse the repository at this point in the history
* chore:  update storybook files to typescript

* chore(deps): updated versioning
  • Loading branch information
nataliepina authored Aug 30, 2023
1 parent e1398f1 commit 3965228
Show file tree
Hide file tree
Showing 5 changed files with 1,503 additions and 1,629 deletions.
33 changes: 17 additions & 16 deletions .storybook/main.js → .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import type { StorybookConfig } from "@storybook/react-webpack5";

const customWebpack = require("./webpack.config");
module.exports = {
stories: [
"./docs/stories/Welcome.stories.mdx",
"./docs/stories/Colors.stories.mdx",
"./docs/stories/Typography.stories.mdx",
"../packages/**/*.stories.@(tsx|mdx)"
],

const config: StorybookConfig = {
// Required
framework: "@storybook/react-webpack5",
webpackFinal: config => {
return {
...config,
...customWebpack
};
},
stories: [
"./docs/stories/Welcome.stories.mdx",
"./docs/stories/Colors.stories.mdx",
"./docs/stories/Typography.stories.mdx",
"../packages/**/*.stories.@(tsx|mdx)"
],
// Optional
addons: [
{
name: "@storybook/addon-essentials",
Expand All @@ -21,15 +27,10 @@ module.exports = {
},
"@storybook/addon-a11y"
],
features: {
previewMdx2: true
},
framework: {
name: "@storybook/react-webpack5",
options: {}
},
staticDirs: ["../public/assets/images"],
docs: {
autodocs: true
}
},
staticDirs: ["../public/assets/images"]
};

export default config;
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 3965228

Please sign in to comment.