-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
40 lines (40 loc) · 1.16 KB
/
Copy pathpackage.json
File metadata and controls
40 lines (40 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "example-api-project",
"description": "Example project for API testing using AVA, typescript and superagent",
"author": "Oleksii Ihnatiuk",
"devDependencies": {
"cross-env": "5.2.0",
"typescript": "3.2.2",
"superagent": "4.1.0",
"@types/node": "10.12.18",
"@types/request": "2.48.1",
"@types/superagent": "3.8.5",
"@types/faker": "4.1.4",
"tslint": "5.12.0",
"tslint-eslint-rules": "5.4.0",
"ava": "1.0.1",
"faker": "4.1.0",
"json-server": "0.14.2",
"ajv": "6.6.2"
},
"scripts": {
"tsc": "tsc",
"ava": "ava",
"clean": "rm -rf dist",
"jsonserver:up": "json-server ./db/generate.js &",
"jsonserver:down": "lsof -ti tcp:3000 | xargs kill",
"pretest": "npm run build && npm run jsonserver:up",
"test": "npm run ava && npm run aftertest || npm run aftertest",
"aftertest": "npm run clean && npm run jsonserver:down",
"lint": "tslint 'src/**/*.ts' 'test/**/*.ts' 'db/**/*.ts'",
"prebuild": "npm run clean",
"build": "npm run lint && npm run tsc"
},
"ava": {
"files": [
"dist/test/**/*.js"
],
"verbose": true,
"failWithoutAssertions": false
}
}