Hasty Briefsbeta

双语

`bun init` automatically creates a Claude.md file by default

a day ago
  • Bun 可以使用 `bun init` 初始化项目,并通过 `-y` 标志接受默认设置。
  • 它会创建 package.json、tsconfig.json/jsconfig.json、入口文件(默认为 index.ts)、README.md,以及可选的 CLAUDE.md 或 Cursor 规则。
  • 该命令最后会运行 `bun install` 来安装 `@types/bun`。
  • 选项包括 `--help` (-h)、`--yes` (-y) 接受提示,以及 `--minify` (-m) 仅用于类型定义。
  • 项目模板可通过 `--react` 使用,预设包括 `tailwind` 或 `shadcn`。
  • 输出文件因模板而异,包括项目配置和脚手架。