docs(ext): no more need to build libs before ext

This commit is contained in:
Simon
2026-04-15 04:02:16 +08:00
parent 2ad2d06d01
commit e9eaf44bdd
4 changed files with 6 additions and 8 deletions

View File

@@ -21,9 +21,9 @@ Internal packages:
npm start # Start website dev server npm start # Start website dev server
npm run build # Build all packages npm run build # Build all packages
npm run build:libs # Build all libraries npm run build:libs # Build all libraries
npm run typecheck # Typecheck all packages (libs + website + extension) npm run build:ext # Build and zip the extension package
npm run typecheck # Typecheck all packages
npm run lint # ESLint npm run lint # ESLint
npm run zip -w @page-agent/ext # Zip the extension package
``` ```
## Architecture ## Architecture
@@ -38,7 +38,7 @@ packages/
├── page-agent/ # npm: "page-agent" entry class (with UI + controller + demo builds) ├── page-agent/ # npm: "page-agent" entry class (with UI + controller + demo builds)
├── website/ # @page-agent/website (private) ├── website/ # @page-agent/website (private)
├── llms/ # @page-agent/llms ├── llms/ # @page-agent/llms
├── extension/ # Browser extension (WXT + React) ├── extension/ # Browser extension
├── page-controller/ # @page-agent/page-controller ├── page-controller/ # @page-agent/page-controller
└── ui/ # @page-agent/ui └── ui/ # @page-agent/ui
``` ```

View File

@@ -85,9 +85,8 @@ If your AI assistant does not support [AGENTS.md](https://agents.md/). Add an al
### Extension Development ### Extension Development
```bash ```bash
# make sure you ran `npm run build:libs` first and every time you changed the core libs npm run dev:ext
npm run dev -w @page-agent/ext npm run build:ext
npm run zip -w @page-agent/ext
``` ```
- Update `packages/extension/docs/extension_api.md` for API integration details - Update `packages/extension/docs/extension_api.md` for API integration details

View File

@@ -31,7 +31,7 @@
"build": "npm run build:libs && npm run build:website", "build": "npm run build:libs && npm run build:website",
"build:libs": "npm run build --workspaces --if-present", "build:libs": "npm run build --workspaces --if-present",
"build:website": "npm run build:website --workspace=@page-agent/website", "build:website": "npm run build:website --workspace=@page-agent/website",
"build:ext": "npm run build:libs && npm run zip -w @page-agent/ext", "build:ext": "npm run zip -w @page-agent/ext",
"version": "node scripts/sync-version.js", "version": "node scripts/sync-version.js",
"postpublish": "npm run postpublish --workspaces --if-present", "postpublish": "npm run postpublish --workspaces --if-present",
"typecheck": "tsc --noEmit -p tsconfig.typecheck.json && tsc --noEmit -p packages/extension/tsconfig.json", "typecheck": "tsc --noEmit -p tsconfig.typecheck.json && tsc --noEmit -p packages/extension/tsconfig.json",

View File

@@ -88,7 +88,6 @@ src/
## Dev ## Dev
```bash ```bash
npm run build:libs
npm run dev:ext npm run dev:ext
npx @modelcontextprotocol/inspector node packages/mcp/src/index.js npx @modelcontextprotocol/inspector node packages/mcp/src/index.js
``` ```