Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

Commit 814b70b

Browse files
build(npm): update npm scripts
1 parent 8a12ffc commit 814b70b

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<p align="center">
3131
<a href="https://hiberfile.com">Website</a>
3232
·
33-
<a href="#🚀-quick-start">Quick start</a>
33+
<a href="#-quick-start">Quick start</a>
3434
</p>
3535

3636
**The API of [HiberFile](https://github.com/hiberfile/hiberfile).**
@@ -68,23 +68,23 @@
6868

6969
> Note that you can use your favorite editor instead of `nano`, like `vi` or `mcedit`.
7070
71-
5. Check that the endpoint of the S3.
71+
5. Use your own endpoint of the S3.
7272

7373
```sh
7474
nano src/utils/s3.ts
7575
```
76-
Then, on the 19th line, check the endpoint.
76+
Then, on the 19th line, edit the endpoint.
7777

7878
6. Launch the dev server (optional):
7979

8080
```sh
8181
npm run dev
8282
```
8383

84-
7. Start the server:
84+
7. Deploy the server:
8585

8686
```sh
87-
npm run start
87+
npm run build && npm run start
8888
```
8989

9090
## 🤝 Contributing
@@ -96,7 +96,7 @@ If you are interested in helping contribute to **HiberFile**, feel free to open
9696
<!-- This project exists thanks to all the people who [contribute](https://github.com/hiberfile/hiberapi/graphs/contributors). -->
9797

9898
<a href="https://github.com/hiberfile/hiberapi/graphs/contributors">
99-
<img src="https://contrib.rocks/image?repo=hiberfile/hiberapi" />
99+
<img alt="contributors" src="https://contrib.rocks/image?repo=hiberfile/hiberapi" />
100100
</a>
101101

102102
## 📝 License

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77
"test": "test"
88
},
99
"scripts": {
10+
"dev": "nodemon --watch src/ --exec 'npm run build && npm run start' -e ts",
1011
"test": "tap test/**/*.test.js",
11-
"start": "npm run prisma && npm run build:ts && fastify start -l info dist/app.js",
12-
"dev": "nodemon --watch '**/*.ts' --exec 'fastify start -l info dist/app.js'",
13-
"build:ts": "tsc",
1412
"lint": "eslint .",
1513
"lint:fix": "eslint . --fix",
16-
"prisma": "npx prisma migrate dev --name init"
14+
"prisma:dev": "func() { if [ ${#1} = 0 ]; then echo \"Please provide a name for the migration.\nExample: npm run prisma:dev -- 'commit example'\"; else npx prisma migrate dev --name \"$1\"; fi }; func ",
15+
"prisma:generate": "npx prisma generate",
16+
"prisma:deploy": "npx prisma migrate deploy",
17+
"tsc": "tsc",
18+
"build": "prisma:generate && npm run tsc",
19+
"start": "fastify start -l info dist/app.js"
1720
},
1821
"repository": {
1922
"type": "git",

0 commit comments

Comments
 (0)