How tencent/tdesign-vue-next works
Project type and purpose
• This is a monorepo for a Vue 3 UI component library (“tdesign-vue-next”) plus related supporting packages (hooks, shared utils, pro-components, chat plugin) and documentation/demo sites.
• Its purpose is to provide a high-quality, themable, tree-shakeable set of Vue components, plus related composables, utilities, and site generators.
File structure
• Top-level:
• pnpm-workspace.yaml, tsconfig.json, .github/workflows → define workspace and CI/CD.
• script/, internal/ → custom build & test tooling.
• packages/ → all published modules.
• packages/:
• components/ → the core Vue UI components (each in its own subfolder).
• hooks/ → reusable Vue 3 composables.
• shared/ → cross-package utility functions.
• pro-components/ → advanced “pro” level components (chat, etc.).
• tdesign-vue-next-chat & tdesign-vue-next → higher-level plugin packages and site demos.
• Config/build files: rollup.config.ts, babel.config.js, vite.config.ts inside site folders.
README
• Confirms it’s a Vue 3 UI component library.
• Mentions various bundles, tree-shaking, demos, starters, and installation via npm.
• Points to documentation sites for guidance.
Detail is key
• Layer and flow rather than lumping everything into one blob.
• If space allows, drill down one level in “packages/components” to illustrate the per-component convention (src, style, tests, examples).
• How internal scripts & configs (rollup.config.ts, babel.config.js) are used by all packages.
[Monorepo Root] → [Shared Utils] → [Hooks] → [Core Components] → [Pro & Chat Components] → [Library Bundles] → [Documentation Sites]