-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
128 lines (128 loc) · 6.36 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
{
"name": "fastify-boilerplate",
"version": "1.0.0",
"description": "Node.js RESTful API boilerplate using Docker, Docker Compose, Fastify",
"author": "Dwi Rizki Manggala Putra <[email protected]>",
"maintainers": [
{
"name": "Dwi Rizki Manggala Putra",
"email": "[email protected]",
"url": "https://drmp13.github.io"
}
],
"config": {
"APP_PROTOCOL": "https",
"APP_HOST": "127.0.0.1",
"APP_PORT": "8080",
"SEQUELIZERC_STRING": "/usr/src/app/_build/lib/connection/database"
},
"main": "_build/index.js",
"scripts": {
"prebuild": "rm -rf /usr/src/app/_build/",
"prebuild_backup": "rm -rf /usr/src/app/_build/ && node -p \"'export const name = ' + JSON.stringify(require('./package.json').name) + ';export const NAME = ' + JSON.stringify(require('./package.json').name) + ';'\" > src/package.ts",
"build": "esbuild-node-tsc --resolveJsonModule",
"test": "npm run build && cross-env NODE_ENV=test nyc --reporter=text mocha --timeout 20000 --exit _build/test",
"hit": "npx autocannon --connections 10 --pipelining 1 --duration 10 --method $npm_config_X_METHOD $npm_package_config_APP_PROTOCOL://$npm_package_config_APP_HOST:$npm_package_config_APP_PORT/$npm_config_X_ENDPOINT",
"production": "cross-env NODE_ENV=production pm2 start _build/index.js",
"staging": "cross-env NODE_ENV=staging nodemon",
"development": "cross-env NODE_ENV=development nodemon",
"localhost": "cross-env NODE_ENV=localhost nodemon",
"start": "npm run build && npm run $NODE_ENV",
"standard:fix": "standard --fix",
"sequelize:migrate": "npx sequelize-cli db:migrate --config $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/config.js --migrations-path $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/migrations --env=$npm_config_X_ENV",
"sequelize:migrate:undo": "npx sequelize-cli db:migrate:undo --config $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/config.js --migrations-path $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/migrations --env=$npm_config_X_ENV",
"sequelize:migrate:undo:all": "npx sequelize-cli db:migrate:undo:all --config $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/config.js --migrations-path $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/migrations --env=$npm_config_X_ENV",
"sequelize:migrate:status": "npx sequelize-cli db:migrate:status --config $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/config.js --migrations-path $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/migrations --env=$npm_config_X_ENV",
"sequelize:seed": "npx sequelize-cli db:seed --config $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/config.js --seeders-path $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/seeders --env=$npm_config_X_ENV",
"sequelize:seed:undo": "npx sequelize-cli db:seed:undo --config $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/config.js --seeders-path $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/seeders --env=$npm_config_X_ENV",
"sequelize:seed:all": "npx sequelize-cli db:seed:all --config $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/config.js --seeders-path $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/seeders --env=$npm_config_X_ENV",
"sequelize:seed:undo:all": "npx sequelize-cli db:seed:undo:all --config $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/config.js --seeders-path $npm_package_config_SEQUELIZERC_STRING/$npm_config_X_DBNAME/$npm_config_X_INSTANCE/seeders --env=$npm_config_X_ENV"
},
"devDependencies": {
"cross-env": "^7.0.3",
"nodemon": "^2.0.15",
"standard": "^16.0.4",
"pino-pretty": "^7.5.3",
"prettier": "^2.5.1",
"typescript": "^4.6.2",
"tsconfig-paths": "^3.14.0",
"tap": "^16.0.0",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-import": "^2.25.4",
"eslint-import-resolver-typescript": "^2.5.0",
"@types/node": "^17.0.21",
"@types/tap": "^15.0.6",
"@types/module-alias": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"esbuild": "^0.14.26",
"esbuild-node-tsc": "^1.8.5"
},
"dependencies": {
"@hapi/boom": "9.1.4",
"@hapi/hoek": "^9.2.1",
"@sentry/node": "^6.18.1",
"@types/mocha": "^9.1.0",
"ajv": "^8.10.0",
"ajv-errors": "^3.0.0",
"ajv-formats": "^2.1.1",
"ajv-keywords": "^5.1.0",
"amqplib": "^0.8.0",
"autocannon": "^7.8.0",
"axios": "^0.26.0",
"bcryptjs": "^2.4.3",
"chai": "^4.3.6",
"chai-http": "^4.3.0",
"confidence": "^5.0.1",
"config": "^3.3.7",
"dotenv": "^16.0.0",
"elastic-apm-node": "^3.29.0",
"fastify": "^3.27.2",
"fastify-auth": "^1.1.0",
"fastify-cors": "^6.0.3",
"fastify-file-upload": "^3.0.1",
"fastify-helmet": "^7.0.1",
"fastify-jwt": "^4.1.3",
"fastify-mongodb": "^4.1.1",
"fastify-multipart": "^5.3.1",
"fastify-plugin": "^3.0.1",
"fastify-postgres": "^3.0.1",
"fastify-static": "^4.6.1",
"fastify-swagger": "^5.0.0",
"formidable": "^2.0.1",
"handlebars": "^4.7.7",
"http-errors": "^2.0.0",
"jsonwebtoken": "^8.5.1",
"mocha": "^9.2.0",
"module-alias": "^2.2.0",
"mongoose": "^6.2.2",
"nodemailer": "^6.7.2",
"nyc": "^15.1.0",
"pg": "^8.7.3",
"pino-pretty": "^7.5.3",
"piscina": "^3.2.0",
"pm2": "^5.2.0",
"request": "^2.88.2",
"request-promise": "^4.2.6",
"sequelize": "^6.16.1",
"sequelize-cli": "^6.4.1",
"supertest": "^6.2.2",
"uuid": "^8.3.2"
},
"_moduleAliases": {
"@": "_build",
"@root": ".",
"@config": "_build/config",
"@utils": "_build/utils",
"@lib": "_build/lib",
"@helpers": "_build/lib/helpers",
"@rpc": "_build/lib/rpc",
"@connection": "_build/lib/connection",
"@authentication": "_build/lib/authentication",
"@api": "_build/app/api",
"@multithreading": "_build/app/multithreading",
"@test": "_build/test"
}
}