-
Notifications
You must be signed in to change notification settings - Fork 0
/
histoire.config.ts
49 lines (47 loc) · 1.25 KB
/
histoire.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { HstNuxt } from '@histoire/plugin-nuxt'
import { HstVue } from '@histoire/plugin-vue'
import { defineConfig } from 'histoire'
import { HstScreenshot } from './utils/histoire-plugin-screenshot'
export default defineConfig({
storyMatch: ['**/*.story.vue'],
storyIgnored: [
'**/node_modules/**', // Keep as overite default
'**/dist/**', // Keep as overite default
'.histoire/plugins/builtin_tailwind-tokens/**/*', // Remove builtins
'**/Map/**/*.story.vue', // import maplibre fails
'**/PoiDetails.story.vue', // import maplibre fails
'**/MapFeatures.story.vue', // import maplibre fails
],
setupFile: 'utils/histoire-setup.js',
plugins: [
HstVue(),
HstNuxt(),
HstScreenshot({
saveFolder: '__screenshots__/current',
ignored: (payload: {
file: string
story: { title: string }
variant: { id: string, title: string }
}) => payload.story.title === 'Tailwind', // Remove builtins
presets: [
{
width: 800,
height: 600,
},
],
}),
],
defaultStoryProps: {
layout: {
type: 'grid',
width: '100%',
},
},
responsivePresets: [
{
label: 'Mobile (Medium)',
width: 360,
height: 640,
},
],
})