forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
histoire.config.ts
38 lines (36 loc) · 902 Bytes
/
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
// 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()],
vite: {
server: {
port: 3074,
...(process.env.HISTOIRE_BUILD && {
hmr: false,
watch: { ignored: ['**/*'] },
}),
},
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'),
},
],
},
})