From fb5a90f7c18bc27dc0010b7bdaa8a56744dea5f4 Mon Sep 17 00:00:00 2001 From: suunavier Date: Wed, 13 Jan 2021 10:21:20 +0000 Subject: [PATCH 1/2] Fully automate dev setup with Gitpod This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. --- .gitpod.Dockerfile | 7 +++++++ .gitpod.yml | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 000000000..f8e49f267 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,7 @@ +FROM gitpod/workspace-full + +# Install custom tools, runtimes, etc. +# For example "bastet", a command-line tetris clone: +# RUN brew install bastet +# +# More information: https://www.gitpod.io/docs/config-docker/ diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..b70f534c5 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,6 @@ +image: + file: .gitpod.Dockerfile + +tasks: + - init: npm install + command: npm run start From fd531cee4f1ff0247b05fd02fcac69b2787921ef Mon Sep 17 00:00:00 2001 From: suunavier Date: Wed, 13 Jan 2021 10:24:36 +0000 Subject: [PATCH 2/2] by me --- .gitpod.yml | 6 +++--- package-lock.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index b70f534c5..ffaabd87d 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,6 +1,6 @@ -image: - file: .gitpod.Dockerfile - +ports: + - port: 3000 + onOpen: open-preview tasks: - init: npm install command: npm run start diff --git a/package-lock.json b/package-lock.json index 61b5dcb84..62496fd19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "papa-node-hello-000", + "name": "node-hello", "version": "1.0.0", "lockfileVersion": 1 }