# vue-cli-plugin-modular

> Plugin for vue-cli@3 to work with separate modules

Latest version **0.0.2** (published 2018-03-08) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-03-08 |
| First published | 2018-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 48.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Matthias Feldmann |
| Maintainers | matthiasf999 |
| Keywords | modular, plugin, vue, cli, 3 |

## Links

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

## 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.0.2 (latest) — 2018-03-08
- 0.0.1 — 2018-03-08

## README

# vue-cli-plugin-modular
This is a `vue-cli@3.0` plugin, allowing to create separate modules.

## Quickstart
Install package in existing project with yarn or npm.
```
npm i -D vue-cli-plugin-modular
# or
yarn add vue-cli-plugin-modular -D
```

Invoke the plugin
```
vue invoke modular
```
## Creating modules
Modules belong in the app folder and export a single json.

```Javascript
export default {
	router: {
		routes: [],    // routes to add to the router
		beforeEach: [] // guards for all routes in router
	},
	store: {
		modules: {},   // modules to add to vuex store
		plugins: []    // plugins to add to vuex store
	}
}
```
Modules only need to be added to _src/app/index.js_.
The data is loaded by the router and the vuex store.

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