-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
117 lines (117 loc) · 4.29 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
{
"name": "demo-express",
"version": "1.9.0",
"description": "",
"main": "src/app.js",
"private": true,
"engines": {
"node": ">=18.16.0",
"pnpm": ">=8.6.2",
"npm": "please use pnpm",
"yarn": "please use pnpm"
},
"scripts": {
"start": "NODE_ENV=production node -r module-alias/register src/app.js",
"dev-start": "pm2 start ecosystem.config.js",
"dev-stop": "pm2 stop demo-app",
"dev": "NODE_ENV=development nodemon -r module-alias/register src/app.js",
"dev:env": "NODE_ENV=development nodemon --config monitor-env.json -r module-alias/register src/app.js",
"test": "cross-env IS_TESTING=true mocha -r module-alias/register --require tests/fixtures.test.js --require tests/teardown.test.js tests/*.test.js --reporter mochawesome --reporter-options reportDir=reports/test,reportFilename=testReport,reportPageTitle=testReport,reportTitle=TestReport,charts=true,inline=true,cdn=true,showSkipped=true,json=false --timeout 250000 --exit --bail",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"migrate": "node -r module-alias/register scripts/migration-script.js",
"migrate:up": "npm run migrate apply",
"migrate:down": "npm run migrate rollback",
"migrate:status": "npm run migrate status",
"logs": "git log --pretty='%C(Yellow)%h %C(reset)%ad (%C(Green)%cr%C(reset))%x09 %C(Cyan)%an: %C(reset)%s'",
"prepare": "husky install",
"audit:report": "pnpm audit --json | npm-audit-html --output ./reports/npm-audit/audit.html",
"clean": "rm pnpm-lock.yaml && rm -rf node_modules",
"audit": "pnpm audit --json | npm-audit-html --output ./reports/npm-audit/audit.html --fatal-exit-code",
"docker:up": "docker-compose up",
"docker:down": "docker-compose down",
"docker:clean-containers": "docker rm $(docker ps -aq)",
"docker:clean-images": "docker rmi $(docker images -q)",
"precommit:lint": "pnpm run lint:fix && git add .",
"coverage": "nyc npm run test && pnpm run audit:report ",
"clean:reports": "rm -rf reports/ && rm -rf .nyc_output/",
"clean:logs": "rm -rf logs/ && rm audit.json",
"preinstall": "npx only-allow pnpm",
"build": "rm -rf node_modules && pnpm i --frozen-lockfile",
"open:report": "opener reports/test/*.html && opener reports/code-coverage/index.html",
"db:delete": "node -r module-alias/register scripts/db-delete.js"
},
"keywords": [
"express",
"template",
"mongodb",
"proect-template"
],
"homepage": "https://github.com/sachin-kiwi/demo-express/#README.md",
"url": "https://github.com/sachin-kiwi/demo-express",
"email": "[email protected]",
"author": "sachin-kiwi",
"repository": {
"type": "git",
"url": "https://github.com/sachin-kiwi/demo-express"
},
"bugs": {
"url": "https://github.com/sachin-kiwi/demo-express/issues"
},
"license": "ISC",
"dependencies": {
"axios": "^1.4.0",
"convict": "^6.2.4",
"cors": "^2.8.5",
"dotenv": "^16.1.4",
"express": "^4.18.2",
"express-joi-validation": "^5.0.1",
"express-rate-limit": "^6.7.0",
"file-stream-rotator": "^1.0.0",
"helmet": "^7.0.0",
"ip": "^1.1.8",
"joi": "^17.9.2",
"jsonwebtoken": "^9.0.0",
"lodash": "^4.17.21",
"module-alias": "^2.2.3",
"mongoose": "^7.3.0",
"newrelic": "^10.3.0",
"node-cron": "^3.0.2",
"pino": "^8.14.1",
"rate-limit-mongo": "^2.3.2",
"redis": "^4.6.7"
},
"devDependencies": {
"@faker-js/faker": "^8.0.2",
"chai": "^4.3.7",
"chai-http": "^4.4.0",
"cross-env": "^7.0.3",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.0",
"generate-password": "^1.7.0",
"husky": "^8.0.3",
"migrate-mongo": "^10.0.0",
"mocha": "^10.2.0",
"mochawesome": "^7.1.3",
"nodemon": "^2.0.22",
"npm-audit-html": "^1.5.0",
"nyc": "^15.1.0",
"pm2": "^5.3.0",
"prettier": "^2.8.8"
},
"_moduleAliases": {
"@root": ".",
"@data": "./data",
"@scripts": "./scripts",
"@src": "./src",
"@common": "./src/common",
"@constant": "./src/common/constant",
"@utils": "./src/common/utils",
"@middlewares": "./src/common/middlewares"
}
}