# vue-cli-plugin-structure-generator

> Vue CLI Structure ADD-ON to generate Components, views, stores, directives, filters and mixins

Latest version **0.5.4** (published 2019-05-29) · MIT license · 2 weekly downloads

## Install

```sh
npm install vue-cli-plugin-structure-generator
pnpm add vue-cli-plugin-structure-generator
yarn add vue-cli-plugin-structure-generator
bun add vue-cli-plugin-structure-generator
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score; declining downloads.

## Facts

| | |
|---|---|
| Version | 0.5.4 |
| Published | 2019-05-29 |
| First published | 2018-11-28 |
| Weekly downloads | 2 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Eric Fennis |
| Maintainers | ericfennis |
| Keywords | vue, cli, structure, starter, template |

## Links

- npm: https://www.npmjs.com/package/vue-cli-plugin-structure-generator
- Repository: https://github.com/ericfennis/vue-cli-plugin-structure-generator
- Homepage: https://github.com/ericfennis/vue-cli-plugin-structure-generator#readme
- Issues: https://github.com/ericfennis/vue-cli-plugin-structure-generator/issues
- npm.io page: https://npm.io/package/vue-cli-plugin-structure-generator

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.5.4 (latest) — 2019-05-29
- 0.5.2 — 2019-03-06
- 0.5.0 — 2018-12-28
- 0.4.5 — 2018-12-11
- 0.4.4 — 2018-11-28

## README

<p align=center><img width="410" src="https://ericfennis.github.io/vue-cli-plugin-structure/logo-text.svg" alt="Vue Structure Logo"></p>

[![](https://img.shields.io/npm/dm/localeval.svg?style=popout)](https://www.npmjs.com/package/vue-cli-plugin-structure-generator)
  ![](https://img.shields.io/github/license/ericfennis/vue-cli-plugin-structure-generator.svg)
  ![](https://img.shields.io/github/issues/ericfennis/vue-cli-plugin-structure-generator.svg)
  [![](https://img.shields.io/github/release-date/SubtitleEdit/subtitleedit.svg?style=popout)](https://github.com/ericfennis/vue-cli-plugin-structure-generator)
# Vue CLI Structure Generator
A Vue CLI Plugin Add-on for [Vue CLI Plugin Structure](https://github.com/ericfennis/vue-cli-plugin-structure) to generate components, views (opt. routes), filters, directives and mixins. 

## Getting Started with Structure Generator
``` bash
# Add Generator in your vue cli project
vue add structure-generator
```
``` bash
# Start using
$ yarn make

? What do you want to generate? #(Use arrow keys)
❯ Component
  View
  Store
  Mixin
  Directive
```
<br>

### 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
``` bash
yarn make --<type> [<name>]  
```

##### Examples:
``` bash
# Generate component
yarn make --component button 
```
``` bash
# Generate view
yarn make --view contact 
```
``` bash
# Generate store
yarn make --store products 
```
``` bash
# Generate filter
yarn make --filter uppercase 
```
``` bash
# Generate directive
yarn make --directive focus 
```
``` bash
# Generate mixin
yarn make --mixin scrollTo 
```

---
_Source: https://npm.io/package/vue-cli-plugin-structure-generator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
