CLI support for Vue#1287
Conversation
Codecov Report
@@ Coverage Diff @@
## add-app-vue #1287 +/- ##
===============================================
- Coverage 14.41% 14.39% -0.02%
===============================================
Files 232 232
Lines 4897 4903 +6
Branches 612 610 -2
===============================================
Hits 706 706
- Misses 3677 3682 +5
- Partials 514 515 +1
Continue to review full report at Codecov.
|
|
Wow, you've set some goals for yourself! Storybook is really heavy on webpack. Do know the CLI needs a huge overhaul, but a generator for it like this would be fantastic to have for the Storybook for Vue launch! Which I think can happen real soon. |
| REACT_PROJECT: 'REACT_PROJECT', | ||
| WEBPACK_REACT: 'WEBPACK_REACT', | ||
| VUE: 'VUE', | ||
| WEBPACK_VUE: 'WEBPACK_VUE', |
There was a problem hiding this comment.
WEBPACK_VUE and BROWSERIFY_VUE might refactor as SFO_VUE(Single file components) due to same logic.
| const latestVersion = require('latest-version'); | ||
|
|
||
| module.exports = latestVersion('@storybook/vue').then(version => { | ||
| mergeDirs(path.resolve(__dirname, 'template/'), '.', 'overwrite'); |
There was a problem hiding this comment.
Minor nit: I think / does not need in path.resolve(__dirname, 'template/').
There was a problem hiding this comment.
@abouthiroppy thank you for your reviewing!
Indeed. :)
|
done! |
NOTE: Vue.js standard style
Issue:
What I did
I supported
getstorybookfor vue app project with generatedvue-cli.How to test
vue init [template-type] xxxcd xxxgetstorybooknpm run storybookTODO (support template-type)
Reference
https://github.com/vuejs-templates