-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
109 lines (109 loc) · 4.25 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
106
107
108
109
{
"name": "ts-node-base",
"version": "0.1.0",
"description": "Base project for node/typescript applications",
"main": "./src/index.ts",
"scripts": {
"build": "rimraf ./dist && tsc --p tsconfig-build.json",
"lint": "eslint ./src ./test --ext .ts",
"lint:fix": "eslint ./src ./test --ext .ts --fix",
"style:check": "prettier --check 'src/**/*/*.ts' 'test/**/*/*.ts'",
"style:fix": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
"start:dev": "nodemon",
"start:prod": "npm run build && node ./dist/index.js",
"test:unit": "jest",
"test:functional": "NODE_ENV=test npm run db:reset && jest --projects ./test --runInBand",
"migration:apply": "ts-node -r tsconfig-paths/register -P tsconfig.json ./node_modules/.bin/typeorm migration:run --config src/config/TypeORMConfig",
"migration:revert": "ts-node -r tsconfig-paths/register -P tsconfig.json ./node_modules/.bin/typeorm migration:revert --config src/config/TypeORMConfig",
"migration:generate": "ts-node -r tsconfig-paths/register -P tsconfig.json ./node_modules/.bin/typeorm migration:generate --config src/config/TypeORMConfig",
"db:drop": "ts-node -r tsconfig-paths/register -P tsconfig.json ./node_modules/.bin/typeorm schema:drop --config src/config/TypeORMConfig",
"db:reset": "npm run db:drop && npm run migration:apply",
"boilerplate:cleanup": "rimraf ./src/controller/ProjectController.ts ./src/entity/Project.ts ./src/migration/1589423633834-InitialMigration.ts ./src/route/ProjectRoute.ts ./src/route/CustomRoute.ts ./src/type/response/entity/ProjectResponseType.ts ./test/functional/Project.test.ts",
"boilerplate:crud-cleanup": "npm run boilerplate:cleanup && rimraf ./src/route/AbstractCrudRoute.ts ./src/controller/AbstractCrudController.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/luis-carlos-campos/ts-node-base.git"
},
"keywords": [
"node",
"nodejs",
"typescript"
],
"author": "Luís Carlos Campos",
"license": "ISC",
"bugs": {
"url": "https://github.com/luis-carlos-campos/ts-node-base/issues"
},
"homepage": "https://github.com/luis-carlos-campos/ts-node-base#readme",
"devDependencies": {
"@types/compression": "1.7.0",
"@types/express": "4.17.7",
"@types/jest": "25.2.1",
"@types/module-alias": "2.0.0",
"@types/morgan": "1.9.1",
"@types/node": "14.0.26",
"@types/supertest": "2.0.10",
"@typescript-eslint/eslint-plugin": "3.7.0",
"@typescript-eslint/parser": "3.7.0",
"eslint": "7.5.0",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-jest": "23.18.2",
"eslint-plugin-node": "11.1.0",
"husky": "4.2.5",
"jest": "26.1.0",
"lint-staged": "10.2.11",
"nodemon": "2.0.4",
"prettier": "2.0.5",
"pretty-quick": "2.0.1",
"rimraf": "3.0.2",
"supertest": "4.0.2",
"ts-jest": "26.1.3",
"ts-node": "8.10.1",
"tsconfig-paths": "3.9.0",
"typescript": "3.9.7"
},
"dependencies": {
"class-validator": "0.12.2",
"compression": "1.7.4",
"express": "4.17.1",
"module-alias": "2.2.2",
"moment": "2.27.0",
"morgan": "1.10.0",
"mysql2": "2.1.0",
"typeorm": "0.2.25",
"winston": "3.3.3",
"winston-daily-rotate-file": "4.5.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.*": [
"pretty-quick --staged"
],
"*.{js,ts}": [
"npm run lint"
]
},
"_moduleAliases": {
"@src": "./dist/",
"@config": "./dist/config/",
"@controller": "./dist/controller/",
"@decorator": "./dist/decorator/",
"@entity": "./dist/entity/",
"@enum": "./dist/enum/",
"@error": "./dist/error/",
"@initializer": "./dist/initializer/",
"@interface": "./dist/interface/",
"@migration": "./dist/migration/",
"@route": "./dist/route/",
"@type": "./dist/type/",
"@util": "./dist/util/"
},
"engines": {
"node": ">=14.1.0"
}
}