Skip to content

Commit a305183

Browse files
authored
feat: upgrade to json-server 0.15 (#8)
* feat: upgrade to json-server 0.15 * chore: bump engines to Node 8
1 parent 2f24978 commit a305183

File tree

6 files changed

+813
-1193
lines changed

6 files changed

+813
-1193
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules/
22
.DS_Store
33
npm-debug.log
44
cypress/videos
5+
cypress/screenshots

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## Install
1414

15-
Requires [Node](https://nodejs.org/en/) version 6 or above.
15+
Requires [Node](https://nodejs.org/en/) version 8 or above (because of `json-server@0.15` peer dependency).
1616

1717
```sh
1818
npm install --save json-server-reset
@@ -70,6 +70,14 @@ $ http :3000/todos
7070
[]
7171
```
7272

73+
### Debugging
74+
75+
Run this module with environment variable
76+
77+
```
78+
DEBUG=json-server-reset
79+
```
80+
7381
### Small print
7482

7583
Author: Gleb Bahmutov <gleb.bahmutov@gmail.com> © 2017

cypress/fixtures/data.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"todos": []
2+
"todos": [
3+
{
4+
"id": 1,
5+
"title": "do something"
6+
}
7+
]
38
}

0 commit comments

Comments
 (0)