Skip to content

Commit

Permalink
feat: bump vue-router-layout in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn committed Feb 2, 2021
1 parent 8e019cd commit d15c6ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
8 changes: 1 addition & 7 deletions generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = (api, _options = {}, rootOptions = {}) => {

api.extendPackage({
dependencies: {
'vue-router-layout': isVue3 ? '^0.2.0' : '^0.1.2',
'vue-router-layout': isVue3 ? '^0.3.0' : '^0.1.6',
},
devDependencies: {
'vue-auto-routing': '^1.0.0',
Expand All @@ -21,12 +21,6 @@ module.exports = (api, _options = {}, rootOptions = {}) => {
api.render('./template')

if (isVue3) {
api.injectImports(
api.entryFile,
`import VueRouterLayout from 'vue-router-layout'`
)
api.transformScript(api.entryFile, require('./inject-use-plugin'))

api.render('./template-vue3')
}

Expand Down
29 changes: 0 additions & 29 deletions generator/inject-use-plugin.js

This file was deleted.

0 comments on commit d15c6ce

Please sign in to comment.