Add vscode server debug
This commit is contained in:
parent
88e301fdec
commit
d431d39046
BIN
.vs/Haru/v17/.suo
Normal file
BIN
.vs/Haru/v17/.suo
Normal file
Binary file not shown.
24
.vscode/launch.json
vendored
Normal file
24
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Server",
|
||||||
|
"runtimeExecutable": "npm",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"--prefix",
|
||||||
|
"Server",
|
||||||
|
"run-script",
|
||||||
|
"debug"
|
||||||
|
],
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"skipFiles": [
|
||||||
|
"**/node_modules/**"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -15,7 +15,7 @@ It does not aim at being correct, fast or moddable but instead to be simple.
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
VSCode > Terminal > Run Task > npm > npm: install
|
VS2022 > Solution Explorer > Server > npm > install npm Packages
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
"author": "senko-san",
|
"author": "senko-san",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "NCSA",
|
"license": "NCSA",
|
||||||
"main": "Server/src/main.ts",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "tsc --build",
|
||||||
"build:babel": "npx babel src --extensions \".ts\" --out-dir obj/babel",
|
"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: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: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:icon": "cd node_modules/rcedit/bin && rcedit-x64.exe ../../../bin/Server.exe --set-icon ../../../assets/images/favicon.ico",
|
||||||
"build": "tsc --build",
|
"debug": "npm run build:babel && npm run build:bundle && node --trace-warnings obj/server.js",
|
||||||
"lint:fix": "npx eslint --fix \"./src/**/*.ts\"",
|
"lint:fix": "npx eslint --fix \"./src/**/*.ts\"",
|
||||||
"lint:check": "npx eslint \"./src/**/*.ts\"",
|
"lint:check": "npx eslint \"./src/**/*.ts\"",
|
||||||
"release:any": "npm run build:babel && npm run build:bundle && npm run build:exe",
|
"release:any": "npm run build:babel && npm run build:bundle && npm run build:exe",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user