Migrated to Storybook 7.3.2

This commit is contained in:
Juan Lago 2023-08-22 16:39:43 +02:00 committed by tato
parent c71975025f
commit ce5f3d10de
5 changed files with 4157 additions and 3318 deletions

View File

@ -9,6 +9,7 @@ module.exports = {
"airbnb",
"plugin:prettier/recommended",
"plugin:jest/recommended",
"plugin:storybook/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {

View File

@ -1,12 +1,26 @@
import { dirname, join } from "path";
module.exports = {
stories: [
"../stories/**/*.stories.mdx",
"../stories/**/*.stories.@(js|jsx|ts|tsx)",
],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
getAbsolutePath("@storybook/addon-links"),
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@storybook/addon-interactions"),
],
framework: "@storybook/react",
framework: {
name: getAbsolutePath("@storybook/react-webpack5"),
options: {}
},
docs: {
autodocs: true
}
};
function getAbsolutePath(value) {
return dirname(require.resolve(join(value, "package.json")));
}

17
babel.config.json Normal file
View File

@ -0,0 +1,17 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100,
"safari": 15,
"firefox": 91
}
}
],
"@babel/preset-flow",
"@babel/preset-typescript",
"@babel/preset-react"
]
}

View File

@ -10,8 +10,8 @@
"scripts": {
"dev": "npx yarn storybook",
"build": "node ./scripts/build",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"tsc": "tsc --noEmit",
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx,.json ./packages",
"postinstall": "lerna run build --scope=@fortune-sheet/formula-parser",
@ -21,16 +21,17 @@
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@storybook/addon-actions": "^6.5.15",
"@storybook/addon-essentials": "^6.5.15",
"@storybook/addon-interactions": "^6.5.15",
"@storybook/addon-links": "^6.5.15",
"@babel/preset-env": "^7.22.10",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@storybook/addon-actions": "^7.3.2",
"@storybook/addon-essentials": "^7.3.2",
"@storybook/addon-interactions": "^7.3.2",
"@storybook/addon-links": "^7.3.2",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/react": "^6.5.15",
"@storybook/testing-library": "^0.0.13",
"@storybook/react": "^7.3.2",
"@storybook/react-webpack5": "^7.3.2",
"@storybook/testing-library": "^0.2.0",
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.2.5",
"@typescript-eslint/eslint-plugin": "^5.48.0",
@ -47,6 +48,7 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.6.13",
"express": "^4.17.3",
"father-build": "^1.21.2",
"identity-obj-proxy": "^3.0.0",
@ -58,6 +60,7 @@
"lint-staged": "^13.1.0",
"mongodb": "^4.5.0",
"prettier": "^2.5.1",
"storybook": "^7.3.2",
"tsconfig-paths-webpack-plugin": "^4.0.0",
"ws": "^8.11.0",
"yorkie": "^2.0.0"

7410
yarn.lock

File diff suppressed because it is too large Load Diff