mapomodule
Version:
Mapo is a nuxt module that helps in the creation of Administration Panels.
54 lines (42 loc) ⢠1.64 kB
Markdown
# mapomodule [](https://www.npmjs.com/package/mapomodule) [](https://github.com/lotrekagency/mapo/blob/master/LICENSE.md)
## Setup
Add `mapomodule` dependency to your project
```sh
yarn add --dev mapomodule # or npm install --save-dev mapomodule
```
Add mapomodule to the modules section of nuxt.config.js
```js
{
modules: [
// Simple usage
'mapomodule',
// With options
['mapomodule', { /* module options */ }]
]
}
```
You can add options also from top level nuxt.config.js
```js
{
modules: [
'mapomodule'
],
mapo: {
/* module options */
}
}
```
## Features
- Exposes [`$mapo`](https://lotrekagency.github.io/mapo/core/) core sevices to provide set of utilities.
- Injects mapo [`components`](https://lotrekagency.github.io/mapo/components/) in the default nuxt component discovery.
- Adds meta information to router module from nuxt pages.
š Read more from the [documentation](https://lotrekagency.github.io/mapo/).
## How to contribute
1. Clone this repository
2. Install dependencies using `yarn bootstrap`
3. Start development server using `yarn dev`
### Documenting components
Always write some documentation regarding the components you're developing.
Our documentation is generated directly from code thanks to [@Vuepress](https://vuepress.vuejs.org/), [@Vuese](https://vuese.org/) and [@jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown#readme).
1. Generate doc `yarn doc:gen`
2. Preview vuepress doc `yarn doc:dev`