Skip to content

Commit

Permalink
Update vue.
Browse files Browse the repository at this point in the history
  • Loading branch information
logue committed Apr 19, 2024
1 parent 667e203 commit ac9e283
Show file tree
Hide file tree
Showing 8 changed files with 847 additions and 668 deletions.
7 changes: 7 additions & 0 deletions .ncurc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"reject": [
"@codemirror/lang-vue",
"eslint",
"eslint-linter-browserify"
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ This component can handle bidirectional binding by `v-model` like a general Vue
| extensions | Extension[] | Includes enhancements to extend CodeMirror. |
| linter | LintSource | Set Linter. Enter a linter (eg `esLint([arbitrary rule])` function for `@codemirror/lang-javascript`, `jsonParseLinter()`function for`@codemirror/json`). See the sources for various language libraries for more information. |
| linterConfig | Object | see <https://codemirror.net/docs/ref/#lint.linter^config> |
| forceLinting | boolean | see <https://codemirror.net/docs/ref/#lint.forceLinting> |
| forceLinting | boolean | see <https://codemirror.net/docs/ref/#lint.forceLinting> |
| gutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. |
| gutterConfig | Object | see <https://codemirror.net/docs/ref/#lint.lintGutter^config> |
| tag | string | HTML tags used in the component. (Default is `div` tag.) |
Expand Down
60 changes: 30 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "vue-codemirror6",
"version": "1.2.5",
"version": "1.2.7",
"license": "MIT",
"description": "CodeMirror6 Component for vue2 and vue3.",
"keywords": [
Expand Down Expand Up @@ -79,48 +79,48 @@
"vue": "^2.7.14 || ^3.4"
},
"devDependencies": {
"@codemirror/lang-javascript": "^6.2.1",
"@codemirror/lang-javascript": "^6.2.2",
"@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-markdown": "^6.2.4",
"@codemirror/lang-markdown": "^6.2.5",
"@codemirror/lang-vue": "0.1.2",
"@tsconfig/node-lts": "^20.1.1",
"@types/node": "^20.11.16",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@vitejs/plugin-vue": "^5.0.3",
"@vue/compiler-sfc": "^3.4.15",
"@tsconfig/node-lts": "^20.1.3",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/compiler-sfc": "^3.4.23",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/tsconfig": "^0.5.1",
"@vueuse/core": "^10.7.2",
"bootstrap": "^5.3.2",
"eslint": "^8.56.0",
"@vueuse/core": "^10.9.0",
"bootstrap": "^5.3.3",
"eslint": "^8.57.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-linter-browserify": "^8.56.0",
"eslint-plugin-html": "^7.1.0",
"eslint-linter-browserify": "^8.57.0",
"eslint-plugin-html": "^8.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-n": "^17.2.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-tsdoc": "^0.2.17",
"eslint-plugin-vue": "latest",
"eslint-plugin-vuejs-accessibility": "^2.2.1",
"eslint-plugin-vuejs-accessibility": "^2.3.0",
"eslint-plugin-yaml": "^0.5.0",
"husky": "^9.0.10",
"lint-staged": "^15.2.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.70.0",
"typescript": "^5.3.3",
"vite": "^5.0.12",
"sass": "^1.75.0",
"typescript": "^5.4.5",
"vite": "^5.2.9",
"vite-plugin-banner": "^0.7.1",
"vite-plugin-checker": "^0.6.4",
"vite-plugin-dts": "^3.7.2",
"vue": "^3.4.15",
"vite-plugin-dts": "^3.8.3",
"vue": "^3.4.23",
"vue-eslint-parser": "^9.4.2",
"vue-markdown-wasm": "^0.3.14",
"vue-tsc": "^1.8.27"
"vue-markdown-wasm": "^0.4.0",
"vue-tsc": "^2.0.13"
},
"husky": {
"hooks": {
Expand All @@ -132,10 +132,10 @@
"*": "prettier -w -u"
},
"resolutions": {
"json5": "^2.2.3",
"postcss": "^8.4.31",
"semver": "^7.5.3",
"yaml": "^2.3.2",
"vite": ">5.0.5"
"json5": ">=2.2.3",
"lodash": ">=4.17.21",
"postcss": ">=8.4.31",
"semver": ">=7.5.3",
"yaml": ">=2.3.2"
}
}
26 changes: 16 additions & 10 deletions src-docs/DemoPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,22 @@ const linterAndCrossBindingDemoSrc = LinterAndCrossBindingDemoSrc.trim();
<code>disabled</code>
prop to if you want to use it as a simple syntax highlighter.
</p>
<code-mirror
v-model="readonlyAndDisabledDemoSrc"
:dark="dark"
:lang="vue()"
basic
wrap
readonly
/>
<h3>Demo</h3>
<readonly-and-disabled-demo :dark="dark" />
<div class="row">
<div class="col-sm">
<code-mirror
v-model="readonlyAndDisabledDemoSrc"
:dark="dark"
:lang="vue()"
basic
wrap
readonly
/>
</div>
<div class="col-sm">
<h3>Demo</h3>
<readonly-and-disabled-demo :dark="dark" />
</div>
</div>
</section>
</div>
</template>
2 changes: 1 addition & 1 deletion tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
"noEmit": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" },
],
{ "path": "./tsconfig.node.json" }
]
}
3 changes: 2 additions & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
],
"compilerOptions": {
"composite": true,
"noEmit": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"module": "ESNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"noEmit": true,
"types": ["node"]
}
}
Loading

0 comments on commit ac9e283

Please sign in to comment.