-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5f923e
commit 5fa7aac
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 |