Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add gitpod config #15034

Merged
merged 1 commit into from
Jun 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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