-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration for vue-styleguidist
- Loading branch information
Showing
3 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// This .babelrc is currently only used by vue-styleguidist | ||
{ | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"targets": { | ||
"browsers": ["> 1%", "last 2 versions", "not ie <= 11"] | ||
}, | ||
} | ||
], | ||
["vue-app"] | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
const resolve = require('path').resolve; // eslint-disable-line | ||
const rules = require('vue-webpack-loaders'); | ||
|
||
module.exports = { | ||
// components() { | ||
// return ['components#<{(||)}>#*.vue', 'pages#<{(||)}>#*.vue']; | ||
// }, | ||
sections: [ | ||
{ | ||
name: 'Components', | ||
sections: [ | ||
{ | ||
name: 'Common', | ||
components: 'components/Common/*.vue', | ||
description: 'Common Components.', | ||
}, | ||
{ | ||
name: 'Loop', | ||
components: 'components/Loop/*.vue', | ||
description: 'Components for Loop Page.' | ||
}, | ||
{ | ||
name: 'Navbar', | ||
components: 'components/Navbar/*.vue', | ||
description: 'Navbar Components.', | ||
}, | ||
{ | ||
name: 'Series', | ||
components: 'components/Series/*.vue', | ||
description: 'Components for Series/Episodes Page.', | ||
}, | ||
{ | ||
name: 'Loading', | ||
components: 'components/Loading.vue', | ||
description: 'Nuxt Loading Progress Bar.', | ||
}, | ||
], | ||
}, | ||
{ | ||
name: 'Pages', | ||
components: 'pages/**/*.vue', | ||
}, | ||
], | ||
// components: '@(components|pages)#<{(||)}>#*.vue', | ||
webpackConfig: { | ||
resolve: { | ||
modules: [resolve(__dirname, 'lib'), 'node_modules'], | ||
extensions: ['.js', '.vue'], | ||
alias: { | ||
'~': __dirname, | ||
'@': __dirname, | ||
// your aliases go here. | ||
}, | ||
}, | ||
|
||
module: { | ||
rules, | ||
}, | ||
}, | ||
showUsage: true, | ||
vuex: 'store/index.js', | ||
|
||
}; |