mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Build and minify the Web UI using swc instead of babel, tsc and terser. This results in a significant speedup of the build process as it skips checking types and uses native code to do the minification. To prevent accidental type errors being introduced the TypeScript compiler is still used to perform type checking on the Web UI files. Due to peer dependency resolving shenanigans the swc/core package had to be added to the workspace, controller and web_ui to avoid pnpm creating a duplicate install of webpack that break the build.
61 lines
1.5 KiB
JSON
61 lines
1.5 KiB
JSON
{
|
|
"name": "@clusterio/controller",
|
|
"description": "Implementation of Clusterio controller",
|
|
"author": "Hornwitser",
|
|
"license": "MIT",
|
|
"version": "2.0.0-alpha.16",
|
|
"main": "dist/node/index.js",
|
|
"scripts": {
|
|
"prepare": "tsc --build && webpack-cli --env production",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"bin": {
|
|
"clusteriocontroller": "./dist/node/controller.js"
|
|
},
|
|
"keywords": [
|
|
"factorio"
|
|
],
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"dependencies": {
|
|
"@clusterio/lib": "^2.0.0-alpha.16",
|
|
"@sinclair/typebox": "^0.30.4",
|
|
"busboy": "^1.6.0",
|
|
"compression": "^1.7.4",
|
|
"express": "^4.18.2",
|
|
"fs-extra": "^11.1.1",
|
|
"jsonwebtoken": "^9.0.1",
|
|
"jszip": "^3.10.1",
|
|
"set-blocking": "^2.0.0",
|
|
"webpack-cli": "^5.1.4",
|
|
"winston": "^3.10.0",
|
|
"winston-daily-rotate-file": "^4.7.1",
|
|
"ws": "^8.13.0",
|
|
"yargs": "^17.7.2"
|
|
},
|
|
"devDependencies": {
|
|
"@clusterio/web_ui": "^2.0.0-alpha.16",
|
|
"@swc/core": "^1.4.0",
|
|
"@types/busboy": "^1.5.0",
|
|
"@types/compression": "^1.7.2",
|
|
"@types/express": "^4.17.17",
|
|
"@types/fs-extra": "^11.0.1",
|
|
"@types/jsonwebtoken": "^9.0.2",
|
|
"@types/node": "^20.4.5",
|
|
"@types/set-blocking": "^2.0.0",
|
|
"@types/ws": "^8.5.5",
|
|
"@types/yargs": "^17.0.24",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-router-dom": "^6.4.14",
|
|
"typescript": "^5.1.6",
|
|
"webpack": "^5.88.2",
|
|
"webpack-dev-middleware": "^6.1.1",
|
|
"webpack-merge": "^5.9.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|