浏览代码

Add gitpod.

dom111 2 年之前
父节点
当前提交
05eec105d8
共有 2 个文件被更改,包括 20 次插入0 次删除
  1. 13 0
      .gitpod.yml
  2. 7 0
      README.md

+ 13 - 0
.gitpod.yml

@@ -0,0 +1,13 @@
+tasks:
+  - init: |
+      docker-compose build --pull webdav
+    command: |
+      docker-compose up -d webdav
+  - init: |
+      npm install
+    command: |
+      npm run watch
+
+ports:
+  - port: 8080
+    onOpen: open-preview

+ 7 - 0
README.md

@@ -32,6 +32,13 @@ language in [UI.js](src/lib/UI/UI.js).
 
 ## Implementations
 
+### Gitpod demo
+
+[Available here](https://gitpod.io/#https://github.com/dom111/webdav-js), wait for the Docker build to complete, and you
+will be able to interact with the Apache demo, make changes and contribute!
+
+[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/dom111/webdav-js)
+
 ### Bookmarklet:
 
 `javascript:["https://cdn.jsdelivr.net/gh/dom111/webdav-js/assets/css/style-min.css","https://cdn.jsdelivr.net/gh/dom111/webdav-js/src/webdav-min.js"].forEach((function(e,s){/css$/.test(e)?((s=document.createElement("link")).href=e,s.rel="stylesheet"):(s=document.createElement("script")).src=e,document.head.appendChild(s)}));`