Skip to content

Commit 3cc743c

Browse files
svenefftingepieh
authored andcommitted
feat: add gitpod config (gatsbyjs#15034)
1 parent 7d1966a commit 3cc743c

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.gitpod.Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM gitpod/workspace-full
2+
3+
RUN npm -g install gatsby-dev-cli

.gitpod.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
tasks:
4+
- init: >
5+
yarn run bootstrap &&
6+
cd ./examples/gatsbygram &&
7+
yarn install &&
8+
gatsby-dev --set-path-to-repo ../.. &&
9+
gatsby-dev --scan-once &&
10+
npx gatsby build &&
11+
cd ../.. &&
12+
touch /tmp/done.txt
13+
command: >
14+
yarn run watch --scope={gatsby,gatsby-image,gatsby-link}
15+
- openMode: split-right
16+
before: >
17+
cd ./examples/gatsbygram
18+
command: >
19+
gp await-port 8000 &&
20+
gatsby-dev --set-path-to-repo ../.. &&
21+
gatsby-dev
22+
- before: >
23+
cd ./examples/gatsbygram
24+
init: |
25+
until [ -f /tmp/done.txt ]
26+
do
27+
sleep 2
28+
done
29+
command: >
30+
npx gatsby develop
31+
ports:
32+
- port: 8000
33+
onOpen: open-preview
34+
- port: 31997 # yarn mutex
35+
onOpen: ignore

0 commit comments

Comments
 (0)