Skip to content

Commit

Permalink
chore: update vue-book
Browse files Browse the repository at this point in the history
  • Loading branch information
asvae committed Dec 26, 2018
1 parent 34635a7 commit 3f1c4df
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"v-tooltip": "^2.0.0-rc.30",
"vee-validate": "2.0.9",
"vue": "^2.5.17",
"vue-book": "0.0.15",
"vue-book": "0.1.0-alpha.6",
"vue-bulma-expanding": "0.0.1",
"vue-chartjs": "^3.4.0",
"vue-color": "^2.7.0",
Expand Down
12 changes: 9 additions & 3 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ Vue.use(Router)

const demoRoutes = []
if (process.env.NODE_ENV === 'development') {
const VueBook = require('vue-book').default
const createRoute = require('vue-book').createRoute

demoRoutes.push(
VueBook(require.context('./..', true, /.demo.vue$/), '/demo'),
VueBook(require.context('./../components', true, /.vue$/), '/presentation'),
createRoute({
requireContext: require.context('./..', true, /.demo.vue$/),
path: '/demo',
}),
createRoute({
requireContext: require.context('./../components', true, /.vue$/),
path: '/presentation',
}),
)
}

Expand Down
7 changes: 4 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7832,9 +7832,10 @@ [email protected]:
dependencies:
indexof "0.0.1"

[email protected]:
version "0.0.15"
resolved "https://registry.yarnpkg.com/vue-book/-/vue-book-0.0.15.tgz#55074097f63d83c21b224bed4ffeb354a1291557"
[email protected]:
version "0.1.0-alpha.6"
resolved "https://registry.yarnpkg.com/vue-book/-/vue-book-0.1.0-alpha.6.tgz#02c21e4af8713a6cde0113c1cadcae4f1714f9b6"
integrity sha512-U4bPAL+eIVAaX5zbwNau5CbGm6IADouvhDHiJAs0QiAazQYw+ECdiOxne/06fbWojSRaNmavIwzywqzx5/S45A==

[email protected]:
version "0.0.1"
Expand Down

0 comments on commit 3f1c4df

Please sign in to comment.