codebase
9
总安装量
9
周安装量
#32674
全站排名
安装命令
npx skills add https://github.com/meteor/meteor --skill codebase
Agent 安装分布
opencode
9
github-copilot
8
codex
8
kimi-cli
8
gemini-cli
8
cursor
8
Skill 文档
Codebase
Meteor’s build system (Isobuild) and CLI structure.
Overview
Meteor is a full-stack JavaScript platform with:
- Core packages in
/packages - Build system (Isobuild) in
/tools/isobuild - CLI tool in
/tools/cli - Real-time data layer via DDP
- Mobile support via Cordova
Build Pipeline
- CLI (
tools/cli/main.js) â parses commands - Project Context (
project-context.js) â resolves packages, dependencies - Isobuild (
tools/isobuild/)- Bundler (
bundler.js) â orchestrates build - Compiler (
compiler.js) â compiles packages - Linker (
linker.js) â wraps modules - Build plugins (Babel, TypeScript, CSS)
- Bundler (
- Output â
star.json, programs - Runners (
tools/runners/) â run-app.js, run-mongo.js, run-hmr.js - Live App â DDP Server â Minimongo â UI
Directory Structure
tools/
âââ cli/ # Command-line interface
âââ isobuild/ # Build system core
âââ packaging/ # Package management
âââ runners/ # App execution engines
âââ fs/ # File system utilities
âââ cordova/ # Mobile/Cordova support
âââ static-assets/ # Project templates
âââ project-context.js # Dependency resolution
CLI (tools/cli/)
| File | Description |
|---|---|
main.js |
Entry point, command dispatcher |
commands.js |
Main command implementations |
commands-packages.js |
Package management commands |
commands-cordova.js |
Cordova/mobile commands |
Commands: meteor create, run, build, deploy, add/remove, mongo, shell
Isobuild (tools/isobuild/)
| File | Description |
|---|---|
bundler.js |
High-level bundling orchestration |
compiler.js |
Package compilation |
linker.js |
Module wrapping and linking |
import-scanner.ts |
Import statement parsing |
compiler-plugin.js |
Compiler plugin API |
isopack.js |
Package format handling |
Runners (tools/runners/)
| File | Description |
|---|---|
run-app.js |
Web application runner |
run-mongo.js |
MongoDB server runner |
run-hmr.js |
Hot module reload runner |
run-all.js |
Multi-runner orchestration |
Build Targets
| Target | Description |
|---|---|
web.browser |
Modern browsers |
web.browser.legacy |
Legacy browsers (IE11) |
web.cordova |
Cordova mobile apps |
server |
Node.js server |
Package Relationships
tools-coreâ rspack, future integrationsaccounts-baseâ all accounts-* packagesddp-server+ddp-clientâ realtime communicationmongoâ minimongo (client-side)webappâ all HTTP handling
Project Templates
Via meteor create --<template>: react, vue, svelte, angular, blaze, typescript, tailwind, solid, apollo, minimal, bare, full
Environment Variables
| Variable | Purpose |
|---|---|
METEOR_PROFILE |
Build profiling |
METEOR_PACKAGE_DIRS |
Additional package paths |
METEOR_DEBUG_BUILD |
Verbose build output |
Troubleshooting
- Package not found: Check
package.jsname, runmeteor reset - Build plugin not running: Check
archMatching, file extensions - npm issues: Clear
.meteor/local/, runmeteor npm install