Skip to content

Commit

Permalink
ci: configure storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierniki committed Oct 11, 2023
1 parent c8829f9 commit 589ee10
Show file tree
Hide file tree
Showing 4 changed files with 473 additions and 379 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { StorybookConfig } from "@storybook/nextjs"
const config: StorybookConfig = {
stories: ["../components/**/*.stories.mdx", "../components/**/*.stories.@(js|jsx|ts|tsx)"],
stories: ["../src/components/**/*.stories.mdx", "../src/components/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-interactions"],
framework: {
name: "@storybook/nextjs",
Expand Down
4 changes: 2 additions & 2 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Preview } from "@storybook/react"

import "../styles/tailwind.css"
import "../src/styles/tailwind.css"

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },

controls: {
matchers: {
color: /(background|color)$/i,
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@
"@opentelemetry/api": "^1.4.1",
"@parcel/watcher": "^2.3.0",
"@playwright/test": "^1.32.3",
"@storybook/addon-essentials": "^7.0.5",
"@storybook/addon-interactions": "^7.0.5",
"@storybook/addon-links": "^7.0.5",
"@storybook/blocks": "^7.0.5",
"@storybook/nextjs": "^7.0.5",
"@storybook/react": "^7.0.5",
"@storybook/addon-essentials": "^7.4.6",
"@storybook/addon-interactions": "^7.4.6",
"@storybook/addon-links": "^7.4.6",
"@storybook/blocks": "^7.4.6",
"@storybook/nextjs": "^7.4.6",
"@storybook/react": "^7.4.6",
"@storybook/test-runner": "^0.13.0",
"@storybook/testing-library": "^0.1.0",
"@testing-library/jest-dom": "^5.16.5",
Expand Down Expand Up @@ -127,7 +127,7 @@
"postinstall-postinstall": "^2.1.0",
"prettier": "latest",
"prettier-plugin-tailwindcss": "^0.4.0",
"storybook": "^7.0.5",
"storybook": "^7.4.6",
"tailwindcss": "^3.2.7",
"ts-jest": "^29.1.0",
"tsc": "^2.0.4",
Expand All @@ -138,4 +138,4 @@
"node": ">=18.15.0"
},
"packageManager": "[email protected]"
}
}
Loading

0 comments on commit 589ee10

Please sign in to comment.