{"id":46597496,"url":"https://github.com/luckfunc/create-biome","last_synced_at":"2026-03-07T15:02:31.485Z","repository":{"id":325989397,"uuid":"1103233713","full_name":"luckfunc/create-biome","owner":"luckfunc","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-10T18:38:24.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-11T02:11:39.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/create-biome","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luckfunc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-24T15:50:14.000Z","updated_at":"2025-12-10T18:38:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/luckfunc/create-biome","commit_stats":null,"previous_names":["luckfunc/create-biome"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luckfunc/create-biome","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckfunc%2Fcreate-biome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckfunc%2Fcreate-biome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckfunc%2Fcreate-biome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckfunc%2Fcreate-biome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luckfunc","download_url":"https://codeload.github.com/luckfunc/create-biome/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckfunc%2Fcreate-biome/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30219273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-07T15:02:25.889Z","updated_at":"2026-03-07T15:02:31.478Z","avatar_url":"https://github.com/luckfunc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-biome\n\n一个帮助项目快速接入 [Biome](https://biomejs.dev/) 的命令行工具。它会在当前目录中自动创建/更新 Biome 配置、忽略文件、常用 scripts，并根据你的系统安装所需的 CLI 依赖。\n\n## 功能\n\n- 自动生成 `biome.json`、`.biomeignore`、`.editorconfig` 等配置文件\n- 检查包管理器（pnpm/npm/yarn/bun），并允许手动确认\n- 安装 `@biomejs/biome` 以及当前平台匹配的 CLI 二进制\n- 向 `package.json` 注入 `lint` 与 `lint:fix` 脚本\n\n## 快速开始\n\n```bash\nnpx create-biome\n```\n\n执行过程中会通过终端交互确认目标目录与包管理器，其余步骤全自动完成。默认会在未检测到的情况下创建 `.biomeignore`、`.gitignore`（附带 `.biomeignore` 记录）和 `.editorconfig`。\n\n## 环境要求\n\n- Node.js 18 或更高版本。当前依赖（如 `commander@14`、`chalk@5`、`@clack/prompts`）只在 Node 18+ 上提供官方支持，因此旧版 Node（14/16）无法运行 create-biome。\n- 已安装任一包管理器（pnpm/npm/yarn/bun）用于安装 `@biomejs/biome`。\n\n## 开发 \u0026 构建\n\n项目使用 pnpm，如需修改 CLI 逻辑：\n\n```bash\npnpm install\npnpm dev    # 开启 watch 模式，输出 dist/index.mjs\npnpm build  # 进行一次完整构建并复制模板文件到 dist/\npnpm lint   # 运行 Biome 检查\n```\n\n发布之前请确保 `dist/` 中包含 `index.mjs` 以及模板目录（构建脚本已通过 `tsdown --copy` 自动处理）。\n\n## 目录结构\n\n```\n.\n├── src/index.ts               # CLI 入口\n├── src/template/              # 模板（React / JavaScript / Base，含 editorconfig 等配置）\n├── dist/                      # 构建产物（publish 时使用）\n└── .github/workflows/         # CI（pnpm 安装、lint、发布）\n```\n\n## CI 发布\n\n`.github/workflows/node-package.yml` 会在 push 到 `main` 时运行：\n\n1. `build` 作业：安装依赖、执行 `pnpm lint` 和 `pnpm build`\n2. `publish-npm` 作业（需要 `NPM_TOKEN` Secret）：重新安装、构建并执行 `pnpm publish --access public --no-git-checks`\n\n请确保 `pnpm-lock.yaml` 已提交，且仓库配置了有发布权限的 `NPM_TOKEN`。\n\n## 许可证\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckfunc%2Fcreate-biome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluckfunc%2Fcreate-biome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckfunc%2Fcreate-biome/lists"}