Files
purple-explorer/package.json
T
joeuhren f948e29085 Cluster updates + add new start/stop options
-More graceful shutdown of node cluster on 'npm stop' with better cleanup of resources on exit
-Added new stop_explorer.sh script which looks up the explorer port # via settings file and closes the application running on that port # instead of saving and killing the process by pid as it did before
-Added support for pm2 and forever using 'npm run start-pm2' and 'npm run start-forever' respectively
-pm2 is automatically installed when starting with 'npm run start-pm2' if it is not already installed
-forever is automatically installed when starting with 'npm run start-forever' if it is not already installed
-Updated existing npm commands in package.json by replacing hardcoded 'node' with '$(which node)'
-/path/to/nodejs changed to /path/to/node in the /settings.json.template, /lib/settings.js and /scripts/sync.js files
-README updates:
 -Added a new 'Start/Stop the Explorer' section
 -Added PM2 instructions to the 'Start/Stop the Explorer' section
 -Moved Start/Stop Explorer instructions to the 'Start/Stop the Explorer' section
 -Moved Forever instructions to the 'Start/Stop the Explorer' section
 -/path/to/nodejs changed to /path/to/node
 -Some additional small misc fixes
2021-04-17 13:26:05 -06:00

41 lines
1.5 KiB
JSON

{
"name": "explorer",
"version": "1.99.0",
"private": true,
"scripts": {
"start": "npm run prestart && $(which node) --stack-size=10000 ./bin/cluster",
"stop": "sh ./scripts/stop_explorer.sh",
"start-instance": "npm run prestart && $(which node) --stack-size=10000 ./bin/instance",
"start-forever": "npm run prestart \"forever\" && $(which node) $(which forever) start ./bin/cluster",
"stop-forever": "$(which node) $(which forever) stop ./bin/cluster",
"start-pm2": "npm run prestart \"pm2\" && $(which pm2) start ./bin/instance -i 0 --node-args=\"--stack-size=10000\"",
"start-pm2-debug": "npm run prestart \"pm2\" && $(which pm2) start ./bin/instance -i 0 --node-args=\"--stack-size=10000\" && $(which pm2) logs",
"stop-pm2": "$(which pm2) stop ./bin/instance",
"test": "$(which node) ./node_modules/jasmine/bin/jasmine.js test/*Spec.js",
"prestart": "sh ./scripts/prestart.sh"
},
"dependencies": {
"express": ">=4.17.1",
"async": "^3.1.0",
"intl": "^1.2.5",
"serve-favicon": "^2.5.0",
"morgan": ">=1.9.1",
"cookie-parser": "~1.4.4",
"body-parser": "~1.19.0",
"debug": ">=4.1.1",
"pug": "~3.0.0",
"postman-request": "2.88.1-postman.27",
"jsonminify": "0.4.1",
"jstransformer-markdown-it": "^2.1.0",
"mongodb": "3.6.3",
"mongoose": "5.11.4",
"qr-image": "~3.2.0",
"sass": "1.30.0",
"json": "10.0.0",
"strip-json-comments-cli": "1.0.1",
"bad-words": "3.0.4"
},
"devDependencies": {
"jasmine": "~3.6.3"
}
}