Skip to content

Commit 4e337e0

Browse files
committed
upgrade vue
1 parent f85055c commit 4e337e0

File tree

6 files changed

+6099
-3370
lines changed

6 files changed

+6099
-3370
lines changed

demo/Demo.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
<template>
22
<div class="container">
3-
<h2>Demo 1</h2>
3+
<h2>Demo</h2>
44
<TwentyTwenty
55
offset="0.7"
66
before="//placehold.it/600x200/E8117F/FFFFFF"
77
beforeLabel="before"
88
after="//placehold.it/600x200/CCCCCC/FFFFFF"
99
afterLabel="after" />
10-
11-
<!-- <h2>Demo 2</h2>
12-
<TwentyTwenty
13-
before="http://i2.cdn.turner.com/cnnnext/dam/assets/170120124940-inauguration-crowd-2009-obama-super-169.jpg"
14-
after="http://i2.cdn.turner.com/cnnnext/dam/assets/170120125040-inauguration-crowd-2017-trump-super-169.jpg" /> -->
1510
</div>
1611
</template>
1712

demo/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Vue from 'vue'
2+
import Demo from './Demo.vue'
3+
4+
new Vue({
5+
render: h => h(Demo)
6+
}).$mount('#app')

package.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
{
22
"name": "vue-twentytwenty",
33
"version": "0.6.2",
4-
"main": "src/TwentyTwenty.vue",
4+
"main": "./dist/twentytwenty.common.js",
55
"author": "Mark Hayes <me@markhay.es>",
66
"license": "MIT",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/mhayes/vue-twentytwenty"
1010
},
1111
"files": [
12-
"dist",
13-
"src"
12+
"dist/*",
13+
"src/*",
14+
"public/*",
15+
"*.json"
1416
],
1517
"devDependencies": {
16-
"vue-cli": "^2.8.1"
18+
"@vue/cli-plugin-babel": "~4.3.0",
19+
"@vue/cli-service": "^4.3.1",
20+
"vue": "^2.6.11",
21+
"vue-template-compiler": "^2.6.11"
1722
},
1823
"scripts": {
19-
"dev": "./node_modules/.bin/vue build demo/Demo.vue",
20-
"build": "./node_modules/.bin/vue build vue-twentytwenty.js --lib TwentyTwenty --prod"
24+
"serve": "vue-cli-service serve demo/index.js",
25+
"build": "vue-cli-service build --target lib --name twentytwenty ./src/index.js"
2126
}
2227
}

src/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Vue from 'vue';
2+
import TwentyTwenty from './TwentyTwenty.vue';
3+
4+
Vue.component('twentytwenty, TwentyTwenty');
5+
6+
export default TwentyTwenty;

vue-twentytwenty.js

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

0 commit comments

Comments
 (0)