3d6fb0d6b1
refs https://github.com/TryGhost/Team/issues/3151 - adds a new vite + typescript + storybook + TW package for setting up admin settings in react with base config that works with Ghost monorepo - includes base components/design system for new settings UI - adds eslint rule config to the package to match rest of Ghost codebase - this is an experimental package as we figure out the best patterns for new admin packages in Ghost monorepo Co-authored-by: Peter Zimon <zimo@ghost.org>
28 lines
669 B
TypeScript
28 lines
669 B
TypeScript
import type { StorybookConfig } from "@storybook/react-vite";
|
|
const config: StorybookConfig = {
|
|
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
|
addons: [
|
|
"@storybook/addon-links",
|
|
"@storybook/addon-essentials",
|
|
"@storybook/addon-interactions",
|
|
{
|
|
name: '@storybook/addon-styling',
|
|
},
|
|
],
|
|
framework: {
|
|
name: "@storybook/react-vite",
|
|
options: {},
|
|
},
|
|
docs: {
|
|
autodocs: "tag",
|
|
},
|
|
staticDirs: ['../public/fonts'],
|
|
async viteFinal(config, options) {
|
|
config.resolve.alias = {
|
|
crypto: require.resolve('rollup-plugin-node-builtins'),
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
export default config;
|