docs: add instructions for Bun package manager (#22779)

This commit is contained in:
Colin McDonnell 2023-08-23 23:44:43 -07:00 committed by GitHub
parent 330900bcbe
commit 9d3702c7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 4 deletions

View File

@ -88,6 +88,10 @@ npm install
pnpm install pnpm install
``` ```
```bash [bun]
bun install
```
:: ::
## Development Server ## Development Server
@ -108,6 +112,10 @@ npm run dev -- -o
pnpm dev -o pnpm dev -o
``` ```
```bash [pnpm]
bun run dev -o
```
:: ::
::alert{type=success icon=✨ .font-bold} ::alert{type=success icon=✨ .font-bold}

View File

@ -7,4 +7,4 @@ head.title: "node_modules/"
# Node modules Directory # Node modules Directory
The package manager ([`npm`](https://docs.npmjs.com/cli/v7/commands/npm) or [`yarn`](https://yarnpkg.com/) or [`pnpm`](https://pnpm.io/cli/install)) creates the [`node_modules/` directory](/docs/guide/directory-structure/node_modules) to store the dependencies of your project. The package manager ([`npm`](https://docs.npmjs.com/cli/v7/commands/npm) or [`yarn`](https://yarnpkg.com/) or [`pnpm`](https://pnpm.io/cli/install) or [`bun`](https://bun.sh/package-manager)) creates the [`node_modules/` directory](/docs/guide/directory-structure/node_modules) to store the dependencies of your project.

View File

@ -30,7 +30,7 @@ Update `nuxt` dependency inside `package.json`:
} }
``` ```
Remove lockfile (`package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`) and reinstall dependencies. Remove lockfile (`package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, or `bun.lockb`) and reinstall dependencies.
## Opting Out From the Edge Channel ## Opting Out From the Edge Channel
@ -45,7 +45,7 @@ Update `nuxt` dependency inside `package.json`:
} }
``` ```
Remove lockfile (`package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`) and reinstall dependencies. Remove lockfile (`package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, or `bun.lockb`) and reinstall dependencies.
## Using Latest `nuxi` CLI From Edge ## Using Latest `nuxi` CLI From Edge

View File

@ -157,7 +157,7 @@ We recommend using [VS Code](https://code.visualstudio.com/) along with the [ESL
#### No Prettier #### No Prettier
Since ESLint is already configured to format the code, there is no need to duplicate the functionality with Prettier. To format the code, you can run `yarn lint --fix` or `pnpm lint --fix` or referring the [ESLint section](#use-eslint) for IDE Setup. Since ESLint is already configured to format the code, there is no need to duplicate the functionality with Prettier. To format the code, you can run `yarn lint --fix`, `pnpm lint --fix`, or `bun run lint --fix` or referring the [ESLint section](#use-eslint) for IDE Setup.
If you have Prettier installed in your editor, we recommend you disable it when working on the project to avoid conflict. If you have Prettier installed in your editor, we recommend you disable it when working on the project to avoid conflict.