Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
@@ -0,0 +1,58 @@
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { mergeConfig, type UserConfig } from "vite";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import type { StorybookConfig } from "@storybook/react-vite";
|
||||
|
||||
const here = path.dirname(fileURLToPath(import.meta.url));
|
||||
const webAppRoot = path.resolve(here, "../../../apps/web/app");
|
||||
|
||||
const config: StorybookConfig = {
|
||||
stories: [
|
||||
"../src/**/*.mdx",
|
||||
"../src/**/*.stories.@(ts|tsx|mdx)",
|
||||
"../../../packages/ui/src/**/*.stories.@(ts|tsx|mdx)",
|
||||
"../../../packages/ui-app/src/**/*.stories.@(ts|tsx|mdx)",
|
||||
"../../../packages/ui-subframe/src/**/*.stories.@(ts|tsx|mdx)",
|
||||
"../../../packages/ui-mock/src/**/*.stories.@(ts|tsx|mdx)",
|
||||
],
|
||||
addons: [
|
||||
"@storybook/addon-essentials",
|
||||
"@storybook/addon-a11y",
|
||||
"@storybook/addon-interactions",
|
||||
"@storybook/addon-themes",
|
||||
],
|
||||
framework: {
|
||||
name: "@storybook/react-vite",
|
||||
options: {},
|
||||
},
|
||||
docs: {
|
||||
autodocs: "tag",
|
||||
},
|
||||
typescript: {
|
||||
check: false,
|
||||
reactDocgen: false,
|
||||
},
|
||||
core: {
|
||||
disableTelemetry: true,
|
||||
},
|
||||
// Mirror apps/web's Vite pipeline for the Tailwind-v4 surface so future
|
||||
// stories can import the real components from packages/ui / apps/web
|
||||
// instead of the temporary `_demo-primitives.tsx`. Today's 21 stories
|
||||
// use inline-styles + CSS-variable tokens declared in `preview.css`, so
|
||||
// adding the Tailwind plugin is a no-op for them but unblocks the
|
||||
// migration path. See docs/improvement-plan/08-mobile-cli-storybook-sdk/storybook.md
|
||||
// ("real Tailwind-v4 preview pipeline" deviation).
|
||||
async viteFinal(viteConfig) {
|
||||
return mergeConfig(viteConfig, {
|
||||
plugins: [tailwindcss()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"~": webAppRoot,
|
||||
},
|
||||
},
|
||||
} satisfies UserConfig);
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in new issue
Block a user