diff --git a/README.md b/README.md index 72579c4844d..56c0308e509 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,7 @@ Quick Reference [Yarn](./docs/yarn.md) [nvm](./docs/nvm.md) [pnpm](./docs/pnpm.md) +[Bun](./docs/bun.md) ## 工具 diff --git a/assets/bun.svg b/assets/bun.svg new file mode 100644 index 00000000000..4e36015ac01 --- /dev/null +++ b/assets/bun.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/bun.md b/docs/bun.md index 14e5d21d9de..9e46509a748 100644 --- a/docs/bun.md +++ b/docs/bun.md @@ -13,16 +13,20 @@ curl -fsSL https://bun.sh/install | bash ``` ### Bun 与 npm/Yarn 命令比较 + -npm/Yarn | Bun | 说明 -:- | :- | :- -`npm install`, `yarn add` | `bun add` | 安装依赖 -`npm init`, `yarn init` | `bun init` | 创建 `package.json` 文件 -`npm install -g`, `yarn global add` | `bun global add` | 全局安装包 -`npm run`, `yarn run` | `bun run` | 运行脚本 -`npm uninstall`, `yarn remove` | `bun remove` | 移除包 -`npm update`, `yarn upgrade` | `bun upgrade` | 更新包 -`npm cache clean`, `yarn cache clean` | `bun cache clean` | 清理缓存目录 +npm | Yarn | Bun | 说明 +:- | :- | :- | :- +`npm install` | `yarn add` | `bun add` | 安装依赖 +`npm init` | `yarn init` | `bun init` | 创建 `package.json` 文件 +`npm install -g` | `yarn global add` | `bun global add` | 全局安装包 +`npm run` | `yarn run` | `bun run` | 运行脚本 +`npm uninstall` | `yarn remove` | `bun remove` | 移除包 +`npm update` | `yarn upgrade` | `bun upgrade` | 更新包 +`npm cache clean` | `yarn cache clean` | `bun cache clean` | 清理缓存目录 + + +参考备忘清单: [npm](./npm.md)、[yarn](./yaml.md)、[pnpm](./pnpm.md) ### 创建项目 @@ -36,40 +40,30 @@ bun create