-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
72 lines (72 loc) · 3.12 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"name": "bubble-payment-backend",
"version": "1.0.0",
"main": "index.js",
"repository": "git@github.com:kaifresh/bubble-payment-backend.git",
"author": "KT <tan.kairen@gmail.com>",
"license": "SEE LICENSE IN LICENSE.txt",
"dependencies": {
"body-parser": "^1.19.0",
"class-transformer": "^0.4.0",
"class-validator": "^0.13.1",
"class-validator-jsonschema": "^3.1.0",
"commitlint": "^13.1.0",
"express": "^4.17.1",
"http-status-codes": "^2.1.4",
"husky": "^7.0.2",
"json": "^11.0.0",
"lint-staged": "^11.1.2",
"multer": "^1.4.3",
"program": "^1.0.0",
"reflect-metadata": "^0.1.13",
"routing-controllers": "^0.9.0",
"routing-controllers-openapi": "^3.1.0",
"ts-node": "^10.2.1",
"typescript": "^4.4.3"
},
"devDependencies": {
"@types/body-parser": "^1.19.1",
"@types/chai": "^4.2.22",
"@types/express": "^4.17.13",
"@types/http-status-codes": "^1.2.0",
"@types/mocha": "^9.0.0",
"@types/multer": "^1.4.7",
"@typescript-eslint/eslint-plugin": "^4.31.2",
"@typescript-eslint/parser": "^4.31.2",
"chai": "^4.3.4",
"danger": "^10.6.6",
"eslint": "^7.32.0",
"mocha": "^9.1.1",
"nyc": "^15.1.0"
},
"engines": {
"node": ">= 12.0"
},
"scripts": {
"start:ts": "ts-node src/app.ts",
"start": "node build/app.js",
"clean": "rm -rf build",
"lint": "eslint",
"build": "yarn clean && tsc",
"test": "mocha -r ts-node/register tests/**/*.test.ts",
"set-environment": "cp .private.environments/.env.$ENVIRONMENT .env",
"use-development": "ENVIRONMENT=development yarn set-environment",
"use-staging": "ENVIRONMENT=staging yarn set-environment",
"use-production": "ENVIRONMENT=production yarn set-environment",
"deploy-generic": "echo ❌❌❌TODO❌❌❌",
"deploy-staging": "ENVIRONMENT=staging yarn deploy-generic",
"deploy-production": "ENVIRONMENT=production yarn deploy-generic",
"prepush": "yarn danger:prepush",
"prepush:prepush": "yarn danger local --base develop --dangerfile dangerfile.lite.js",
"api:generate-swagger-spec": "mkdir -p api && ts-node src/generate-open-api-spec.ts -o ./api/open-api-spec.json",
"api:docs": "npx speccy serve api/open-api-spec.json",
"api:docs:watch": "nodemon --exec \"npx speccy serve api/open-api-spec.json\" -w api/open-api-spec.json -w api/components -e \"yaml\" --verbose",
"api:lint": "npx speccy lint --skip openapi-tags --skip operation-tags api/open-api-spec.json",
"api:resolve": "npx speccy resolve api/open-api-spec.json > api/resolved.yaml",
"api:docs-static": "yarn api:resolve && redoc-cli bundle api/resolved.yaml && mkdir -p apidocs && mv redoc-static.html apidocs/index.html",
"api:docs-publish": "yarn api:docs-static && gh-pages -d apidocs",
"api:toJsonSchema": "yarn api:resolve && mkdir -p server/schemas && openapi2schema -i api/resolved.yaml > server/schemas/api.json",
"api:monitor": "nodemon --exec \"yarn api:toJsonSchema\" -w api/open-api-spec.json -w api/components -e \"yaml\" --verbose",
"docker:build": "docker build . -t kaifresh/express-typescript-routingcontrollers-webapp"
}
}