diff --git a/.gitpod.dockerfile b/.gitpod.dockerfile new file mode 100644 index 00000000..d6c9888b --- /dev/null +++ b/.gitpod.dockerfile @@ -0,0 +1,3 @@ +FROM gitpod/workspace-full + +RUN npm install -g pnpm \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..b7d44e7e --- /dev/null +++ b/.gitpod.yml @@ -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== diff --git a/README.md b/README.md index 0db18fea..f1be8369 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/viewer/vue.config.js b/viewer/vue.config.js index 60d8efb5..36e71116 100644 --- a/viewer/vue.config.js +++ b/viewer/vue.config.js @@ -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, + }, }; }