Skip to content

Commit 4ad619c

Browse files
committed
chore: add consistent start targets and Makefiles across examples
1 parent 61087aa commit 4ad619c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.PHONY: start
2+
3+
start:
4+
npm install
5+
npm start

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ cd example-auth-hono
9999
npm install
100100

101101
# 3. Start the development server
102-
npm run dev
102+
npm start
103+
# or
104+
make start
103105
```
104106

105107
The application will now be running at `http://localhost:3000`.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"main": "index.js",
44
"scripts": {
55
"prepack": "tsc",
6+
"start": "tsx watch -r dotenv/config src/index.ts",
67
"dev": "tsx watch -r dotenv/config src/index.ts",
78
"build": "tsc",
89
"test": "jest --verbose --config=jest.config.mjs --runInBand",
910
"test:watch": "npm run test -- --watch",
1011
"test:debug": "jest --verbose --config=jest.config.mjs --runInBand --detectOpenHandles",
11-
"start": "node dist/index.js",
1212
"format": "prettier --write .",
1313
"format:check": "prettier --check .",
1414
"lint": "eslint .",

0 commit comments

Comments
 (0)