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

Commit

Permalink
Make the Gitpod site a PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hellum committed May 16, 2020
1 parent f08ff2d commit d375429
Show file tree
Hide file tree
Showing 6 changed files with 580 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM gitpod/workspace-full:latest

USER gitpod

RUN npm i -g gatsby-cli
9 changes: 6 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
image:
file: .gitpod.Dockerfile

ports:
- port: 8000
- port: 9000
onOpen: open-preview

tasks:
- init: cd plugins/gatsby-remark-gitpod && npm install
- init: yarn && yarn build
command: yarn dev --host 0.0.0.0
- init: yarn && gatsby build
command: gatsby serve

vscode:
extensions:
Expand Down
21 changes: 21 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,27 @@ module.exports = {
path: `${__dirname}/src/docs`
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gitpod`,
short_name: `Gitpod`,
start_url: `/`,
background_color: `#f7f0eb`,
theme_color: `#a2466c`,
display: `standalone`,
cache_busting_mode: 'none',
icon: `src/resources/gitpod.svg`
},
},
{
resolve: 'gatsby-plugin-offline',
options: {
workboxConfig: {
globPatterns: ['**/*']
}
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
Expand Down
Loading

0 comments on commit d375429

Please sign in to comment.