From 96bf11b4aa31debd61f685856b59553c3f94f734 Mon Sep 17 00:00:00 2001 From: CodFrm Date: Tue, 7 Dec 2021 18:11:38 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=89=93=E5=8C=85=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .vscode/launch.json | 18 ------------------ .vscode/settings.json | 6 ------ scripts/pack.js | 4 ++-- 4 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 .vscode/launch.json delete mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 75567ce9..4e921304 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ scriptcat_firefox private .idea +.vscode diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 3748bf2d..00000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - // 使用 IntelliSense 了解相关属性。 - // 悬停以查看现有属性的描述。 - // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "jest debug", - "args": ["--runInBand"], - "cwd": "${workspaceFolder}", - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen", - "program": "${workspaceFolder}/node_modules/jest/bin/jest" - } - ] -} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index b4d807ab..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "cSpell.words": [ - "scriptcat" - ], - "jest.jestCommandLine": "jest" -} \ No newline at end of file diff --git a/scripts/pack.js b/scripts/pack.js index 1e769ae2..a9810234 100644 --- a/scripts/pack.js +++ b/scripts/pack.js @@ -14,9 +14,9 @@ str = fs.readFileSync("./src/apps/config.ts").toString(); str = str.replace(/ExtVersion = "(.*?)";/, 'ExtVersion = "' + pjson.version + '";'); fs.writeFileSync("./src/apps/config.ts", str); -execSync("npm run build"); +execSync("npm run build", { stdio: 'inherit' }); -execSync("npm run build-no-split"); +execSync("npm run build-no-split", { stdio: 'inherit' }); // 处理 ts.worker.js 和 editor.worker.js let list = fs.readdirSync("./build/scriptcat/src");