Skip to content

Commit c76f521

Browse files
committed
merge
1 parent 7e7db8e commit c76f521

File tree

5 files changed

+29
-2
lines changed

5 files changed

+29
-2
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module.exports = {
3636
"no-plusplus": "off",
3737
"no-underscore-dangle": "off",
3838
"@typescript-eslint/ban-ts-comment": "off",
39+
"vue/multi-word-component-names": "warn",
3940
},
4041
overrides: [
4142
{

.pnpm-debug.log

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"0 debug pnpm:scope": {
3+
"selected": 1
4+
},
5+
"1 error pnpm": {
6+
"errno": 1,
7+
"code": "ELIFECYCLE",
8+
"pkgid": "codemirror-editor-vue3@2.0.3",
9+
"stage": "dev",
10+
"script": "vite",
11+
"pkgname": "codemirror-editor-vue3",
12+
"err": {
13+
"name": "pnpm",
14+
"message": "codemirror-editor-vue3@2.0.3 dev: `vite`\nExit status 1",
15+
"code": "ELIFECYCLE",
16+
"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)"
17+
}
18+
},
19+
"2 warn pnpm:global": " Local package.json exists, but node_modules missing, did you mean to install?"
20+
}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![GitHub forks](https://img.shields.io/github/forks/RennCheung/codemirror-editor-vue3)](https://github.com/RennCheung/codemirror-editor-vue3/network)
44
[![GitHub last commit](https://img.shields.io/github/last-commit/RennCheung/codemirror-editor-vue3)](https://github.com/RennCheung/codemirror-editor-vue3)
55
[![license](https://img.shields.io/github/license/RennCheung/codemirror-editor-vue3)](https://github.com/RennCheung/codemirror-editor-vue3)
6+
67
### Introduction
78

89
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.
@@ -96,6 +97,10 @@ for (; i < 9; i++) {
9697
</script>
9798
```
9899

100+
### Get codemirror instance object
101+
102+
[View code](https://renncheung.github.io/codemirror-editor-vue3/instructions/cminstance.html)
103+
99104
### use [Codemirror Static property](https://codemirror.net/doc/manual.html#api_static)
100105

101106
```js

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "codemirror-editor-vue3",
33
"description": "CodeMirror component for Vue3",
4-
"version": "2.0.3",
4+
"version": "2.0.4-beta",
55
"license": "MIT",
66
"files": [
77
"dist/codemirror-editor-vue3.es.js",
@@ -67,8 +67,8 @@
6767
"devDependencies": {
6868
"@commitlint/cli": "^16.1.0",
6969
"@commitlint/config-conventional": "^16.0.0",
70-
"@types/codemirror": "^5.60.5",
7170
"@types/diff-match-patch": "^1.0.32",
71+
"@types/codemirror": "^5.60.5",
7272
"@types/node": "^16.11.13",
7373
"@typescript-eslint/eslint-plugin": "^5.7.0",
7474
"@typescript-eslint/parser": "^5.7.0",

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const viteCfg = defineConfig({
1212
host: "::",
1313
open: true,
1414
https: false,
15+
port: 3008,
1516
},
1617
resolve: {
1718
alias: [

0 commit comments

Comments
 (0)