Added scripts to install, start and stop all bots at once

This commit is contained in:
2018-11-03 08:52:40 +11:00
parent eef8686f3b
commit e5c50bf2bc

45
package.json Normal file
View File

@@ -0,0 +1,45 @@
{
"name": "sanctum",
"version": "1.0.0",
"description": "",
"main": "",
"scripts": {
"installcity": "cd SERVER_City && npm install",
"installadam": "cd ADAM && npm install",
"installkamala": "cd ADAM_Kamala && npm install",
"installcptmon": "cd ADAM_CptMon && npm install",
"installdairo": "cd ADAM_Dairo && npm install",
"installlibrarian": "cd BOT_Librarian && npm install",
"installmori": "cd BOT_Mori && npm install",
"startcity": "cd SERVER_City && npm start",
"startadam": "cd ADAM && npm start",
"startkamala": "cd ADAM_Kamala && npm start",
"startcptmon": "cd ADAM_CptMon && npm start",
"startdairo": "cd ADAM_Dairo && npm start",
"startlibrarian": "cd BOT_Librarian && npm start",
"startmori": "cd BOT_Mori && npm start",
"restartcity": "cd SERVER_City && npm restart",
"restartadam": "cd ADAM && npm restart",
"restartkamala": "cd ADAM_Kamala && npm restart",
"restartcptmon": "cd ADAM_CptMon && npm restart",
"restartdairo": "cd ADAM_Dairo && npm restart",
"restartlibrarian": "cd BOT_Librarian && npm restart",
"restartmori": "cd BOT_Mori && npm restart",
"stopcity": "cd SERVER_City && npm stop",
"stopadam": "cd ADAM && npm stop",
"stopkamala": "cd ADAM_Kamala && npm stop",
"stopcptmon": "cd ADAM_CptMon && npm stop",
"stopdairo": "cd ADAM_Dairo && npm stop",
"stoplibrarian": "cd BOT_Librarian && npm stop",
"stopmori": "cd BOT_Mori && npm stop",
"installall": "npm install && concurrently \"cd Shared && npm install\" \"npm run installcity\" \"npm run installadam\" \"npm run installkamala\" \"npm run installcptmon\" \"npm run installdairo\" \"npm run installlibrarian\" \"npm run installmori\"",
"startall": "concurrently \"npm run startcity\" \"npm run startadam\" \"npm run startkamala\" \"npm run startcptmon\" \"npm run startdairo\" \"npm run startlibrarian\" \"npm run startmori\"",
"restartall": "concurrently \"npm run restartcity\" \"npm run restartadam\" \"npm run restartkamala\" \"npm run restartcptmon\" \"npm run restartdairo\" \"npm run restartlibrarian\" \"npm run restartmori\"",
"stopall": "concurrently \"npm run stopcity\" \"npm run stopadam\" \"npm run stopkamala\" \"npm run stopcptmon\" \"npm run stopdairo\" \"npm run stoplibrarian\" \"npm run stopmori\""
},
"author": "",
"license": "ISC",
"devDependencies": {
"concurrently": "^4.0.1"
}
}