From 9e62eb335de06b0ac815ad0c7074bd77527558f4 Mon Sep 17 00:00:00 2001 From: NickWang Date: Fri, 23 Dec 2022 19:06:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20codespace=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 10 ++++++++++ .devcontainer/workpro/devcontainer.json | 14 ++++++++++++++ package.json | 1 + 3 files changed, 25 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/workpro/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..5c7e669 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,10 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "waitFor": "postStartCommand", + "postStartCommand": ["npm install", "npm install cross-env -g"], + "customizations": { + "codespaces": { + "openFiles": ["examples/ding-dong-bot.ts"] + } + } +} diff --git a/.devcontainer/workpro/devcontainer.json b/.devcontainer/workpro/devcontainer.json new file mode 100644 index 0000000..7b3ebd1 --- /dev/null +++ b/.devcontainer/workpro/devcontainer.json @@ -0,0 +1,14 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "waitFor": "onCreateCommand", + "updateContentCommand": "npm install", + "postCreateCommand": "npm install cross-env -g", + "customizations": { + "codespaces": { + "openFiles": ["examples/ding-dong-bot.ts"] + } + }, + "containerEnv": { + "WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT": "true" + } +} diff --git a/package.json b/package.json index 45f3b45..2f78370 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "@chatie/tsconfig": "^4.6.3", "check-node-version": "^4.2.1", "is-pr": "^2.0.0", + "ts-node": "^10.9.1", "wechaty-puppet-mock": "^1.18.2" }, "git": { From e9dd7b27b04ef979a6884bbb9092a6ae61a8b425 Mon Sep 17 00:00:00 2001 From: NickWang Date: Fri, 23 Dec 2022 22:31:12 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=F0=9F=90=9B=20remove=20workpro=20sp?= =?UTF-8?q?ecific=20codespace=20setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 5 +++-- .devcontainer/workpro/devcontainer.json | 14 -------------- 2 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 .devcontainer/workpro/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5c7e669..0880dcd 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,8 @@ { "image": "mcr.microsoft.com/devcontainers/universal:2", - "waitFor": "postStartCommand", - "postStartCommand": ["npm install", "npm install cross-env -g"], + "waitFor": "postCreateCommand", + "updateContentCommand": "npm install", + "postCreateCommand": "npm install cross-env -g", "customizations": { "codespaces": { "openFiles": ["examples/ding-dong-bot.ts"] diff --git a/.devcontainer/workpro/devcontainer.json b/.devcontainer/workpro/devcontainer.json deleted file mode 100644 index 7b3ebd1..0000000 --- a/.devcontainer/workpro/devcontainer.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "image": "mcr.microsoft.com/devcontainers/universal:2", - "waitFor": "onCreateCommand", - "updateContentCommand": "npm install", - "postCreateCommand": "npm install cross-env -g", - "customizations": { - "codespaces": { - "openFiles": ["examples/ding-dong-bot.ts"] - } - }, - "containerEnv": { - "WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT": "true" - } -} From bcf843126e0e6f67f137e46d0722c0de8f4ace6d Mon Sep 17 00:00:00 2001 From: NickWang Date: Fri, 23 Dec 2022 22:44:00 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=F0=9F=90=9B=20set=20waitFor=20back?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0880dcd..1de5515 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,11 +1,12 @@ { "image": "mcr.microsoft.com/devcontainers/universal:2", - "waitFor": "postCreateCommand", + "waitFor": "onCreateCommand", "updateContentCommand": "npm install", "postCreateCommand": "npm install cross-env -g", "customizations": { "codespaces": { "openFiles": ["examples/ding-dong-bot.ts"] } - } + }, + }