-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
137 lines (137 loc) · 5.05 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
{
"name": "node-rest-starter",
"description": "Starter for a REST API using Node and Express.js",
"version": "0.0.0",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com:Asymmetrik/node-rest-starter.git"
},
"engines": {
"node": ">=20.17.0",
"npm": ">=10.8.2"
},
"scripts": {
"init": "npm ci && npm run init:env:dev",
"init:mongo": "npm run init && npm run init:mongo:up",
"init:env:dev": "cp config/env/development.template.js config/development.js",
"init:mongo:up": "docker compose -p node-rest-starter -f dev/mongo.yml up -d",
"init:mongo:express": "docker compose -p node-rest-starter -f dev/mongo-express.yml up -d",
"init:mongo:down": "docker compose -p node-rest-starter -f dev/mongo.yml down",
"clean": "rm -rf dist",
"start": "export NODE_ENV=development && nodemon ./src/server.ts --exec 'node --inspect -r @swc-node/register'",
"start:brk": "export NODE_ENV=development && nodemon ./src/server.ts --exec 'node --inspect-brk -r @swc-node/register'",
"start:prod": "cd dist && node ./src/server.js",
"test": "NODE_ENV=test ALLOW_CONFIG_MUTATIONS=true nodemon -r @swc-node/register src/test.ts",
"test:build": "cd dist && node -r @swc-node/register src/test.ts",
"test:ci": "NODE_ENV=test ALLOW_CONFIG_MUTATIONS=true nyc --reporter=lcov --reporter=text-summary node -r @swc-node/register src/test.ts --ci",
"test:gitlab": "NODE_ENV=testgitlab ALLOW_CONFIG_MUTATIONS=true nyc --reporter=lcov --reporter=text-summary node -r @swc-node/register src/test.ts --ci",
"test:debug": "NODE_ENV=test ALLOW_CONFIG_MUTATIONS=true nodemon src/test.ts --exec 'node -r @swc-node/register --inspect-brk=:9339'",
"build": "npm run lint",
"build:prod": "npm run lint && npm run clean && npm run compile:prod && npm run link:prod",
"compile:prod": "swc src --config-file .prod.swcrc -d dist --copy-files",
"link:prod": "ln -s ../config ./dist/config && ln -s ../node_modules ./dist/node_modules && ln -s ../package.json ./dist/package.json && ln -s ../package-lock.json ./dist/package-lock.json",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint:config": "eslint --inspect-config",
"tsc:check": "tsc --project tsconfig.json --noEmit",
"tsc:watch": "tsc --project tsconfig.json --watch --noEmit",
"prepare": "husky"
},
"nyc": {
"include": "src",
"exclude": [
"**/*.spec.js",
"**/*.spec.ts",
"src/test.ts"
]
},
"dependencies": {
"@fastify/compress": "^8.0.1",
"@fastify/cookie": "^11.0.1",
"@fastify/cors": "^10.0.1",
"@fastify/express": "^4.0.1",
"@fastify/formbody": "^8.0.1",
"@fastify/helmet": "^12.0.1",
"@fastify/passport": "^3.0.1",
"@fastify/session": "^11.0.1",
"@fastify/swagger": "^9.2.0",
"@fastify/swagger-ui": "^5.1.0",
"@fastify/type-provider-typebox": "^5.0.1",
"@scalar/fastify-api-reference": "^1.25.78",
"@sinclair/typebox": "^0.33.22",
"@types/sinon": "^17.0.3",
"agenda": "^4.3.0",
"config": "^3.3.11",
"connect-mongo": "^5.1.0",
"cors": "^2.8.5",
"csv-stringify": "4.0",
"express-session": "^1.18.1",
"fastify": "^5.1.0",
"glob": "10.3.10",
"handlebars": "^4.7.7",
"http-status-codes": "^2.3.0",
"jsonpath": "^1.1.1",
"lodash": "4.17.21",
"luxon": "^1.28.1",
"migrate-mongo": "^11.0.0",
"mongoose": "^8.4.4",
"mongoose-unique-validator": "^5.0.1",
"multipipe": "^4.0.0",
"nodemailer": "6.9.9",
"passport": "0.6.0",
"passport-local": "1.0.0",
"path": "0.12",
"platform": "1.3",
"socket.io": "^4.8.0",
"socketio-sticky-session": "0.4",
"through2": "^4.0.2",
"typescript": "^5.4.5",
"uuid": "^10.0.0",
"winston": "^3.13.0",
"winston-daily-rotate-file": "^5.0.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"@eslint/js": "^9.20.0",
"@swc-node/register": "^1.9.2",
"@swc/cli": "^0.3.12",
"@swc/core": "^1.6.3",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/config": "^3.3.4",
"@types/express-session": "^1.18.0",
"@types/jsonpath": "^0.2.0",
"@types/lodash": "^4.14.176",
"@types/luxon": "^1.27.1",
"@types/migrate-mongo": "^10.0.4",
"@types/mocha": "^8.2.1",
"@types/mongoose-unique-validator": "^1.0.9",
"@types/multipipe": "^3.0.5",
"@types/nodemailer": "^6.4.17",
"@types/passport": "1.0.10",
"@types/passport-local": "^1.0.38",
"@types/platform": "^1.3.6",
"@types/q": "1.5",
"@types/through2": "^2.0.36",
"@types/uuid": "^9.0.8",
"@types/yargs": "^17.0.10",
"eslint": "^9.20.1",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-n": "^17.15.1",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-unicorn": "^57.0.0",
"globals": "^15.15.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"mocha": "^10.4.0",
"nodemon": "^3.1.4",
"nyc": "^17.0.0",
"prettier": "^3.5.1",
"sinon": "^18.0.0",
"typescript-eslint": "^8.24.1"
},
"lint-staged": {
"*.{js,ts}": "eslint --fix"
}
}