mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Add all routes the web interface is served on to the express app and serve the index.html file on. Due to the index html not knowing which path it's hosted under, a path to the root of the web interface is replaced using string substitution from the master server.
56 lines
1.4 KiB
JSON
56 lines
1.4 KiB
JSON
{
|
|
"name": "@clusterio/master",
|
|
"description": "Implementation of Clusterio master server",
|
|
"author": "Hornwitser",
|
|
"license": "MIT",
|
|
"version": "2.0.0-alpha0",
|
|
"main": "master.js",
|
|
"scripts": {
|
|
"build": "webpack --env.production",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"bin": {
|
|
"clusteriomaster": "./master.js"
|
|
},
|
|
"keywords": [
|
|
"factorio"
|
|
],
|
|
"engines": {
|
|
"node": ">=10.16 <11 || >= 11.13"
|
|
},
|
|
"dependencies": {
|
|
"@clusterio/lib": "=2.0.0-alpha0",
|
|
"body-parser": "^1.18.2",
|
|
"compression": "^1.7.2",
|
|
"cookie-parser": "^1.4.3",
|
|
"express": "^4.16.2",
|
|
"express-fileupload": "1.2.0",
|
|
"fs-extra": "^8.1.0",
|
|
"jsonwebtoken": "^8.2.1",
|
|
"jszip": "^3.2.2",
|
|
"node-factorio-api": "^0.3.8",
|
|
"node-forge": "^0.10.0",
|
|
"set-blocking": "^2.0.0",
|
|
"ws": "^7.2.3",
|
|
"yargs": "^14.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@ant-design/icons": "^4.2.2",
|
|
"@babel/core": "^7.11.6",
|
|
"@babel/preset-react": "^7.10.4",
|
|
"antd": "^4.6.5",
|
|
"babel-loader": "^8.1.0",
|
|
"clean-webpack-plugin": "^3.0.0",
|
|
"css-loader": "^4.3.0",
|
|
"fast-deep-equal": "^3.1.3",
|
|
"null-loader": "^4.0.0",
|
|
"react": "^16.13.1",
|
|
"react-dom": "^16.13.1",
|
|
"react-router-dom": "^5.2.0",
|
|
"style-loader": "^1.2.1",
|
|
"webpack": "^4.44.2",
|
|
"webpack-cli": "^3.3.12",
|
|
"webpack-dev-middleware": "^3.7.2"
|
|
}
|
|
}
|