forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add gitpod config (gatsbyjs#15034)
- Loading branch information
1 parent
7d1966a
commit 3cc743c
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |