Skip to content

Commit 7610e5d

Browse files
Update dependy + install pattern
1 parent 8841b9a commit 7610e5d

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

template/npm-shrinkwrap.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

template/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
99
},
1010
"dependencies": {
11-
"neutronium-vue-command-mixin": "^1.1.0",
12-
"neutronium-vue-simple-command-mixin": "^1.0.0",
11+
"neutronium-vue-command-mixin": "^1.2.0",
12+
"neutronium-vue-simple-command-mixin": "^1.1.0",
1313
"vue": "^2.2.5"
1414
},
1515
"devDependencies": {

template/src/entry.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import Vue from 'vue'
22
import App from './App.vue'
3+
import {install} from './install'
34

5+
install(Vue)
46
Vue.component('app', App)

template/src/install.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function install(vue) {
2+
//Call vue use here if needed
3+
}
4+
5+
export {
6+
install
7+
}

template/src/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ import Vue from 'vue'
22
import App from './App.vue'
33
import rawVm from '../data/vm'
44
import CircularJson from 'circular-json'
5+
import {install} from './install'
56

67
const vm = CircularJson.parse(rawVm);
78

9+
install(Vue)
810
new Vue({
911
components:{
1012
App

0 commit comments

Comments
 (0)