From d055b9f2b8b10d277be343cac0ff2c8deb0e7734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= <sumneko@hotmail.com> Date: Mon, 27 Feb 2023 19:24:44 +0800 Subject: [PATCH] update building script in Windows --- .vscode/tasks.json | 3 +++ buildClient.bat | 15 +++++++++++++++ client/package.json | 3 +-- node_modules/.package-lock.json | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 buildClient.bat diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 547df14..f1dc183 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,6 +4,9 @@ { "type": "shell", "command": "./buildClient.sh", + "windows": { + "command": ".\\buildClient.bat" + }, "group": { "kind": "build", "isDefault": true diff --git a/buildClient.bat b/buildClient.bat new file mode 100644 index 0000000..f6ce14b --- /dev/null +++ b/buildClient.bat @@ -0,0 +1,15 @@ +@echo off + +echo Building VS Code Extension Client... + +echo Compiling TypeScript... +cd client +call npm i +call npm run build + +echo Building Addon Manager WebVue... +cd webvue +call npm i +call npm run build + +echo Build complete! diff --git a/client/package.json b/client/package.json index 413fc21..c568495 100644 --- a/client/package.json +++ b/client/package.json @@ -7,8 +7,7 @@ "publisher": "vscode", "scripts": { "lint": "npx eslint src/", - "build": "tsc", - "postbuild": "cp package*.json out && cd out && npm ci --omit=dev" + "build": "tsc" }, "repository": { "type": "git", diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 0b5f2cf..fb689ea 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,6 +1,6 @@ { "name": "lua", - "version": "3.6.11", + "version": "3.6.12", "lockfileVersion": 3, "requires": true, "packages": {} -- GitLab