Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit a8f6376

Browse files
author
Sean Hellum
committed
Make the Gitpod site a PWA
1 parent f08ff2d commit a8f6376

File tree

6 files changed

+580
-17
lines changed

6 files changed

+580
-17
lines changed

.gitpod.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM gitpod/workspace-full:latest
2+
3+
USER gitpod
4+
5+
RUN npm i -g gatsby-cli

.gitpod.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
14
ports:
2-
- port: 8000
5+
- port: 9000
36
onOpen: open-preview
47

58
tasks:
69
- init: cd plugins/gatsby-remark-gitpod && npm install
7-
- init: yarn && yarn build
8-
command: yarn dev --host 0.0.0.0
10+
- init: gatsby build
11+
command: gatsby serve
912

1013
vscode:
1114
extensions:

gatsby-config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@ module.exports = {
1919
path: `${__dirname}/src/docs`
2020
}
2121
},
22+
{
23+
resolve: `gatsby-plugin-manifest`,
24+
options: {
25+
name: `Gitpod`,
26+
short_name: `Gitpod`,
27+
start_url: `/`,
28+
background_color: `#f7f0eb`,
29+
theme_color: `#a2466c`,
30+
display: `standalone`,
31+
cache_busting_mode: 'none',
32+
icon: `src/resources/gitpod.svg`
33+
},
34+
},
35+
{
36+
resolve: 'gatsby-plugin-offline',
37+
options: {
38+
workboxConfig: {
39+
globPatterns: ['**/*']
40+
}
41+
}
42+
},
2243
{
2344
resolve: 'gatsby-source-filesystem',
2445
options: {

0 commit comments

Comments
 (0)