From 15299b5172c1318f197c8b740f36ce5ea5e2a9c6 Mon Sep 17 00:00:00 2001 From: Wayne Irwin Date: Sun, 10 Mar 2019 15:31:58 +1100 Subject: [PATCH 1/4] Add a .gitpod.yml file This allows us to pin the base docker image so we aren't effected by changes that gitpod make. --- .gitpod.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..8beef775 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,3 @@ +image: node:11.10.1-alpine +ports: +- port: 8080 From 6d5b02e15df4be2c040bb660e0a33b5331fee98d Mon Sep 17 00:00:00 2001 From: stackerdude Date: Sun, 10 Mar 2019 05:20:51 +0000 Subject: [PATCH 2/4] Add Test runner to launch config This allows for breakpoint to be set within the test (spec) files. Should make debugging easier --- .theia/launch.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .theia/launch.json diff --git a/.theia/launch.json b/.theia/launch.json new file mode 100644 index 00000000..ad1cd356 --- /dev/null +++ b/.theia/launch.json @@ -0,0 +1,19 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Run All Tests", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "args": ["--runInBand"], + "internalConsoleOptions": "neverOpen", + "windows": { + "program": "${workspaceFolder}/node_modules/jest/bin/jest", + }, + }, + ] +} + From d67c61c1a2f1c6f6a7549fa0f6d22598afbc1dff Mon Sep 17 00:00:00 2001 From: stackerdude Date: Wed, 13 Mar 2019 06:31:32 +0000 Subject: [PATCH 3/4] Auto install dependencies on environment startup --- .gitpod.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitpod.yml b/.gitpod.yml index 8beef775..cf31075f 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,3 +1,6 @@ image: node:11.10.1-alpine ports: - port: 8080 + +tasks: + - command: "./go install" From f96d10cae9a0c23249a893d7281cff4dfd3dddb6 Mon Sep 17 00:00:00 2001 From: stackerdude Date: Wed, 13 Mar 2019 06:44:53 +0000 Subject: [PATCH 4/4] Add Extra Launch Config --- .theia/launch.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.theia/launch.json b/.theia/launch.json index ad1cd356..6dbada55 100644 --- a/.theia/launch.json +++ b/.theia/launch.json @@ -14,6 +14,16 @@ "program": "${workspaceFolder}/node_modules/jest/bin/jest", }, }, + { + "type": "node", + "request": "launch", + "name": "Run All Tests in Dev Mode", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "args": ["--runInBand", "--watchAll"], + "internalConsoleOptions": "neverOpen", + "windows": { + "program": "${workspaceFolder}/node_modules/jest/bin/jest", + }, + }, ] } -