Skip to content

Commit

Permalink
chore(libs/storybook-host): migrate all storybook packages to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Sep 14, 2024
1 parent 33007a4 commit bc63fbe
Show file tree
Hide file tree
Showing 5 changed files with 909 additions and 2,365 deletions.
15 changes: 13 additions & 2 deletions libs/storybook-host/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'
import { mergeConfig } from 'vite'

const config: StorybookConfig = {
stories: ['../src/lib/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
addons: ['@storybook/addon-essentials', '@storybook/addon-interactions'],
stories: ['../src/lib/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
addons: [
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@chromatic-com/storybook',
],

framework: {
name: '@storybook/react-vite',
options: {},
Expand All @@ -15,6 +20,12 @@ const config: StorybookConfig = {
mergeConfig(config, {
plugins: [nxViteTsPaths()],
}),

docs: {},

typescript: {
reactDocgen: 'react-docgen-typescript',
},
}

export default config
Expand Down
1 change: 1 addition & 0 deletions libs/storybook-host/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const tags = ['autodocs']
12 changes: 12 additions & 0 deletions libs/storybook-host/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "storybook-host",
"version": "1.0.0",
"description": "",
"author": "",
"license": "ISC",
"keywords": [],
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@antfu/eslint-config": "^2.25.1",
"@babel/core": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@chromatic-com/storybook": "^1",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/cz-commitlint": "^19.2.0",
Expand All @@ -53,21 +54,20 @@
"@nx/playwright": "19.5.7",
"@nx/react": "19.5.7",
"@nx/remix": "19.5.7",
"@nx/storybook": "19.5.7",
"@nx/storybook": "^19.7.3",
"@nx/vite": "^19.6.0",
"@nx/web": "19.5.7",
"@nx/workspace": "19.5.7",
"@playwright/test": "^1.36.0",
"@remix-run/dev": "^2.8.1",
"@remix-run/testing": "^2.8.1",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",
"@storybook/core-server": "^7.5.3",
"@storybook/jest": "^0.2.3",
"@storybook/react": "^7.5.3",
"@storybook/react-vite": "^7.5.3",
"@storybook/test-runner": "^0.13.0",
"@storybook/testing-library": "^0.2.2",
"@storybook/addon-essentials": "^8.3.0",
"@storybook/addon-interactions": "^8.3.0",
"@storybook/core-server": "^8.3.0",
"@storybook/react": "^8.3.0",
"@storybook/react-vite": "^8.3.0",
"@storybook/test": "^8.3.0",
"@storybook/test-runner": "^0.19.1",
"@swc-node/register": "~1.9.1",
"@swc/core": "~1.5.7",
"@swc/helpers": "~0.5.11",
Expand Down
Loading

0 comments on commit bc63fbe

Please sign in to comment.