Skip to content

Commit 4c80c7b

Browse files
committed
feat: support vue3
1 parent fcfa6ce commit 4c80c7b

File tree

11 files changed

+673
-2223
lines changed

11 files changed

+673
-2223
lines changed

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry "https://registry.yarnpkg.com"

demo/main.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
import Vue from 'vue';
1+
import { createApp } from 'vue-demi';
22
import VueRoughNotation from '../src';
33
import App from './App.vue';
44
import './style.css';
55

6-
Vue.use(VueRoughNotation);
6+
const app = createApp(App);
77

8-
Vue.config.productionTip = false
9-
10-
new Vue({
11-
render: h => h(App),
12-
}).$mount('#app')
8+
app.use(VueRoughNotation);
9+
app.mount('#app');

jest.config.js

Lines changed: 0 additions & 187 deletions
This file was deleted.

package.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
},
4040
"license": "MIT",
4141
"dependencies": {
42-
"rough-notation": "^0.4.0"
42+
"mitt": "^3.0.0",
43+
"rough-notation": "^0.4.0",
44+
"vue-demi": "latest"
4345
},
4446
"devDependencies": {
4547
"@babel/core": "^7.10.1",
@@ -50,13 +52,18 @@
5052
"@rollup/plugin-node-resolve": "^8.0.0",
5153
"@rollup/plugin-typescript": "^4.1.2",
5254
"@types/vue": "^2.0.0",
53-
"@vue/cli-service": "^4.4.1",
54-
"@vue/test-utils": "^1.0.3",
55-
"babel-jest": "^26.0.1",
56-
"jest": "^26.0.1",
55+
"@vue/cli-service": "^4.5.15",
5756
"rollup": "^2.11.2",
5857
"rollup-plugin-terser": "^6.1.0",
59-
"vue": "^2.6.11",
60-
"vue-template-compiler": "^2.6.11"
58+
"vue": "^3.2.27"
59+
},
60+
"peerDependencies": {
61+
"@vue/composition-api": "^1.0.0-rc.1",
62+
"vue": "^2.0.0 || >=3.0.0"
63+
},
64+
"peerDependenciesMeta": {
65+
"@vue/composition-api": {
66+
"optional": true
67+
}
6168
}
6269
}

0 commit comments

Comments
 (0)