mirror of
https://github.com/typicode/json-server.git
synced 2025-07-31 14:12:38 +08:00
Update README.md and package.json
This commit is contained in:
@ -15,12 +15,12 @@ Create a `db.json` file or run `json-server db.json` to create one with some def
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"posts": [
|
"posts": [
|
||||||
{ "id": "1", "title": "string" },
|
{ "id": "1", "title": "a title" },
|
||||||
{ "id": "2", "title": "some post" }
|
{ "id": "2", "title": "another title" }
|
||||||
],
|
],
|
||||||
"comments": [
|
"comments": [
|
||||||
{ "id": "1", "text": "some text", "postId": "1" },
|
{ "id": "1", "text": "a comment about post 1", "postId": "1" },
|
||||||
{ "id": "2", "text": "some text", "postId": "1" }
|
{ "id": "2", "text": "another comment about post 1", "postId": "1" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
"watch-css": "npm run css -- --watch",
|
"watch-css": "npm run css -- --watch",
|
||||||
"dev": "concurrently npm:watch-*",
|
"dev": "concurrently npm:watch-*",
|
||||||
"build": "rm -rf lib && tsc && npm run css",
|
"build": "rm -rf lib && tsc && npm run css",
|
||||||
"test": "node --import tsx/esm --test src/**/*.test.ts",
|
"test": "npm run css && node --import tsx/esm --test src/*.test.ts",
|
||||||
"lint": "eslint src --ext .ts --ignore-path .gitignore",
|
"lint": "eslint src --ext .ts --ignore-path .gitignore",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"prepublishOnly": "npm run build"
|
"prepublishOnly": "npm run build"
|
||||||
|
Reference in New Issue
Block a user