Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rennzhang committed Mar 17, 2022
1 parent 7e7db8e commit c76f521
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = {
"no-plusplus": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/ban-ts-comment": "off",
"vue/multi-word-component-names": "warn",
},
overrides: [
{
Expand Down
20 changes: 20 additions & 0 deletions .pnpm-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"0 debug pnpm:scope": {
"selected": 1
},
"1 error pnpm": {
"errno": 1,
"code": "ELIFECYCLE",
"pkgid": "codemirror-editor-vue3@2.0.3",
"stage": "dev",
"script": "vite",
"pkgname": "codemirror-editor-vue3",
"err": {
"name": "pnpm",
"message": "codemirror-editor-vue3@2.0.3 dev: `vite`\nExit status 1",
"code": "ELIFECYCLE",
"stack": "pnpm: codemirror-editor-vue3@2.0.3 dev: `vite`\nExit status 1\n at EventEmitter.<anonymous> (/Users/renzhang/pnpm-global/5/node_modules/.pnpm/pnpm@6.24.4/node_modules/pnpm/dist/pnpm.cjs:103873:20)\n at EventEmitter.emit (events.js:315:20)\n at ChildProcess.<anonymous> (/Users/renzhang/pnpm-global/5/node_modules/.pnpm/pnpm@6.24.4/node_modules/pnpm/dist/pnpm.cjs:91802:18)\n at ChildProcess.emit (events.js:315:20)\n at maybeClose (internal/child_process.js:1048:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)"
}
},
"2 warn pnpm:global": " Local package.json exists, but node_modules missing, did you mean to install?"
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![GitHub forks](https://img.shields.io/github/forks/RennCheung/codemirror-editor-vue3)](https://github.com/RennCheung/codemirror-editor-vue3/network)
[![GitHub last commit](https://img.shields.io/github/last-commit/RennCheung/codemirror-editor-vue3)](https://github.com/RennCheung/codemirror-editor-vue3)
[![license](https://img.shields.io/github/license/RennCheung/codemirror-editor-vue3)](https://github.com/RennCheung/codemirror-editor-vue3)

### Introduction

The plug-in is based on [Codemirror](http://codemirror.net/) and only supports vue3. In addition to the modes supported by codemirror, this plugin also supports custom log modes.
Expand Down Expand Up @@ -96,6 +97,10 @@ for (; i < 9; i++) {
</script>
```

### Get codemirror instance object

[View code](https://renncheung.github.io/codemirror-editor-vue3/instructions/cminstance.html)

### use [Codemirror Static property](https://codemirror.net/doc/manual.html#api_static)

```js
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "codemirror-editor-vue3",
"description": "CodeMirror component for Vue3",
"version": "2.0.3",
"version": "2.0.4-beta",
"license": "MIT",
"files": [
"dist/codemirror-editor-vue3.es.js",
Expand Down Expand Up @@ -67,8 +67,8 @@
"devDependencies": {
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"@types/codemirror": "^5.60.5",
"@types/diff-match-patch": "^1.0.32",
"@types/codemirror": "^5.60.5",
"@types/node": "^16.11.13",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const viteCfg = defineConfig({
host: "::",
open: true,
https: false,
port: 3008,
},
resolve: {
alias: [
Expand Down

0 comments on commit c76f521

Please sign in to comment.