-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
349 lines (349 loc) · 9.85 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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
{
"private": false,
"name": "@mblabs/app-nodejs-app",
"version": "0.0.1",
"description": "A boilerplate / instructions / tips for creating Node.js apps",
"license": "MIT",
"author": "Brian Zalewski <brian@megabyte.space> (https://megabyte.space)",
"homepage": "https://megabyte.space",
"repository": {
"type": "git",
"url": "git+https://github.com/megabyte-labs/template-nodejs-app.git"
},
"bugs": {
"email": "help@megabyte.space",
"url": "https://gitlab.com/megabyte-labs/templates/nodejs-app/-/issues"
},
"type": "module",
"main": "dist/main.js",
"module": "build/module/index.js",
"man": "man",
"bin": {
"cli_name_here": "bin/cli",
"common-shared": "bin/cli"
},
"files": [
"dist",
"lib"
],
"scripts": {
"build": "bash start.sh && nest build",
"bump": "bash start.sh && task npm:bump",
"commit": "bash start.sh && task commit",
"fix": "bash start.sh && task fix",
"help": "bash start.sh && task --menu",
"lint": "bash start.sh && task lint",
"preload": "bash start.sh && task preload",
"prepare": "bash start.sh && (test -f Taskfile.yml && task npm:prepare) || true",
"release": "bash start.sh && task publish:semantic-release",
"repair": "bash <(curl -sS https://install.doctor/repair)",
"start": "test -z $SKIP_NPM_START && bash start.sh || true",
"test": "bash start.sh && [[ -z $CI ]] && task npm:test || task npm:test:ci",
"unpack": "bash start.sh && task npm:bundle:unpack",
"update": "bash start.sh && task update",
"vscode": "bash start.sh && task vscode"
},
"config": {
"commitizen": {
"path": "node_modules/git-cz-emoji"
}
},
"typings": "dist/main.d.ts",
"dependencies": {
"@nestjs/common": "8.1.2",
"@nestjs/config": "^1.0.3",
"@nestjs/core": "8.1.2",
"@nestjs/event-emitter": "^1.0.0",
"@nestjs/platform-express": "^8.0.0",
"class-transformer": "^0.4.0",
"class-validator": "^0.13.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.2.0",
"tslib": "latest"
},
"peerDependenciesMeta": {
"eslint": {
"optional": true
}
},
"optionalDependencies": {},
"devDependencies": {
"@commitlint/config-conventional": "latest",
"@nestjs/cli": "^8.0.0",
"@nestjs/schematics": "^8.0.0",
"@nestjs/testing": "^8.0.0",
"@types/express": "^4.17.13",
"@types/node": "^16.11.6",
"@types/supertest": "^2.0.11",
"esbuild": "^0.12.29",
"esbuild-node-externals": "^1.3.0",
"eslint-config-strict-mode": "latest",
"git-cz-emoji": "latest",
"handlebars-helpers": "latest",
"jest-preset-ts": "latest",
"prettier": "^2.4.1",
"prettier-config-sexy-mode": "latest",
"semantic-release-config": "latest",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"tsconfig-paths": "^3.10.1",
"typescript": "^4.5.5"
},
"keywords": [
"app",
"mblabs",
"megabytelabs",
"nestjs",
"professormanhattan",
"washingtondc"
],
"engines": {
"node": ">=18.4.0"
},
"publishConfig": {
"@gitlab:registry": "https://gitlab.com/api/v4/projects/31678815/packages/npm/",
"access": "public",
"registry": "https://registry.npmjs.org/",
"tag": "edge"
},
"blueprint": {
"boilerplate": true,
"description": "A boilerplate / instructions / tips for creating Node.js apps",
"github_id": "R_kgDOHOPIAw",
"gitlab_group_id": "11579735",
"gitlab_project_id": "31678815",
"group": "npm",
"name": "Node.js App",
"overview": "This repository houses a starting template / boilerplate with the format that all [Megabyte Labs](https://megabyte.space) Node.js apps should use. It bundles together NestJS, and a few other recommended dependencies. It also includes Jest for Test-Driven Development (TDD). Developers are expected to **read this README** before converting this starting template into the next awesome Node.js app.",
"repository": {
"github": "https://github.com/megabyte-labs/template-nodejs-app",
"gitlab": "https://gitlab.com/megabyte-labs/templates/nodejs-app"
},
"slug": "nodejs-app",
"subgroup": "app",
"title": "Node.js App Boilerplate and Instructions"
},
"changelog": {
"displayTypes": [
"feat",
"fix",
"perf",
"refactor",
"revert"
],
"showAuthor": true
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"helpUrl": "https://megabyte.space/docs/contributing/commits"
},
"eslintConfig": {
"extends": "eslint-config-strict-mode"
},
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/megabytelabs"
},
{
"type": "patreon",
"url": "https://www.patreon.com/ProfessorManhattan"
}
],
"jest": {
"preset": "jest-preset-ts",
"reporters": [
"default",
[
"jest-html-reporters",
{
"filename": "index.html",
"logoImgPath": "./.config/assets/logo-jest-report.png",
"openReport": true,
"pageTitle": "Code Coverage Report",
"publicPath": "./coverage"
}
]
]
},
"jscpd": {
"absolute": true,
"gitignore": true,
"ignore": [
"!**/.devcontainer/**/*",
"!**/.config/**/*",
"!**/.git/**/*",
"!**/.github/**/*",
"!**/.gitlab/**/*",
"!**/.vscode/**/*",
"!**/common/.config/taskfiles/**/*",
"!**/docs/**/*",
"!**/.editorconfig",
"!**/.gitignore",
"!**/.npmrc",
"!**/.gitlab-ci.yml",
"!**/README.md",
"!**/LICENSE",
"!**/Taskfile.yml",
"!**/logo.png",
"!**/package.json",
"!**/start.sh",
"!**/pnpm-lock.yaml",
"!**/package-lock.json",
"!**/poetry.lock",
"!**/pyproject.toml",
"!**/requirements.yml",
"!**/yarn.lock",
"!**/deprecated/**/*"
],
"threshold": 14
},
"lint-staged": {
"(Brewfile|composer.lock|Gemfile|Gopkg.lock|Pipfile.lock)": [
"task fix:prettier --"
],
"**/!(logo).(jpg|png)": [
"task image:compress --"
],
"**/*": [
"task lint:any --"
],
"**/*!(template).(json|webapp|webmanifest)": [
"task fix:json --"
],
"**/*.(bash|cfg|cgi|command|css|env|env.*|handlebars|hbs|html|less|fcgi|java|md|mdx|mjml|php|phtml|properties|reg|scss|tmpl|tmux|tool|tpl|zsh)": [
"task fix:prettier --"
],
"**/*.(cjs|js|jsx|mjs|ts|tsx)": [
"task fix:js --",
"task lint:js --"
],
"**/*.(yml|yaml)": [
"task fix:yaml --",
"task lint:yaml --"
],
"**/*.go": [
"task fix:go --",
"task lint:go --"
],
"**/*.md": [
"task fix:markdown --",
"task lint:spelling:markdown --"
],
"**/*.php": [
"task fix:php --",
"task lint:php --"
],
"**/*.py": [
"task fix:python --",
"task lint:python --"
],
"**/*.sh": [
"task fix:prettier --",
"task fix:shell --",
"task lint:shell --"
],
"**/*.toml": [
"task fix:toml --",
"task fix:prettier --",
"task lint:toml --"
],
"**/*.xml": [
"task fix:xml --",
"task lint:xml --"
],
"Dockerfile": [
"task fix:prettier --",
"task lint:docker --"
],
"Vagrantfile": [
"task fix:prettier --",
"task lint:vagrant"
],
"logo.(gif|jpg|jpeg|webp)": [
"task image:convert:logo --"
],
"logo.png": [
"task image:resize -- 200 200",
"task image:compress --"
]
},
"nodemonConfig": {
"exec": "nest build && node --inspect-brk dist/main",
"ext": "js,jsx,json,ts,tsx,yml",
"ignore": [
"src/**/*.spec.ts"
],
"watch": [
".env",
"src"
]
},
"ntl": {
"descriptions": {
"build": "Builds the project using the build command specified under scripts in package.json",
"bump": "Used to quickly build, increase the package.json version, and publish the package",
"commit": "If unsure, use this task to commit your code so that it adheres to our commit rules",
"fix": "Run auto-fixing with all available auto-fixers",
"help": "Display the Bodega Taskfile.yml interactive help menu",
"lint": "Lint the project with all available linters",
"preload": "Preload the operating system with commonly used libraries and tools",
"prepare": "A hook triggered by running npm install that runs logic such as installing pre-commit hooks",
"release": "Publish the software to all supported channels using semantic-release",
"repair": "Fixes basic issues in projects that are having trouble running basic commands like 'task start'",
"start": "Entrypoint for new developers that installs requirements and then runs 'task start'",
"test": "Runs the appropriate test logic by running the test command defined under scripts in package.json",
"unpack": "Populates production node_modules from compressed copies saved in the .modules/ folder",
"update": "Update and refresh the repository with upstream changes and templated parts"
}
},
"pkg": {
"compress": "Brotli",
"outputPath": "build"
},
"pnpm": {
"allowedVersions": {
"@typescript-eslint/eslint-plugin": "5",
"typescript": "4"
},
"neverBuiltDependencies": [
"core-js",
"core-js-pure",
"highlight.js"
],
"peerDependencyRules": {
"ignoreMissing": [
"eslint",
"prettier",
"puppeteer"
]
}
},
"prettier": "prettier-config-sexy-mode",
"recommendedPackages": {
"class-validator": "^0.13.1",
"commander": "^7.1.0",
"dotenv": "^8.2.0",
"pino": "^6.11.1",
"pino-pretty": "^4.5.0",
"update-notifier": "^5.1.0"
},
"release": {
"branches": [
"main",
"master",
"next",
{
"name": "beta",
"prerelease": true
}
],
"extends": "semantic-release-config"
},
"volta": {
"node": "16.19.1",
"yarn": "1.22.19"
}
}