Vue CLI Structure Generator
A Vue CLI Plugin Add-on for Vue CLI Plugin Structure to generate components, views (opt. routes), filters, directives and mixins.
Getting Started with Structure Generator
# Add Generator in your vue cli projectvue add structure-generator
# Start using$ yarn make? What do you want to generate? #(Use arrow keys)❯ ComponentViewStoreMixinDirective
Shorthand generate commands
Shorthand commands give you the option to skip the prompt, it will also not generate imports in _globals.js
files (for component, directive, filters and mixins), for views will it skip the route generator as wel.
Using Shorthand commands
yarn make --<type> [<name>]
Examples:
# Generate componentyarn make --component button
# Generate viewyarn make --view contact
# Generate storeyarn make --store products
# Generate filteryarn make --filter uppercase
# Generate directiveyarn make --directive focus
# Generate mixinyarn make --mixin scrollTo