-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
105 lines (105 loc) · 4.47 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"name": "node.express.starter",
"version": "0.3.0",
"description": "A simple Node.js API, written using Typescript and Express",
"main": "src/index.ts",
"engines": {
"node": ">=v16.16.0"
},
"author": "Nicolas Pearson",
"repository": {
"url": "https://github.com/nicolaspearson/node.express.starter.git",
"type": "git"
},
"license": "MIT",
"scripts": {
"build": "tsc --build $(pwd)/tsconfig-build.json --verbose",
"db:migration:create": "typeorm migration:create -n",
"db:migration:generate:missing": "rm -rf $(pwd)/dist && run build && run exec:script:generate-migration",
"db:migration:generate": "typeorm migration:generate -n",
"db:migration:revert": "typeorm migration:revert",
"db:migration:run": "typeorm migration:run",
"db:start": "run exec:docker-compose up -d --renew-anon-volumes --force-recreate db",
"debug": "run build && run watch:debug",
"docker:build": "yarn exec:docker-compose build --no-cache api",
"docker:logs": "yarn exec:docker-compose logs -f api",
"docker:start": "yarn exec:docker-compose up -d --build api",
"docker:up": "yarn exec:docker-compose up -d --renew-anon-volumes --wait",
"doctor": "yarn dlx @yarnpkg/doctor .",
"exec:docker-compose": "docker compose -f $(pwd)/docker-compose.yaml",
"exec:jest": "jest --version && jest --coverage --detectOpenHandles --color --forceExit",
"exec:script:generate-migration": "$(pwd)/scripts/generate-migration.sh",
"lint": "eslint --parser-options \"{ tsconfigRootDir: $(pwd), project: '$(pwd)/tsconfig.json' }\" --cache-file $(pwd)/.eslintcache $(pwd)/src",
"postinstall": "husky install",
"sdk": "yarn dlx @yarnpkg/sdks vscode",
"start": "node $(pwd)/src/index.js",
"start:debug": "nodemon --inspect=5858 $(pwd)/dist/src/index.js",
"start:dev": "run db:start && nodemon -w $(pwd)/src -x ts-node-dev -r tsconfig-paths/register --transpile-only $(pwd)/src/index.ts",
"start:docker": "run build && run exec:docker-compose up -d --build api && run exec:docker-compose logs -f api",
"test": "run test:unit && run test:integration",
"test:integration": "run exec:docker-compose up -d -V --force-recreate db && run exec:jest --config $(pwd)/test/integration/jest.config.js",
"test:integration:ci": "run exec:jest --config $(pwd)/test/integration/jest.config.js",
"test:unit": "run exec:jest --config $(pwd)/test/unit/jest.config.js",
"test:unit:badges": "run test:unit && jest-coverage-badges input $(pwd)/coverage/unit/coverage-summary.json output $(pwd)/coverage/unit",
"test:unit:watch": "run test:unit --watchAll",
"tsc": "tsc",
"watch": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"run watch:ts\" \"run start\"",
"watch:debug": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"run watch:ts\" \"run start:debug\"",
"watch:ts": "tsc -w"
},
"dependencies": {
"@hapi/boom": "^10.0.0",
"bcryptjs": "^2.4.3",
"class-transformer": "^0.5.1",
"class-transformer-validator": "^0.9.1",
"class-validator": "^0.13.2",
"dotenv": "^16.0.1",
"ewl": "^1.2.2",
"express": "^4.18.1",
"joi": "^17.6.0",
"jsonwebtoken": "^8.5.1",
"module-alias": "^2.2.2",
"pg": "^8.7.3",
"reflect-metadata": "^0.1.13",
"typeorm": "^0.2.45"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.2",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.13",
"@types/jest": "^28.1.7",
"@types/jsonwebtoken": "^8.5.8",
"@types/node": "^16.11.49",
"@types/pg": "^8.6.5",
"@types/prettier": "^2.7.0",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"commitlint": "^17.0.3",
"concurrently": "^7.3.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.8.3",
"eslint-plugin-ordered-imports": "^0.6.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest-coverage-badges": "^1.1.2",
"jest-environment-node": "^28.1.3",
"nodemon": "^2.0.19",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"supertest": "^6.2.4",
"ts-jest": "^28.0.8",
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"tsconfig-paths": "^4.1.0",
"typescript": "^4.7.4"
},
"_moduleAliases": {
"@": "src",
"#": "test"
},
"packageManager": "[email protected]"
}