AgentSkillsCN

Frontend bundling via Bun

利用Bun与Make目标进行打包,同时完成类型检查与代码打包。

SKILL.md
--- frontmatter
name: Frontend bundling via Bun
description: Bundling via Bun with Make targets for typecheck and bundling

Skill: Frontend bundling via Bun

Goal

Provide Make targets for TypeScript typecheck + bundling using Bun.

Recommended targets

  • make install — install deps
  • make typecheck — TypeScript type checking
  • make build — typecheck + bundle for production
  • make build-client — bundle frontend only
  • make build-client-dev — bundle frontend with sourcemaps
  • make vendor — rebuild vendored frontend deps

Vendoring

All frontend JS dependencies are vendored in public/vendor/. The make vendor target rebuilds them from node_modules/. Import maps in index.html resolve bare specifiers to vendored files.