cetirizine

An experimental matrix client written in reactjs utilizing tailwind and storybook
git clone git://archive.git.mtrnord.blog/MTRNord/cetirizine.git
Log | Files | Refs | README | LICENSE

main.ts (1226B)


      1 import type { StorybookConfig } from '@storybook/react-vite';
      2 import { mergeConfig } from 'vite';
      3 
      4 const config: StorybookConfig = {
      5   stories: ["../src/**/*.stories.@(js|jsx|ts|tsx|mdx)"],
      6   addons: [
      7     "@storybook/addon-links",
      8     "@storybook/addon-essentials",
      9     "@storybook/addon-interactions",
     10     '@storybook/addon-a11y',
     11     'storybook-addon-react-router-v6',
     12     {
     13       name: '@storybook/addon-coverage',
     14       options: {
     15         istanbul: {
     16           exclude: [
     17             'src/mocks/*.ts'
     18           ],
     19           excludeNodeModules: true,
     20         }
     21       }
     22     }
     23   ],
     24   framework: {
     25     name: '@storybook/react-vite',
     26     options: {}
     27   },
     28   core: {
     29     disableTelemetry: true,
     30   },
     31   async viteFinal(config) {
     32     // Merge custom configuration into the default config
     33     return mergeConfig(config, {
     34       // https://github.com/storybookjs/storybook/issues/22223
     35       build: {
     36         target: 'esnext',
     37         sourceMap: false,
     38       }
     39     });
     40   },
     41   docs: {
     42     autodocs: true,
     43     defaultName: 'Documentation'
     44   },
     45   typescript: {
     46     reactDocgen: 'react-docgen',
     47 
     48     check: true,
     49     skipBabel: true,
     50   },
     51   staticDirs: ["../public"],
     52   features: {
     53     storyStoreV7: false,
     54   }
     55 };
     56 export default config;