This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new cb951aa469 Support `Contribute with Gitpod`. (#1030)
cb951aa469 is described below
commit cb951aa4690df53c4abaa343bf5173651eb188e0
Author: Kerwin Bryant <[email protected]>
AuthorDate: Thu Aug 8 10:55:31 2024 +0800
Support `Contribute with Gitpod`. (#1030)
---
.devcontainer/devcontainer.json | 31 +++++++++++++++++++++++++++++++
.gitpod.yml | 23 +++++++++++++++++++++++
README.md | 1 +
3 files changed, 55 insertions(+)
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000000..a7e1eba0f0
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,31 @@
+{
+ "name": "Shenyu DevContainer",
+ "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
+ "features": {
+ "ghcr.io/devcontainers/features/node:1": {
+ "version": "20"
+ },
+ "ghcr.io/devcontainers/features/git-lfs:1.1.0": {}
+ },
+ "customizations": {
+ "vscode": {
+ "settings": {},
+ // same extensions as Gitpod, should match /.gitpod.yml
+ "extensions": [
+ "editorconfig.editorconfig",
+ "dbaeumer.vscode-eslint",
+ "stylelint.vscode-stylelint",
+ "DavidAnson.vscode-markdownlint",
+ "ms-azuretools.vscode-docker",
+ "GitHub.vscode-pull-request-github"
+ ]
+ }
+ },
+ "portsAttributes": {
+ "3000": {
+ "label": "Shenyu Website",
+ "onAutoForward": "notify"
+ }
+ },
+ "postCreateCommand": "node --version"
+}
diff --git a/.gitpod.yml b/.gitpod.yml
new file mode 100644
index 0000000000..a65a026d8a
--- /dev/null
+++ b/.gitpod.yml
@@ -0,0 +1,23 @@
+tasks:
+
+ - name: Run
+ command: |
+ gp sync-await setup
+ yarn start
+
+ - name: Setup
+ init: |
+ yarn install
+ command: |
+ gp sync-done setup
+ exit 0
+ openMode: split-right
+
+vscode:
+ extensions:
+ - editorconfig.editorconfig
+ - dbaeumer.vscode-eslint
+ - stylelint.vscode-stylelint
+ - DavidAnson.vscode-markdownlint
+ - ms-azuretools.vscode-docker
+ - GitHub.vscode-pull-request-github
diff --git a/README.md b/README.md
index 3698082f88..0f2de10325 100755
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
# Apache ShenYu Official Website

+[](https://gitpod.io/#https://github.com/apache/shenyu-website)
This project keeps all sources used for building up Apache ShenYu official
website which's served at <https://shenyu.apache.org/>.