mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-20 18:02:01 +03:00
a4cd43dbe2
commitfa57e53c9e
Author: Oleg Markelov <markelolegov@gmail.com> Date: Tue Apr 25 13:56:16 2023 +0700 Add format script placeholder Signed-off-by: Oleg Markelov <markelolegov@gmail.com> commitfb185be4b1
Author: Oleg Markelov <markelolegov@gmail.com> Date: Tue Apr 25 13:17:22 2023 +0700 Update pnpm-lock.yaml Signed-off-by: Oleg Markelov <markelolegov@gmail.com> commitbabd91c87a
Merge:5e0b1929a
5c30b8897
Author: Oleg Markelov <markelolegov@gmail.com> Date: Tue Apr 25 13:01:18 2023 +0700 Merge branch 'main' into storybook-7-infrastructure Signed-off-by: Oleg Markelov <markelolegov@gmail.com> commit5e0b1929a9
Author: Oleg Markelov <markelolegov@gmail.com> Date: Tue Apr 25 12:59:07 2023 +0700 Create initial Button stories Signed-off-by: Oleg Markelov <markelolegov@gmail.com> commit04099e8c22
Author: Oleg Markelov <markelolegov@gmail.com> Date: Tue Apr 25 12:58:26 2023 +0700 Add storybook-7 infrastructure Signed-off-by: Oleg Markelov <markelolegov@gmail.com> Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
34 lines
919 B
JavaScript
34 lines
919 B
JavaScript
/** @type { import('@storybook/svelte-webpack5').StorybookConfig } */
|
|
|
|
const config = {
|
|
webpackFinal: async (config) => {
|
|
config.module.rules.find(r => r.loader && r.loader.includes('svelte-loader')).options.preprocess = require('svelte-preprocess')();
|
|
config.resolve.alias['@hcengineering/platform-rig/profiles/ui/svelte'] = require('path').resolve('../../common/temp/node_modules', 'svelte');
|
|
return config;
|
|
},
|
|
stories: ['../stories/**/*.stories.@(js|ts|svelte)'],
|
|
addons: [
|
|
'@storybook/addon-essentials',
|
|
'@storybook/addon-interactions',
|
|
'@storybook/addon-links',
|
|
{
|
|
name: "@storybook/addon-styling",
|
|
options: {
|
|
sass: {
|
|
implementation: require("sass"),
|
|
},
|
|
},
|
|
},
|
|
'storybook-addon-themes'
|
|
],
|
|
framework: {
|
|
name: '@storybook/svelte-webpack5',
|
|
options: {}
|
|
},
|
|
docs: {
|
|
autodocs: 'tag'
|
|
}
|
|
};
|
|
|
|
export default config;
|