diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000000000..08c05060f6595 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,3 @@ +FROM gitpod/workspace-full + +RUN npm -g install gatsby-dev-cli diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000000000..7ae01c1b105da --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,35 @@ +image: + file: .gitpod.Dockerfile +tasks: + - init: > + yarn run bootstrap && + cd ./examples/gatsbygram && + yarn install && + gatsby-dev --set-path-to-repo ../.. && + gatsby-dev --scan-once && + npx gatsby build && + cd ../.. && + touch /tmp/done.txt + command: > + yarn run watch --scope={gatsby,gatsby-image,gatsby-link} + - openMode: split-right + before: > + cd ./examples/gatsbygram + command: > + gp await-port 8000 && + gatsby-dev --set-path-to-repo ../.. && + gatsby-dev + - before: > + cd ./examples/gatsbygram + init: | + until [ -f /tmp/done.txt ] + do + sleep 2 + done + command: > + npx gatsby develop +ports: + - port: 8000 + onOpen: open-preview + - port: 31997 # yarn mutex + onOpen: ignore