Skip to content

Commit

Permalink
docs(storybook): vite
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Nov 29, 2023
1 parent 8c58d4c commit 716b541
Show file tree
Hide file tree
Showing 7 changed files with 1,190 additions and 3,416 deletions.
19 changes: 0 additions & 19 deletions .storybook/main.js

This file was deleted.

22 changes: 22 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import tsconfigPaths from "vite-tsconfig-paths";

export default {
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
staticDirs: ["../public"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
framework: { name: "@storybook/react-vite" },
core: {
builder: "@storybook/builder-vite",
disableTelemetry: true,
},
async viteFinal(config) {
return {
...config,
plugins: [...(config.plugins || []), tsconfigPaths()],
};
},
};
2 changes: 1 addition & 1 deletion .storybook/manager.js → .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons } from "@storybook/addons";
import { addons } from "@storybook/manager-api";
import theme from "./theme";

addons.setConfig({
Expand Down
1 change: 1 addition & 0 deletions .storybook/preview.js → .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DevTools } from "jotai-devtools";
import React from "react";

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
Expand Down
File renamed without changes.
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@form-atoms/field",
"packageManager": "[email protected]",
"version": "0.0.0-semantic-release",
"type": "module",
"author": "Miroslav Petrik <[email protected]>",
"homepage": "https://github.com/MiroslavPetrik/form-atoms-field#readme",
"repository": {
Expand All @@ -25,7 +26,7 @@
"react form",
"react hook field"
],
"main": "./dist/index.js",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
Expand All @@ -44,21 +45,22 @@
"semantic-release": "semantic-release"
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@emotion/react": "^11.11.0",
"@babel/core": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@emotion/react": "^11.11.1",
"@mdx-js/react": "^1.6.22",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/git": "^10.0.1",
"@storybook/addon-actions": "7.4.6",
"@storybook/addon-docs": "7.4.6",
"@storybook/addon-essentials": "7.4.6",
"@storybook/addon-interactions": "7.4.6",
"@storybook/addon-links": "7.4.6",
"@storybook/react": "7.4.6",
"@storybook/react-webpack5": "7.4.6",
"@storybook/addon-actions": "7.6.0",
"@storybook/addon-docs": "7.6.0",
"@storybook/addon-essentials": "7.6.0",
"@storybook/addon-interactions": "7.6.0",
"@storybook/addon-links": "7.6.0",
"@storybook/builder-vite": "^7.6.0",
"@storybook/react": "7.6.0",
"@storybook/react-vite": "^7.6.0",
"@storybook/testing-library": "0.2.2",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.0.0",
Expand Down Expand Up @@ -94,8 +96,9 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"semantic-release": "^20.1.0",
"storybook": "7.4.6",
"storybook": "7.6.0",
"typescript": "5.2.2",
"vite-tsconfig-paths": "^4.2.1",
"vitest": "^0.32.0",
"zod": "3.21.4"
},
Expand Down
Loading

0 comments on commit 716b541

Please sign in to comment.