Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update storybook #197

Merged
merged 4 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ yarn-error.log*
# turbo
.turbo
packages/frosted-ui/build-storybook.log

#storybook
storybook-static
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
],
"scripts": {
"build": "turbo run build",
"build:storybook": "turbo run build-storybook",
"dev": "turbo run dev",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
"@turbo/gen": "^1.10.8",
"eslint-config-custom": "workspace:*",
"prettier": "latest",
"turbo": "latest",
"@turbo/gen": "^1.10.8"
"turbo": "1.12.5"
},
"engines": {
"node": ">=14.0.0"
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-config-custom/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
extends: [
"turbo",
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand Down
3 changes: 1 addition & 2 deletions packages/frosted-ui-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
"build:js": "pnpm build:js:cjs && pnpm build:js:esm",
"build:js:cjs": "tsc --project tsconfig-cjs.json",
"build:js:esm": "tsc --project tsconfig-esm.json",
"prepublishOnly": "pnpm run build",
"prepare": "pnpm run build"
"prepublishOnly": "pnpm run build"
},
"peerDependencies": {
"@types/react": "*",
Expand Down
12 changes: 9 additions & 3 deletions packages/frosted-ui/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,24 @@ function getAbsolutePath(value: string): any {
}
const config: StorybookConfig = {
stories: ['./**/*.mdx', './**/*.stories.@(js|jsx|mjs|ts|tsx)'],

addons: [
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@storybook/addon-onboarding'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath("@storybook/addon-mdx-gfm")
],

framework: {
name: getAbsolutePath('@storybook/react-vite'),
options: {},
},
docs: {
autodocs: 'tag',
},

docs: {},

typescript: {
reactDocgen: 'react-docgen-typescript'
}
};
export default config;
3 changes: 3 additions & 0 deletions packages/frosted-ui/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const decorators = [withTheme];

const preview: Preview = {
decorators: decorators,

parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
Expand All @@ -74,6 +75,8 @@ const preview: Preview = {
},
},
},

tags: ['autodocs']
};

export default preview;
19 changes: 10 additions & 9 deletions packages/frosted-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,15 @@
},
"devDependencies": {
"@frosted-ui/icons": "workspace:*",
"@storybook/addon-essentials": "^7.4.6",
"@storybook/addon-interactions": "^7.4.6",
"@storybook/addon-links": "^7.4.6",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/blocks": "^7.4.6",
"@storybook/react": "^7.4.6",
"@storybook/react-vite": "^7.4.6",
"@storybook/testing-library": "^0.2.2",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-interactions": "^8.2.9",
"@storybook/addon-links": "^8.2.9",
"@storybook/addon-mdx-gfm": "^8.2.9",
"@storybook/addon-onboarding": "^8.2.9",
"@storybook/blocks": "^8.2.9",
"@storybook/react": "^8.2.9",
"@storybook/react-vite": "^8.2.9",
"@storybook/test": "^8.2.9",
"@tanstack/react-table": "^8.11.8",
"@types/react": "^18.2.53",
"@types/react-dom": "^18.2.18",
Expand All @@ -149,7 +150,7 @@
"postcss-nesting": "^12.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.4.6",
"storybook": "^8.2.9",
"stylelint": "^15.10.3",
"typescript": "^5.3.3"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/frosted-ui/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"outputDirectory": "storybook-static",
"buildCommand": "cd ../.. && pnpm build:storybook",
"installCommand": "pnpm i"
}
Loading
Loading