2021-12-26 01:01:51 +01:00
|
|
|
{
|
2021-12-26 17:44:16 +01:00
|
|
|
"name": "haru",
|
2021-12-26 01:01:51 +01:00
|
|
|
"author": "senko-san",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"license": "NCSA",
|
2021-12-28 22:56:56 +01:00
|
|
|
"main": "Server/src/main.ts",
|
2021-12-26 01:01:51 +01:00
|
|
|
"scripts": {
|
2021-12-28 22:56:56 +01:00
|
|
|
"build:babel": "npx babel src --extensions \".ts\" --out-dir obj/babel",
|
|
|
|
"build:bundle": "npx browserify --debug --node obj/babel/main.js > obj/server.js",
|
|
|
|
"build:exe": "npx nexe -t x64-14.15.3 -i obj/server.js -o bin/Server.exe",
|
|
|
|
"build:icon": "cd node_modules/rcedit/bin && rcedit-x64.exe ../../../bin/Server.exe --set-icon ../../../assets/images/favicon.ico",
|
|
|
|
"build": "tsc --build",
|
2021-12-26 01:01:51 +01:00
|
|
|
"lint:fix": "npx eslint --fix \"./src/**/*.ts\"",
|
|
|
|
"lint:check": "npx eslint \"./src/**/*.ts\"",
|
2021-12-28 22:56:56 +01:00
|
|
|
"release:any": "npm run build:babel && npm run build:bundle && npm run build:exe",
|
|
|
|
"release:win": "npm run release:any && npm run build:icon"
|
2021-12-26 01:01:51 +01:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"source-map-support": "^0.5.0",
|
|
|
|
"ws": "^8.4.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@babel/cli": "^7.16.0",
|
|
|
|
"@babel/core": "^7.16.0",
|
|
|
|
"@babel/eslint-parser": "^7.16.0",
|
|
|
|
"@babel/plugin-transform-runtime": "^7.16.0",
|
|
|
|
"@babel/preset-env": "^7.16.0",
|
|
|
|
"@babel/preset-typescript": "^7.16.0",
|
|
|
|
"@types/node": "^14.0.0",
|
|
|
|
"@types/ws": "^8.2.0",
|
|
|
|
"babel-plugin-source-map-support": "^2.1.0",
|
|
|
|
"browserify": "^17.0.0",
|
2021-12-26 17:44:16 +01:00
|
|
|
"bufferutil": "^4.0.5",
|
2021-12-26 01:01:51 +01:00
|
|
|
"core-js": "^3.20.0",
|
|
|
|
"eslint": "^8.5.0",
|
2021-12-28 19:36:49 +01:00
|
|
|
"nexe": "^4.0.0-beta.19",
|
|
|
|
"rcedit": "^3.0.1",
|
2021-12-26 17:44:16 +01:00
|
|
|
"typescript": "^4.5.0",
|
2021-12-26 01:01:51 +01:00
|
|
|
"utf-8-validate": "^5.0.7"
|
|
|
|
},
|
|
|
|
"babel": {
|
|
|
|
"presets": [
|
2021-12-26 17:20:59 +01:00
|
|
|
[ "@babel/env", { "targets": { "node": "14.0.0" }, "useBuiltIns": "usage", "corejs": "3.20.0" } ],
|
2021-12-26 01:01:51 +01:00
|
|
|
"@babel/preset-typescript"
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"@babel/plugin-transform-runtime",
|
|
|
|
"@babel/plugin-transform-typescript",
|
|
|
|
"source-map-support"
|
|
|
|
],
|
|
|
|
"sourceMaps": "inline"
|
|
|
|
},
|
|
|
|
"eslintConfig": {
|
|
|
|
"parser": "@babel/eslint-parser",
|
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"rules": {
|
2021-12-26 17:20:59 +01:00
|
|
|
"brace-style": [ "error", "allman" ],
|
|
|
|
"indent": [ "error", 4, { "VariableDeclarator": 0, "SwitchCase": 1 } ],
|
|
|
|
"quotes": [ "error", "double" ],
|
|
|
|
"semi": [ "error", "always" ],
|
2021-12-26 01:01:51 +01:00
|
|
|
"no-var": "error",
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"no-undef": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|