Skip to content

Commit

Permalink
chore: update storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Oct 6, 2023
1 parent 972fe6d commit df6266c
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 28 deletions.
14 changes: 0 additions & 14 deletions .storybook/main.js

This file was deleted.

23 changes: 23 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { StorybookConfig } from '@storybook/vue3-vite';

const config: StorybookConfig = {
stories: [
"../stories/**/*.mdx",
"../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
"../components/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/vue3-vite",
options: {},
},
docs: {
autodocs: "tag",
},
};

export default config;
3 changes: 0 additions & 3 deletions .storybook/preview-head.html

This file was deleted.

11 changes: 0 additions & 11 deletions .storybook/preview.js

This file was deleted.

16 changes: 16 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {Preview} from '@storybook/vue3'
import './tailwind.css'

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};

export default preview;
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"@storybook/addon-interactions": "^7.4.6",
"@storybook/addon-links": "^7.4.6",
"@storybook/addon-mdx-gfm": "^7.4.6",
"@storybook/blocks": "^7.4.6",
"@storybook/testing-library": "^0.2.2",
"@storybook/vue3": "^7.4.6",
"@storybook/vue3-vite": "^7.4.6",
Expand All @@ -73,6 +74,7 @@
"babel-loader": "^9.1.3",
"conventional-changelog-cli": "^2.2.2",
"eslint": "^8.47.0",
"eslint-plugin-storybook": "^0.6.14",
"happy-dom": "^12.8.0",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
Expand All @@ -91,5 +93,10 @@
},
"lint-staged": {
"*.{js,jsx,ts,tsx,html,css,vue}": "npm run lint:fix"
},
"eslintConfig": {
"extends": [
"plugin:storybook/recommended"
]
}
}
33 changes: 33 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit df6266c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for morpheme-nuxt-starter ready!

✅ Preview
https://morpheme-nuxt-starter-2gvkwc8g5-gravitano.vercel.app

Built with commit df6266c.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.