4d202714fd
-New npm scripts make syncing and running other explorer tasks easier, without needing to remember longer command syntax -Updated README to explain new npm scripts and give recommendations on their usage. Also update sample crontab section
50 lines
2.1 KiB
JSON
50 lines
2.1 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",
|
|
"sync-blocks": "sh ./scripts/sync.sh $(which node) update",
|
|
"sync-markets": "sh ./scripts/sync.sh $(which node) market",
|
|
"sync-peers": "sh ./scripts/sync.sh $(which node) peers",
|
|
"sync-masternodes": "sh ./scripts/sync.sh $(which node) masternodes",
|
|
"check-blocks": "sh ./scripts/sync.sh $(which node) check",
|
|
"reindex": "sh ./scripts/sync.sh $(which node) reindex",
|
|
"reindex-rich": "sh ./scripts/sync.sh $(which node) reindex-rich",
|
|
"reindex-txcount": "sh ./scripts/sync.sh $(which node) reindex-txcount",
|
|
"reindex-last": "sh ./scripts/sync.sh $(which node) reindex-last"
|
|
},
|
|
"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"
|
|
}
|
|
} |