Skip to content

Commit

Permalink
feat: add gitpod config (gatsbyjs#15034)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenefftinge authored and pieh committed Jun 25, 2019
1 parent 7d1966a commit 3cc743c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM gitpod/workspace-full

RUN npm -g install gatsby-dev-cli
35 changes: 35 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -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.