Skip to content

Commit 8e209e1

Browse files
committed
fix & sync with vue-typed-2.0.2
1 parent ff77d83 commit 8e209e1

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode

template/package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@
1111
"start": "webpack-dev-server"
1212
},
1313
"dependencies": {
14-
{{#if_eq vueVersion "1.0"}}"vue": "^1.0.28",{{/if_eq}}{{#if_eq vueVersion "2.0"}}"vue": "^2.0.3",{{/if_eq}}
15-
"vue-typed": "^1.0.3"
14+
{{#if_eq vueVersion "1.0"}}
15+
"vue": "^1.0.28",
16+
"vue-typed": "2.0.1"
17+
{{/if_eq}}
18+
{{#if_eq vueVersion "2.0"}}
19+
"vue": "^2.0.5",
20+
"vue-typed": "^2.0.2"
21+
{{/if_eq}}
1622
},
1723
"devDependencies": {
1824
"@types/node": "6.0.41",
25+
{{#if_eq vueVersion "1.0"}}
26+
"@types/vue": "^1.0.31",
27+
{{/if_eq}}
1928
"babel-core": "^6.17.0",
2029
"babel-loader": "^6.2.5",
2130
"babel-preset-es2015": "^6.16.0",

template/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Data } from 'vue-typed'
1+
import { Component } from 'vue-typed'
22
import * as Vue from 'vue'
33
import { Container } from './container'
44

@@ -7,8 +7,7 @@ Vue.component('app-container', Container)
77
@Component({
88
template: '<div><app-container title="My App">Hello \{{msg}}!</app-container></div>'
99
})
10-
class App extends Vue {
11-
@Data()
10+
class App extends Vue {
1211
msg = 'there'
1312
}
1413

template/tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"noImplicitAny": false,
66
"sourceMap": false,
77
"experimentalDecorators": true,
8+
{{#if_eq vueVersion "1.0"}}
9+
"types": ["node", "vue"]
10+
{{/if_eq}}
11+
{{#if_eq vueVersion "2.0"}}
812
"types": ["node"]
13+
{{/if_eq}}
914
}
1015
}

0 commit comments

Comments
 (0)