chore: initial DSMMG v0.2 — refonte architecturale complète
Mise en place du Design System ManageMate Group v0.2 — refonte du
système de tokens (préfixe --mmg-color-*), 9 presets accent
user-themable validés WCAG AA, overlays Radix UI + Floating UI,
Storybook 8 + Vitest + axe-core en CI, doc Astro Starlight,
DESIGN.md (format google-labs-code) et exports tokens DTCG/CSS/
TS/Figma/Tailwind v3 et v4.
- 4 packages monorepo pnpm : @managemate/{tokens,css,react,icons}
- 62 composants React headless-first (Sheet, HoverCard, ContextMenu,
Slider, ToggleGroup, AvatarGroup, UserCard, ProfileHeader,
MetricCard, PricingCard, FeatureCard, Text/Display/Eyebrow/Lead…)
- Lint contraste WCAG : 37/37 paires AA, branché CI
- Toast pile Sonner-style avec ResizeObserver
- Theming user (9 presets) sans casser sémantique fixe
- Identité Synapse (rose #D12B6A) préservée
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { defineConfig } from "tsup";
|
||||
|
||||
/**
|
||||
* @managemate/react — build config
|
||||
*
|
||||
* - Output dual (ESM + CJS) avec types .d.ts
|
||||
* - Tree-shaking : sideEffects: false dans package.json garantit que les
|
||||
* imports inutilisés sont droppés par les bundlers consommateurs.
|
||||
* - Ne bundle PAS les peerDependencies (react, react-dom, @managemate/css).
|
||||
*/
|
||||
export default defineConfig({
|
||||
entry: ["src/index.tsx"],
|
||||
format: ["esm", "cjs"],
|
||||
dts: true,
|
||||
sourcemap: true,
|
||||
clean: true,
|
||||
splitting: true, // ESM code-splitting pour permettre le tree-shaking par composant
|
||||
treeshake: true,
|
||||
minify: false,
|
||||
target: "es2022",
|
||||
external: ["react", "react-dom", "react/jsx-runtime", "@managemate/css", "@managemate/icons"],
|
||||
// Garantit que les imports d'effet (CSS) ne sont pas tree-shakés par erreur,
|
||||
// même si on en avait. Cf. https://webpack.js.org/guides/tree-shaking/
|
||||
});
|
||||
Reference in New Issue
Block a user