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",
|
|
|
|
"scripts": {
|
2021-12-29 00:37:50 +01:00
|
|
|
"build:ts": "npx tsc --build",
|
2021-12-29 15:04:13 +01:00
|
|
|
"build:babel": "npx babel obj/ts --out-dir obj/babel",
|
2021-12-28 22:56:56 +01:00
|
|
|
"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",
|
2021-12-29 00:37:50 +01:00
|
|
|
"build": "npm run release:any && npm run build:icon",
|
2021-12-29 14:19:01 +01:00
|
|
|
"debug": "node --trace-warnings obj/server.js",
|
2021-12-29 16:57:15 +01:00
|
|
|
"lint": "npx eslint \"src/**/*.ts\"",
|
|
|
|
"release:any": "npm run lint && npm run build:ts && npm run build:babel && npm run build:bundle && npm run build:exe"
|
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/plugin-transform-runtime": "^7.16.0",
|
|
|
|
"@babel/preset-env": "^7.16.0",
|
|
|
|
"@types/node": "^14.0.0",
|
|
|
|
"@types/ws": "^8.2.0",
|
2021-12-29 16:52:23 +01:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
|
|
|
"@typescript-eslint/parser": "^5.8.0",
|
2021-12-26 01:01:51 +01:00
|
|
|
"babel-plugin-source-map-support": "^2.1.0",
|
|
|
|
"browserify": "^17.0.0",
|
2021-12-29 16:52:23 +01:00
|
|
|
"bufferutil": "^4.0.0",
|
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",
|
2021-12-29 16:52:23 +01:00
|
|
|
"rcedit": "^3.0.0",
|
2021-12-26 17:44:16 +01:00
|
|
|
"typescript": "^4.5.0",
|
2021-12-29 16:52:23 +01:00
|
|
|
"utf-8-validate": "^5.0.0"
|
2021-12-26 01:01:51 +01:00
|
|
|
},
|
|
|
|
"babel": {
|
|
|
|
"presets": [
|
2021-12-29 16:52:23 +01:00
|
|
|
[ "@babel/env", { "targets": { "node": "14.0.0" }, "useBuiltIns": "usage", "corejs": "3.20.0" } ]
|
2021-12-26 01:01:51 +01:00
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"@babel/plugin-transform-runtime",
|
|
|
|
"source-map-support"
|
|
|
|
],
|
|
|
|
"sourceMaps": "inline"
|
|
|
|
},
|
|
|
|
"eslintConfig": {
|
2021-12-29 16:52:23 +01:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"project": "tsconfig.json"
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
|
|
|
],
|
2021-12-26 01:01:51 +01:00
|
|
|
"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",
|
2021-12-29 16:52:23 +01:00
|
|
|
"@typescript-eslint/no-var-requires": "error",
|
|
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-argument": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-return": "off"
|
2021-12-26 01:01:51 +01:00
|
|
|
}
|
|
|
|
}
|
2021-12-29 16:52:23 +01:00
|
|
|
}
|