egoist / vuepack

:package: A modern starter which uses Vue 2, Vuex, Vue-router and Webpack 2 (and even Electron)
http://vuepack.surge.sh
MIT License
2.43k stars 202 forks source link

[Enhancement] Generate components with plop. #131

Open d-simon opened 7 years ago

d-simon commented 7 years ago

A suggestion to enhance vuepack: Scaffolding of components and routes with plop – This would allow to scaffold new components, routes and whatever one needs directly from the command-line. I've seen an implementation of this over at react-boilerplate, specifically here.

Is this something you would consider, are there better ways to do this? Is there perhaps an existing or planned scaffolding solution for vue-cli?

Thank you for your input (And also thank you very much for your work in general!)

sotaan commented 7 years ago

check out vue-generator

d-simon commented 7 years ago

Thanks! Looks great 👍 I will report back from the next project → For this we will probably still use plop to scaffold our components etc.

d-simon commented 7 years ago

Quick update of our progress: We've added basic generators for components, views and modules over here: https://github.com/wearelucid/vuepack/tree/vuecid/template/scaffold I'm not sure what the best way to go about this is and what options people need. We've also only added scaffolding for the jsx variant, but that would be an easy thing to maintain for .vue files also.