From 45d99656619da3cc5b7bbcf0cb6c892c01dc89a4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sun, 27 Feb 2022 21:47:27 +0800 Subject: [PATCH] chore: add gitpod config. --- .gitpod.yml | 6 ++++++ README.md | 1 + 2 files changed, 7 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..ac0732ece --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,6 @@ +ports: + - port: 3000 + onOpen: open-preview +tasks: + - init: npm install + command: npm run build && npm run start \ No newline at end of file diff --git a/README.md b/README.md index e4c2a96c3..f19fdc8b4 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codemirror/file/README.md) [![npm version](https://img.shields.io/npm/v/@uiw/react-codemirror.svg)](https://www.npmjs.com/package/@uiw/react-codemirror) [![Coverage Status](https://uiwjs.github.io/react-codemirror/coverage/badges.svg)](https://uiwjs.github.io/react-codemirror/coverage/lcov-report/) +[![Open in Gitpod](https://shields.io/badge/Open%20in-Gitpod-green?logo=Gitpod)](https://gitpod.io/#https://github.com/uiwjs/react-codemirror) CodeMirror component for React. Demo Preview: [@uiwjs.github.io/react-codemirror](https://uiwjs.github.io/react-codemirror/)