mirror of
https://github.com/typicode/json-server.git
synced 2025-07-30 21:54:11 +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
|
||||
{
|
||||
"posts": [
|
||||
{ "id": "1", "title": "string" },
|
||||
{ "id": "2", "title": "some post" }
|
||||
{ "id": "1", "title": "a title" },
|
||||
{ "id": "2", "title": "another title" }
|
||||
],
|
||||
"comments": [
|
||||
{ "id": "1", "text": "some text", "postId": "1" },
|
||||
{ "id": "2", "text": "some text", "postId": "1" }
|
||||
{ "id": "1", "text": "a comment about post 1", "postId": "1" },
|
||||
{ "id": "2", "text": "another comment about post 1", "postId": "1" }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
@ -15,7 +15,7 @@
|
||||
"watch-css": "npm run css -- --watch",
|
||||
"dev": "concurrently npm:watch-*",
|
||||
"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",
|
||||
"prepare": "husky install",
|
||||
"prepublishOnly": "npm run build"
|
||||
|
Reference in New Issue
Block a user