Skip to content

Commit

Permalink
upgrading storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfieJones committed Feb 22, 2024
1 parent e93b061 commit a6b4b63
Show file tree
Hide file tree
Showing 4 changed files with 1,887 additions and 1,937 deletions.
14 changes: 11 additions & 3 deletions packages/core/.storybook/main.cjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
staticDirs: ["../assets/svgs"],

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-mdx-gfm"
],
framework: "@storybook/html",
core: {
builder: "@storybook/builder-vite",

framework: {
name: "@storybook/html-vite",
options: {}
},

features: {
storyStoreV7: true,
},

docs: {
autodocs: true
}
};
19 changes: 11 additions & 8 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"version": "5.0.0-rc.1",
"type": "module",
"scripts": {
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"plop": "plop",
"pixeleye": "pixeleye storybook http://localhost:6006",
"build": "gulp",
Expand All @@ -18,12 +18,14 @@
],
"devDependencies": {
"@babel/core": "^7.20.12",
"@storybook/addon-actions": "^6.5.15",
"@storybook/addon-essentials": "^6.5.15",
"@storybook/addon-interactions": "^6.5.15",
"@storybook/addon-links": "^6.5.15",
"@storybook/builder-vite": "^0.2.6",
"@storybook/html": "^6.5.15",
"@storybook/addon-actions": "^7.6.17",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
"@storybook/addon-links": "^7.6.17",
"@storybook/addon-mdx-gfm": "7.6.17",
"@storybook/blocks": "^7.6.17",
"@storybook/html": "^7.6.17",
"@storybook/html-vite": "7.6.17",
"@storybook/testing-library": "^0.0.13",
"@types/node": "^18.11.18",
"babel-loader": "^8.3.0",
Expand All @@ -40,6 +42,7 @@
"plop": "^3.1.1",
"prettier": "2.8.1",
"sass": "^1.57.1",
"storybook": "7.6.17",
"typescript": "^4.9.3",
"vite": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/stories/intro.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from "@storybook/addon-docs";
import { Meta } from '@storybook/blocks';
import StoryPreview from "./assets/dark-side-story.png";

<Meta title="Intro" />
Expand Down
Loading

0 comments on commit a6b4b63

Please sign in to comment.