diff --git a/.vs/Haru/v17/.suo b/.vs/Haru/v17/.suo new file mode 100644 index 0000000..eab8fd5 Binary files /dev/null and b/.vs/Haru/v17/.suo differ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..6f02eec --- /dev/null +++ b/.vscode/launch.json @@ -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/**" + ] + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index d6b24d1..e367d30 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ It does not aim at being correct, fast or moddable but instead to be simple. ## Setup -VSCode > Terminal > Run Task > npm > npm: install +VS2022 > Solution Explorer > Server > npm > install npm Packages ## Build diff --git a/Server/package.json b/Server/package.json index 88b8753..b037414 100644 --- a/Server/package.json +++ b/Server/package.json @@ -3,13 +3,13 @@ "author": "senko-san", "version": "1.0.0", "license": "NCSA", - "main": "Server/src/main.ts", "scripts": { + "build": "tsc --build", "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", + "debug": "npm run build:babel && npm run build:bundle && node --trace-warnings obj/server.js", "lint:fix": "npx eslint --fix \"./src/**/*.ts\"", "lint:check": "npx eslint \"./src/**/*.ts\"", "release:any": "npm run build:babel && npm run build:bundle && npm run build:exe",