forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
histoire.config.ts
50 lines (48 loc) · 1.16 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
50
// Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
import { defineConfig } from 'histoire'
import { HstVue } from '@histoire/plugin-vue'
export default defineConfig({
setupFile: './app/frontend/stories/support/setupHistoire.ts',
storyMatch: ['app/frontend/**/*.story.vue'],
plugins: [HstVue()],
viteNodeInlineDeps: [/@vue\/apollo-composable/],
vite: {
plugins: [
{
name: 'inject-fonts',
transformIndexHtml() {
return [
{ tag: 'link', attrs: { rel: 'stylesheet', href: '/fonts.css' } },
]
},
},
],
server: {
port: 3074,
...(process.env.HISTOIRE_BUILD && {
hmr: false,
watch: { ignored: ['**/*'] },
}),
open: true,
},
logLevel: process.env.HISTOIRE_BUILD ? 'error' : 'info',
},
tree: {
groups: [
{
id: 'common',
title: 'Common',
include: (file) => file.title.startsWith('Common'),
},
{
id: 'modules',
title: 'Modules',
},
{
id: 'form',
title: 'Form',
include: (file) => file.title.startsWith('Field'),
},
],
},
})