-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
188 lines (188 loc) · 6.37 KB
/
Copy pathpackage.json
File metadata and controls
188 lines (188 loc) · 6.37 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
{
"name": "express-typescript-starter",
"version": "1.0.0",
"description": "A boilerplate for Express.js with TypeScript.",
"main": "dist/index.js",
"files": [
"dist/**",
"CHANGELOG.md",
"di-banner.png",
"public/**",
"templates/**"
],
"keywords": [
"express",
"typescript"
],
"repository": {
"type": "git",
"url": "https://github.com/digitopvn/express-typescript-starter.git"
},
"bugs": {
"url": "https://github.com/digitopvn/express-typescript-starter/issues"
},
"homepage": "https://github.com/digitopvn/express-typescript-starter",
"author": {
"name": "TOP GROUP (a.k.a Digitop)",
"email": "dev@wearetopgroup.com",
"url": "https://github.com/digitopvn/express-typescript-starter"
},
"license": "MIT",
"engines": {
"npm": ">=8.0.0",
"node": ">=16.0.0"
},
"scripts": {
"build": "rimraf dist && tsc -p tsconfig.json && tsc-alias -p tsconfig.json && npm run restruct",
"restruct": "ncp dist/src dist && rimraf dist/src dist/package.json",
"dev": "pnpm dev:server",
"dev:server": "run-script-os",
"dev:server:win32": "set CLI_MODE=server && rimraf dist && concurrently \"tsup src/**/*.ts src/**/*.tsx --format esm,cjs --dts --legacy-output --watch\"",
"dev:server:darwin:linux": "CLI_MODE=server ts-node-dev --poll -r tsconfig-paths/register src/server.ts --debug --respawn --exit-child --watch src",
"dev:server:default": "CLI_MODE=server ts-node-dev --poll -r tsconfig-paths/register src/server.ts --debug --respawn --exit-child --watch src",
"dev:spec": "ts-node-dev --respawn --transpile-only -- node_modules/tsoa/dist/cli.js spec",
"start:ts": "CLI_MODE=server ts-node -r tsconfig-paths/register src/server.ts",
"start:js": "CLI_MODE=server node dist/server.js",
"check-types": "tsc --noEmit --pretty -p tsconfig.json",
"lint": "eslint \"src/**/*.ts\" --fix && pnpm check-types",
"clean": "rimraf .yarn/cache node_modules yarn.lock pnpm-lock.yaml dist",
"test": "CLI_MODE=server NODE_ENV=test jest --runInBand --detectOpenHandles --watchAll=false",
"coverage": "pnpm lint && pnpm build && jest --coverage",
"format": "prettier 'src/**/*.{js,ts,tsx,json,yaml}' --write && pnpm lint",
"commit": "git add . && cz && git push origin && exit 0",
"commit-build": "git add . && git commit --allow-empty -m 'chore(changelog.md): generate changelog [skip ci]' && git push -u origin || true",
"commit-pkgver": "git add . && git commit --allow-empty -m 'chore(package.json): update version [skip ci]' && git push -u origin || true",
"pkg-version": "npm pkg set version=$(echo $(git describe --tags $(git rev-list --tags --max-count=1)) | cut -c2-)",
"npm-publish": "npm publish --access=public",
"husky-hide": "npm pkg delete scripts.prepare && npm pkg delete scripts.postinstall",
"husky-show": "npm pkg set scripts.prepare='husky install' && npm pkg set scripts.postinstall='husky install'",
"docker-build": "docker buildx build --platform=linux/amd64,linux/arm64 -f Dockerfile --push -t digitop/diginext:$(echo $(git describe --tags $(git rev-list --tags --max-count=1)) | cut -c2-) -t digitop/diginext:latest --cache-from type=registry,ref=digitop/diginext .",
"prepare": "husky install",
"postinstall": "husky install"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"release": {
"branches": [
"main",
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/git",
[
"@semantic-release/github",
{
"successComment": false,
"failTitle": false
}
],
"@semantic-release/npm"
]
},
"dependencies": {
"@types/jest": "^26.0.22",
"axios": "1.2.1",
"bcrypt": "^5.1.0",
"body-parser": "^1.20.1",
"chalk": "4.1.2",
"class-validator": "^0.13.2",
"cli-table": "^0.3.11",
"cookie-parser": "^1.4.6",
"cookie-session": "^2.0.0",
"cors": "^2.8.5",
"dayjs": "^1.10.4",
"diginext-utils": "^2.1.29",
"dotenv": "^8.2.0",
"execa": "5.1.1",
"express": "^4.18.2",
"express-list-endpoints": "^6.0.0",
"express-query-parser": "^1.3.3",
"express-serve-static-core": "^0.1.1",
"globby": "11.1.0",
"inquirer": "8.2.5",
"jest": "^29.5.0",
"js-yaml": "^4.1.0",
"jsonwebtoken": "8.5.1",
"lodash": "^4.17.21",
"mongoose": "^7.0.3",
"morgan": "^1.10.0",
"ncp": "^2.0.0",
"open": "8.4.0",
"ora": "^5.1.0",
"p-queue": "6.6.2",
"passport": "^0.6.0",
"passport-google-oauth2": "^0.2.0",
"passport-http-bearer": "^1.0.1",
"passport-jwt": "4.0.0",
"redis": "^4.3.1",
"reflect-metadata": "^0.1.13",
"simple-git": "^3.15.0",
"socket.io": "4.1.3",
"socket.io-client": "4.1.3",
"strip-ansi": "^6.0.1",
"tsup": "^6.3.0",
"uuid": "^9.0.0",
"yargs": "^17.6.2"
},
"devDependencies": {
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@commitlint/cz-commitlint": "^17.3.0",
"@jest/globals": "^29.5.0",
"@jest/types": "^29.5.0",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@types/bcrypt": "^5.0.0",
"@types/cookie-session": "^2.0.44",
"@types/express": "^4.17.17",
"@types/express-list-endpoints": "^6.0.0",
"@types/inquirer": "^9.0.3",
"@types/jsonwebtoken": "8.5.1",
"@types/lodash": "^4.14.191",
"@types/mocha": "^10.0.0",
"@types/morgan": "^1.9.4",
"@types/node": "^18.8.5",
"@types/supertest": "^2.0.12",
"@types/yargs": "^17.0.22",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"commitizen": "^4.2.5",
"esbuild": "^0.15.15",
"eslint": "^8.28.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^8.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"husky": "^8.0.0",
"lint-staged": "^13.0.4",
"mocha": "^10.1.0",
"open-cli": "^7.1.0",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"run-script-os": "^1.1.6",
"semantic-release": "^19.0.5",
"supertest": "^6.3.3",
"ts-jest": "^29.0.5",
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"tsc-alias": "^1.7.1",
"tsconfig-paths": "4.1.0",
"typescript": "^4.9.5"
}
}