add storybook
parent
55f0c268
No related branches found
No related tags found
Showing
- .storybook/main.js 18 additions, 0 deletions.storybook/main.js
- .storybook/preview.js 14 additions, 0 deletions.storybook/preview.js
- package-lock.json 24432 additions, 4310 deletionspackage-lock.json
- package.json 19 additions, 1 deletionpackage.json
- src/components/Browser.stories.js 45 additions, 0 deletionssrc/components/Browser.stories.js
- vite.config.js 1 addition, 1 deletionvite.config.js
.storybook/main.js
0 → 100644
.storybook/preview.js
0 → 100644
This diff is collapsed.
... | @@ -11,7 +11,9 @@ | ... | @@ -11,7 +11,9 @@ |
"vite-dev": "vite", | "vite-dev": "vite", | ||
"vite-build": "vite build", | "vite-build": "vite build", | ||
"vite-lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", | "vite-lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", | ||
"vite-preview": "vite preview" | "vite-preview": "vite preview", | ||
"storybook": "storybook dev -p 6006", | |||
"build-storybook": "storybook build" | |||
}, | }, | ||
"author": "Raphaël JOIE", | "author": "Raphaël JOIE", | ||
"license": "UNLICENSED", | "license": "UNLICENSED", | ||
... | @@ -26,6 +28,14 @@ | ... | @@ -26,6 +28,14 @@ |
"@rollup/plugin-node-resolve": "^15.2.3", | "@rollup/plugin-node-resolve": "^15.2.3", | ||
"@rollup/plugin-replace": "^5.0.5", | "@rollup/plugin-replace": "^5.0.5", | ||
"@rollup/plugin-terser": "^0.4.4", | "@rollup/plugin-terser": "^0.4.4", | ||
"@storybook/addon-essentials": "^7.6.17", | |||
"@storybook/addon-interactions": "^7.6.17", | |||
"@storybook/addon-links": "^7.6.17", | |||
"@storybook/addon-onboarding": "^1.0.11", | |||
"@storybook/blocks": "^7.6.17", | |||
"@storybook/react": "^7.6.17", | |||
"@storybook/react-vite": "^7.6.17", | |||
"@storybook/test": "^7.6.17", | |||
"@types/react": "^18.2.56", | "@types/react": "^18.2.56", | ||
"@types/react-dom": "^18.2.19", | "@types/react-dom": "^18.2.19", | ||
"@vitejs/plugin-react": "^4.2.1", | "@vitejs/plugin-react": "^4.2.1", | ||
... | @@ -33,8 +43,16 @@ | ... | @@ -33,8 +43,16 @@ |
"eslint-plugin-react": "^7.33.2", | "eslint-plugin-react": "^7.33.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | "eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.5", | "eslint-plugin-react-refresh": "^0.4.5", | ||
"eslint-plugin-storybook": "^0.8.0", | |||
"prop-types": "^15.8.1", | |||
"rollup": "^4.9.6", | "rollup": "^4.9.6", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | "rollup-plugin-peer-deps-external": "^2.2.4", | ||
"storybook": "^7.6.17", | |||
"vite": "^5.1.4" | "vite": "^5.1.4" | ||
}, | |||
"eslintConfig": { | |||
"extends": [ | |||
"plugin:storybook/recommended" | |||
] | |||
} | } | ||
} | } |
src/components/Browser.stories.js
0 → 100644
Please register or sign in to comment