Skip to content
Permalink
Browse files

feat: add gitpod config (#15034)

  • Loading branch information
svenefftinge authored and pieh committed Jun 25, 2019
1 parent 7d1966a commit 3cc743ccf511ba111790fb22da799f34f5123c66
Showing with 38 additions and 0 deletions.
  1. +3 −0 .gitpod.Dockerfile
  2. +35 −0 .gitpod.yml
@@ -0,0 +1,3 @@
FROM gitpod/workspace-full

RUN npm -g install gatsby-dev-cli
@@ -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

0 comments on commit 3cc743c

Please sign in to comment.
You can’t perform that action at this time.