Skip to content

Commit 5f73105

Browse files
committed
init
1 parent c37a321 commit 5f73105

5 files changed

Lines changed: 1168 additions & 28 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ file-tree-sprite.svg
4545

4646
# output
4747
.vercel
48+
49+
*storybook.log
50+
storybook-static

.storybook/main.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { StorybookConfig } from '@storybook-vue/nuxt'
2+
3+
const config: StorybookConfig = {
4+
stories: ['../components/**/*.mdx', '../components/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
5+
addons: ['@storybook/addon-a11y', '@storybook/addon-docs'],
6+
framework: '@storybook-vue/nuxt',
7+
}
8+
export default config

.storybook/preview.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { Preview } from '@storybook-vue/nuxt'
2+
3+
const preview: Preview = {
4+
parameters: {
5+
controls: {
6+
matchers: {
7+
color: /(background|color)$/i,
8+
date: /Date$/i,
9+
},
10+
},
11+
},
12+
}
13+
14+
export default preview

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
"test:nuxt": "vite test --project nuxt",
4747
"test:types": "pnpm generate:lexicons && nuxt prepare && vue-tsc -b --noEmit && pnpm --filter npmx-connector test:types",
4848
"test:unit": "vite test --project unit",
49-
"start:playwright:webserver": "NODE_ENV=test pnpm preview --port 5678"
49+
"start:playwright:webserver": "NODE_ENV=test pnpm preview --port 5678",
50+
"storybook": "storybook dev -p 6006",
51+
"build-storybook": "storybook build"
5052
},
5153
"dependencies": {
5254
"@atproto/common": "0.5.10",
@@ -115,7 +117,10 @@
115117
"@e18e/eslint-plugin": "0.1.4",
116118
"@intlify/core-base": "11.2.8",
117119
"@npm/types": "2.1.0",
120+
"@nuxtjs/storybook": "^9.0.1",
118121
"@playwright/test": "1.58.1",
122+
"@storybook/addon-a11y": "^10.2.7",
123+
"@storybook/addon-docs": "^10.2.7",
119124
"@types/node": "24.10.9",
120125
"@types/sanitize-html": "2.16.0",
121126
"@types/semver": "7.7.1",
@@ -135,6 +140,7 @@
135140
"oxlint": "1.42.0",
136141
"schema-dts": "1.1.5",
137142
"simple-git-hooks": "2.13.1",
143+
"storybook": "^10.2.7",
138144
"typescript": "5.9.3",
139145
"vitest": "npm:@voidzero-dev/vite-plus-test@0.0.0-833c515fa25cef20905a7f9affb156dfa6f151ab",
140146
"vitest-environment-nuxt": "1.0.1",

0 commit comments

Comments
 (0)