-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
119 lines (119 loc) · 4.26 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
110
111
112
113
114
115
116
117
118
119
{
"name": "busee",
"version": "1.0.0",
"description": "Online Bus Booking System",
"private": true,
"scripts": {
"build:watch": "tsc --watch",
"build": "rimraf ./build && tsc",
"start": "cross-env NODE_ENV=production node build/index.js",
"start:dev": "nodemon src/index.ts",
"prepare": "husky install",
"pretest": "npm run db:drop:test",
"test": "cross-env NODE_ENV=test jest --runInBand --detectOpenHandles --forceExit",
"test:watch": "cross-env NODE_ENV=test npm run pretest && jest --watch --forceExit",
"test:cov": "cross-env NODE_ENV=test npm run pretest && jest --coverage --detectOpenHandles --forceExit",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"lint:fix": "npm run lint -- --fix",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(ts|js|json)\"",
"format:check": "prettier --ignore-path .gitignore --list-different \"**/*.+(ts|js|json)\"",
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js",
"typeorm:cli": "ts-node ./node_modules/typeorm/cli -f ./ormconfig.js",
"db:create": "npm run typeorm:cli -- migration:run",
"db:drop": "npm run typeorm:cli -- schema:drop",
"db:create:test": "cross-env NODE_ENV=test npm run typeorm:cli -- migration:run",
"db:drop:test": "cross-env NODE_ENV=test npm run typeorm:cli -- schema:drop",
"db:create:prod": "cross-env NODE_ENV=production npm run typeorm:cli -- migration:run",
"db:drop:prod": "cross-env NODE_ENV=production npm run typeorm:cli -- schema:drop",
"db:migrate": "npm run typeorm:cli migration:run",
"db:migrate:revert": "npm run typeorm:cli migration:revert",
"db:migrate:create": "ts-node ./node_modules/typeorm/cli.js migration:create -n",
"db:migrate:win-run": "ts-node ./node_modules/typeorm/cli.js migration:run",
"audit:ci": "audit-ci --high --report-type full"
},
"repository": {
"type": "git",
"url": "git+https://github.com/desirekaleba/busee.git"
},
"keywords": [],
"author": "Desire Kaleba",
"license": "ISC",
"bugs": {
"url": "https://github.com/desirekaleba/busee/issues"
},
"homepage": "https://github.com/desirekaleba/busee#readme",
"dependencies": {
"@types/bcrypt": "^5.0.0",
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/jsonwebtoken": "^8.5.5",
"@types/morgan": "^1.9.3",
"@types/swagger-jsdoc": "^6.0.1",
"@types/swagger-ui-express": "^4.1.3",
"bcrypt": "^5.0.1",
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"joi": "^17.4.2",
"jsonwebtoken": "^8.5.1",
"morgan": "^1.10.0",
"mysql": "^2.18.1",
"rimraf": "^3.0.2",
"twilio": "^3.71.2",
"typeorm": "^0.2.41",
"typeorm-seeding": "^1.6.1",
"typescript": "^4.4.4",
"winston": "^3.3.3"
},
"devDependencies": {
"@commitlint/cli": "^14.1.0",
"@commitlint/config-conventional": "^14.1.0",
"@types/jest": "^27.0.2",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"audit-ci": "^5.1.2",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.3.1",
"lint-staged": "^11.2.6",
"nodemon": "^2.0.14",
"prettier": "^2.4.1",
"supertest": "^6.1.6",
"ts-jest": "^27.0.7",
"ts-loader": "^9.2.6",
"ts-node": "^10.4.0"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.test|.spec\\.(t|j)s$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s",
"!**/node_modules/**",
"!**/vendor/**"
],
"coveragePathIgnorePatterns": [
"src/database/migrations/",
"src/utils/token.ts"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"lint-staged": {
"*.ts": "eslint",
"*.js": "eslint"
}
}