Contributing to openElement
感谢你对 openElement 框架的兴趣!
开发环境设置
git clone https://github.com/open-element/openelement.git cd openElement deno install deno task test deno task docs:dev
Deno-first 工具链
openElement 的 core CLI、SSG、Serverless API、测试、发布和文档站任务都以 Deno 2.7+ 为默认运行环境。
开发规范
- 代码风格:deno fmt + deno lint
- 提交规范:Conventional Commits(feat/fix/docs/refactor/test/chore)
- 分层原则:在添加新功能前,检查是否可以用更低层级解决(L0 HTML → L1 CSS → L2 Browser API → L3 Hono/Vite/Lit → L4 自研代码)
发布流程
- 更新版本号(packages/*/deno.json)
- 更新 changelog
- 运行测试
- 发布到 JSR
- 创建 GitHub Release