👷 Add gitpod integration

This commit is contained in:
coyotte508 2021-03-24 21:43:38 +01:00
parent d266a2d90e
commit beb0a167de
4 changed files with 38 additions and 0 deletions

3
.gitpod.dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM gitpod/workspace-full
RUN npm install -g pnpm

29
.gitpod.yml Normal file
View file

@ -0,0 +1,29 @@
image:
file: .gitpod.dockerfile
tasks:
- init: pnpm install
command: cd viewer && pnpm serve
ports:
- port: 8080
onOpen: open-preview
github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
addComment: true
# add a "Review in Gitpod" button to pull requests (defaults to false)
addBadge: false
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: prebuilt-in-gitpod
vscode:
extensions:
- octref.vetur@0.32.0:03mwRhlVpWDul4qBChcVUA==

View file

@ -1,5 +1,7 @@
# Gaia Project
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/boardgamers/gaia-project)
Mono repo containing the viewer & the engine for Gaia Project
Checkout their READMEs:

View file

@ -18,5 +18,9 @@ if (process.argv.includes("lib")) {
module.exports = {
lintOnSave: false,
outputDir: path.join(__dirname, "dist/app"),
devServer: {
// For gitpod, it needs to be disabled
disableHostCheck: true,
},
};
}