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

Make the Gitpod site a PWA #639

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
22 changes: 22 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,28 @@ module.exports = {
path: `${__dirname}/src/docs`
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gitpod`,
short_name: `Gitpod`,
start_url: `/`,
background_color: `#f7f0eb`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this also maybe use a light color from our website ?

theme_color: `#1aa6e4`,

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