69539e003626cc0c5109225303fa70988246fd36
Signed-off-by: baizhi958216 <1475289190@qq.com>
Infiplot Monorepo
This workspace coordinates the Infiplot web and app codebases plus shared packages.
Layout
infiplot-web: existing open-source Next.js project. Treat this directory as read-only from the monorepo layer so it can continue to be maintained as its own repository.infiplot-app: Expo / React Native app.packages/types: shared TypeScript contracts and DTOs.packages/core: shared framework-agnostic business logic.packages/api-client: typed client for the web API surface.packages/ui: cross-platform UI entry points. Keep platform-specific code behind.web.tsx/.native.tsxfiles.
Commands
pnpm dev:web
pnpm dev:app
pnpm build:web
pnpm check
Design Rules
The monorepo owns orchestration, shared packages, and app integration. It should not rewrite files inside infiplot-web; any future web changes should happen in the upstream web repository and be pulled back here.
Shared code should move in this order:
- Types and API contracts into
packages/types. - Pure business logic into
packages/core. - HTTP/API access into
packages/api-client. - UI primitives into
packages/ui, with separate platform entry points when necessary.
Avoid importing directly from infiplot-web/lib/* in the app. Promote stable contracts into packages/* first, then consume those packages from both sides when the web repository is ready to adopt them upstream.
Description
Languages
TypeScript
100%