bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.78k stars 1.32k forks source link

Add code generators for components, tests, etc #1

Closed chrisvfritz closed 6 years ago

chrisvfritz commented 6 years ago

Credit to @shentao and @michalsnik for the suggestion. Hygen might be the best option.

chrisvfritz commented 6 years ago

I just added an initial generator to create a Vuex module and accompanying unit test, which can be run with:

yarn new module

Feedback is very welcome! πŸ™‚

shentao commented 6 years ago

Since it’s a corporate boilerplate, what about also including Storybook? A basic story could also be generated along the component.

chrisvfritz commented 6 years ago

@shentao Yeah, I've thought about that too! πŸ˜„ I was thinking about possibly including it as a custom block, like <story>. I'll open a new issue for that.

chrisvfritz commented 6 years ago

This is done now. πŸ™‚ Docs are here.