-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
47 lines (47 loc) · 1.52 KB
/
package.json
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
41
42
43
44
45
46
47
{
"name": "urlshortener",
"version": "1.0.0",
"description": "Url shortener written in typescript",
"main": "dist/index.js",
"author": "Martin Roed",
"license": "Apache 2.0",
"scripts": {
"test": "yarn build && ava --verbose",
"test:watch": "tsc && concurrently 'tsc -w' 'ava --watch'",
"build": "rm -rf dist && tsc",
"start": "node dist/index.js",
"watch": "tsc && concurrently 'nodemon dist/index.js' 'tsc -w'",
"generate:docs": "(mkdir tmpdocs || true) && redoc-cli bundle openapi.yaml -o tmpdocs/index.html --title urlshortener",
"publish:docs": "surge --project tmpdocs --domain urlshortener.surge.sh",
"watch:docs": "redoc-cli serve openapi.yaml --watch",
"test:dredd": "api-spec-converter --from=openapi_3 --to=swagger_2 --syntax=yaml openapi.yaml > swagger.yaml && dredd swagger.yaml localhost:3000 --hookfiles=./hooks.js"
},
"dependencies": {
"koa": "^2.5.3",
"koa-bodyparser": "^4.2.1",
"koa-router": "^7.4.0",
"random-words": "^1.1.0"
},
"devDependencies": {
"@types/koa": "^2.0.46",
"@types/koa-bodyparser": "^5.0.1",
"@types/koa-router": "^7.0.31",
"@types/supertest": "^2.0.6",
"api-spec-converter": "^2.7.12",
"ava": "^0.25.0",
"concurrently": "^4.0.1",
"dredd": "^5.2.0",
"nodemon": "^1.18.4",
"redoc-cli": "^0.6.4",
"supertest": "^3.3.0",
"surge": "^0.20.1",
"tslint": "^5.11.0",
"tslint-immutable": "^4.7.0",
"typescript": "^3.0.3"
},
"ava": {
"files": [
"dist/**/*test.js"
]
}
}