histoire.config.ts 792 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. import { defineConfig } from 'histoire'
  3. import { HstVue } from '@histoire/plugin-vue'
  4. export default defineConfig({
  5. setupFile: './app/frontend/stories/support/setupHistoire.ts',
  6. storyMatch: ['app/frontend/**/*.story.vue'],
  7. plugins: [HstVue()],
  8. vite: {
  9. server: {
  10. port: 3074,
  11. },
  12. logLevel: process.env.HISTOIRE_BUILD ? 'error' : 'info',
  13. },
  14. tree: {
  15. groups: [
  16. {
  17. id: 'common',
  18. title: 'Common',
  19. include: (file) => file.title.startsWith('Common'),
  20. },
  21. {
  22. id: 'modules',
  23. title: 'Modules',
  24. },
  25. {
  26. id: 'form',
  27. title: 'Form',
  28. include: (file) => file.title.startsWith('Field'),
  29. },
  30. ],
  31. },
  32. })