mapomodule 1.0.0-alpha.1 → 1.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,67 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [1.0.0-alpha.10](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-02-11)
7
+
8
+ **Note:** Version bump only for package mapomodule
9
+
10
+
11
+
12
+
13
+
14
+ # [1.0.0-alpha.9](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-02-08)
15
+
16
+ **Note:** Version bump only for package mapomodule
17
+
18
+
19
+
20
+
21
+
22
+ # [1.0.0-alpha.8](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2022-01-23)
23
+
24
+ **Note:** Version bump only for package mapomodule
25
+
26
+
27
+
28
+
29
+
30
+ # [1.0.0-alpha.7](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2022-01-13)
31
+
32
+ **Note:** Version bump only for package mapomodule
33
+
34
+
35
+
36
+
37
+
38
+ # [1.0.0-alpha.6](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2021-12-26)
39
+
40
+ **Note:** Version bump only for package mapomodule
41
+
42
+
43
+
44
+
45
+
46
+ # [1.0.0-alpha.5](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2021-12-20)
47
+
48
+ **Note:** Version bump only for package mapomodule
49
+
50
+
51
+
52
+
53
+
54
+ # [1.0.0-alpha.4](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2021-10-25)
55
+
56
+ **Note:** Version bump only for package mapomodule
57
+
58
+
59
+
60
+
61
+
62
+ # [1.0.0-alpha.3](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2021-10-25)
63
+
64
+
65
+ ### Bug Fixes
66
+
67
+ * Corrected load order of modules to prevent missing mapo components in some circumstances ([4fa16fb](https://github.com/lotrekagency/mapo/commit/4fa16fb549ee0e6368fe724c8305ffc789d5c2fc))
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # mapomodule [![npm](https://img.shields.io/npm/v/mapomodule?style=flat-square)](https://www.npmjs.com/package/mapomodule) [![GitHub](https://img.shields.io/badge/license-MIT-green?style=flat-square)](https://github.com/lotrekagency/mapo/blob/master/LICENSE.md)
2
+
3
+ ## Setup
4
+ Add `mapomodule` dependency to your project
5
+ ```sh
6
+ yarn add --dev mapomodule # or npm install --save-dev mapomodule
7
+ ```
8
+ Add mapomodule to the buildModules section of nuxt.config.js
9
+ ```js
10
+ {
11
+ buildModules: [
12
+ // Simple usage
13
+ 'mapomodule',
14
+
15
+ // With options
16
+ ['mapomodule', { /* module options */ }]
17
+ ]
18
+ }
19
+ ```
20
+
21
+ You can add options also from top level nuxt.config.js
22
+
23
+ ```js
24
+ {
25
+ buildModules: [
26
+ 'mapomodule'
27
+ ],
28
+ mapo: {
29
+ /* module options */
30
+ }
31
+ }
32
+ ```
33
+ ## Features
34
+
35
+ - Exposes [`$mapo`](https://lotrekagency.github.io/mapo/core/) core sevices to provide set of utilities.
36
+ - Injects mapo [`components`](https://lotrekagency.github.io/mapo/components/) in the default nuxt component discovery.
37
+ - Adds meta information to router module from nuxt pages.
38
+
39
+ 📑  Read more from the [documentation](https://lotrekagency.github.io/mapo/).
40
+
41
+ ## How to contribute
42
+
43
+ 1. Clone this repository
44
+ 2. Install dependencies using `yarn bootstrap`
45
+ 3. Start development server using `yarn dev`
46
+
47
+ ### Documenting components
48
+ Always write some documentation regarding the components you're developing.
49
+ 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).
50
+
51
+ 1. Generate doc `yarn doc:gen`
52
+ 2. Preview vuepress doc `yarn doc:dev`
53
+
package/module.js CHANGED
@@ -20,11 +20,12 @@ export default async function MapoModule(moduleOptions) {
20
20
 
21
21
  this.options = _mergeWith(this.options, mapoDefaults, customMerger)
22
22
 
23
- await this.requireModule(['@nuxtjs/axios', (this.options && this.options.axios) || userModuleOptions.axios || mapoDefaults.axios || {}])
24
- await this.requireModule(['@mapomodule/store'], userModuleOptions.store)
25
- await this.requireModule(['@mapomodule/core'], userModuleOptions)
26
- this.requireModule(['@mapomodule/uikit'], userModuleOptions.ui)
27
- .then(() => this.requireModule(['@mapomodule/routemeta'], userModuleOptions.routemeta))
23
+ this.requireModule(['@nuxtjs/axios', (this.options && this.options.axios) || userModuleOptions.axios || mapoDefaults.axios || {}])
24
+ this.requireModule(['@mapomodule/store'], userModuleOptions.store)
25
+ this.requireModule(['@mapomodule/core'], userModuleOptions)
26
+ /* Await prevents to load routemeta before mapo pages. Also needed to correclty load mapo components */
27
+ await this.requireModule(['@mapomodule/uikit'], userModuleOptions.ui)
28
+ this.requireModule(['@mapomodule/routemeta'], userModuleOptions.routemeta)
28
29
 
29
30
  }
30
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapomodule",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.10",
4
4
  "description": "Mapo is a nuxt module that helps in the creation of Administration Panels.",
5
5
  "author": "bnznamco <gabriele.baldi.01@gmail.com>",
6
6
  "keywords": [
@@ -13,15 +13,15 @@
13
13
  "repository": "https://github.com/lotrekagency/mapo",
14
14
  "main": "./module.js",
15
15
  "dependencies": {
16
- "@mapomodule/core": "^1.0.0-alpha.1",
17
- "@mapomodule/routemeta": "^1.0.0-alpha.1",
18
- "@mapomodule/store": "^1.0.0-alpha.1",
19
- "@mapomodule/uikit": "^1.0.0-alpha.1",
16
+ "@mapomodule/core": "^1.0.0-alpha.10",
17
+ "@mapomodule/routemeta": "^1.0.0-alpha.8",
18
+ "@mapomodule/store": "^1.0.0-alpha.10",
19
+ "@mapomodule/uikit": "^1.0.0-alpha.10",
20
20
  "@nuxtjs/axios": "^5.13.6",
21
21
  "lodash.mergewith": "^4.6.2"
22
22
  },
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "gitHead": "a480dac2e2e78e66e0b5b35bd2f03bc3e1575246"
26
+ "gitHead": "283cad977741523d3a0c300ce08edf1a6855e11c"
27
27
  }