Archipelago v1.7.129-alpha
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import type { StorybookConfig } from '@storybook/vue3-vite'
|
||||
|
||||
const config: StorybookConfig = {
|
||||
stories: ['../src/**/__stories__/*.stories.ts'],
|
||||
framework: {
|
||||
name: '@storybook/vue3-vite',
|
||||
options: {},
|
||||
},
|
||||
addons: ['@storybook/addon-essentials'],
|
||||
viteFinal(config) {
|
||||
config.resolve ??= {}
|
||||
config.resolve.alias ??= {}
|
||||
// Match app aliases
|
||||
const alias = config.resolve.alias as Record<string, string>
|
||||
alias['@'] = new URL('../src', import.meta.url).pathname
|
||||
alias['@aiui/core'] = new URL('../../core/src', import.meta.url).pathname
|
||||
return config
|
||||
},
|
||||
}
|
||||
|
||||
export default config
|
||||
@@ -0,0 +1,16 @@
|
||||
import type { Preview } from '@storybook/vue3'
|
||||
import '../src/styles/main.css'
|
||||
|
||||
const preview: Preview = {
|
||||
parameters: {
|
||||
backgrounds: {
|
||||
default: 'dark',
|
||||
values: [
|
||||
{ name: 'dark', value: '#0a0a0a' },
|
||||
],
|
||||
},
|
||||
layout: 'centered',
|
||||
},
|
||||
}
|
||||
|
||||
export default preview
|
||||
Reference in New Issue
Block a user