Skip to content

Commit ae87490

Browse files
build(script): use dev instead of serve (#6674)
* build(script): use `dev` instead of `serve` * add alias
1 parent 805f36d commit ae87490

4 files changed

Lines changed: 8 additions & 13 deletions

File tree

CONTRIBUTING.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ for getting things done and landing your contribution.
9191

9292
```bash
9393
npm ci # installs this project's dependencies
94-
npx turbo serve # starts a preview of your local changes
94+
npx turbo dev # starts a development environment
9595
```
9696

9797
7. Perform your changes. In case you're unfamiliar with the structure of this repository, we recommend a read on the [Collaborator Guide](./COLLABORATOR_GUIDE.md)
@@ -118,14 +118,8 @@ for getting things done and landing your contribution.
118118
git push -u origin name-of-your-branch
119119
```
120120

121-
> [!NOTE]\
122-
> By default if you run the Website (either via `npm run serve` or `npm run build`) two files on the `public` folder will be generated.
123-
>
124-
> You don't need to reset/discard these files, as by default we use Git Hooks that simply ignore these files during commit.
125-
> Note that these files are generated and should **not** be committed. (`public/node-release-data.json` and `public/blog-posts-data.json`)
126-
127-
> [!IMPORTANT]\
128-
> Before committing and opening a Pull Request, please go first through our [Commit](#commit-guidelines) and [Pull Request](#pull-request-policy) guidelines outlined below.
121+
> [!IMPORTANT]\
122+
> Before committing and opening a Pull Request, please go first through our [Commit](#commit-guidelines) and [Pull Request](#pull-request-policy) guidelines outlined below.
129123

130124
11. Create a Pull Request.
131125

@@ -143,7 +137,7 @@ This repository contains several scripts and commands for performing numerous ta
143137
<details>
144138
<summary>Commands for Running & Building the Website</summary>
145139

146-
- `npx turbo serve` runs Next.js's Local Development Server, listening by default on `http://localhost:3000/`.
140+
- `npx turbo dev` runs Next.js's Local Development Server, listening by default on `http://localhost:3000/`.
147141
- `npx turbo build` builds the Application on Production mode. The output is by default within `.next` folder.
148142
- This is used for the Node.js Vercel Deployments (Preview & Production)
149143
- `npx turbo deploy` builds the Application on Export Production Mode. The output is by default within `build` folder.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
```bash
4242
npm ci
43-
npx turbo serve
43+
npx turbo dev
4444

4545
# listening at localhost:3000
4646
```

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
},
1717
"scripts": {
1818
"scripts:release-post": "cross-env NODE_NO_WARNINGS=1 node scripts/release-post/index.mjs",
19-
"serve": "cross-env NODE_NO_WARNINGS=1 next dev --turbo",
19+
"dev": "cross-env NODE_NO_WARNINGS=1 next dev --turbo",
20+
"serve": "npm run dev",
2021
"build": "cross-env NODE_NO_WARNINGS=1 next build",
2122
"start": "cross-env NODE_NO_WARNINGS=1 next start",
2223
"deploy": "cross-env NEXT_PUBLIC_STATIC_EXPORT=true npm run build",

turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://turbo.build/schema.json",
33
"globalEnv": ["NODE_ENV"],
44
"pipeline": {
5-
"serve": {
5+
"dev": {
66
"cache": false,
77
"persistent": true,
88
"env": [

0 commit comments

Comments
 (0)