Compare commits

..

2 Commits

Author SHA1 Message Date
6faca04c8f build storybook 2023-10-11 10:29:52 +03:00
49924d6bf8 restore .storybook 2023-10-11 10:28:55 +03:00
3 changed files with 34 additions and 1 deletions

18
.storybook/main.ts Normal file
View File

@ -0,0 +1,18 @@
import type { StorybookConfig } from '@storybook/vue3-vite'
const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.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

15
.storybook/preview.ts Normal file
View File

@ -0,0 +1,15 @@
import type { Preview } from '@storybook/vue3'
const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/
}
}
}
}
export default preview

View File

@ -1 +1 @@
{"generatedAt":1697008559798,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"9.8.0"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/vue3-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/vue3","storybookVersion":"7.4.6","storybookVersionSpecifier":"^7.4.6","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"7.4.6"},"@storybook/testing-library":{"version":"0.2.2"},"@storybook/vue3":{"version":"7.4.6"},"@storybook/vue3-vite":{"version":"7.4.6"},"storybook":{"version":"7.4.6"}},"addons":{"@storybook/addon-links":{"version":"7.4.6"},"@storybook/addon-essentials":{"version":"7.4.6"},"@storybook/addon-interactions":{"version":"7.4.6"}}}
{"generatedAt":1697009357959,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"9.8.0"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/vue3-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/vue3","storybookVersion":"7.4.6","storybookVersionSpecifier":"^7.4.6","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"7.4.6"},"@storybook/testing-library":{"version":"0.2.2"},"@storybook/vue3":{"version":"7.4.6"},"@storybook/vue3-vite":{"version":"7.4.6"},"storybook":{"version":"7.4.6"}},"addons":{"@storybook/addon-links":{"version":"7.4.6"},"@storybook/addon-essentials":{"version":"7.4.6"},"@storybook/addon-interactions":{"version":"7.4.6"}}}