mapomodule 1.0.0-alpha.1 → 1.0.0-alpha.5

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,27 @@
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.5](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2021-12-20)
7
+
8
+ **Note:** Version bump only for package mapomodule
9
+
10
+
11
+
12
+
13
+
14
+ # [1.0.0-alpha.4](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2021-10-25)
15
+
16
+ **Note:** Version bump only for package mapomodule
17
+
18
+
19
+
20
+
21
+
22
+ # [1.0.0-alpha.3](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2021-10-25)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * Corrected load order of modules to prevent missing mapo components in some circumstances ([4fa16fb](https://github.com/lotrekagency/mapo/commit/4fa16fb549ee0e6368fe724c8305ffc789d5c2fc))
package/LICENSE.md ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Lotrek 2021
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
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.5",
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": [
@@ -16,12 +16,12 @@
16
16
  "@mapomodule/core": "^1.0.0-alpha.1",
17
17
  "@mapomodule/routemeta": "^1.0.0-alpha.1",
18
18
  "@mapomodule/store": "^1.0.0-alpha.1",
19
- "@mapomodule/uikit": "^1.0.0-alpha.1",
19
+ "@mapomodule/uikit": "^1.0.0-alpha.5",
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": "abc5a9d9e50e791de00458de72961c76f3bc7a89"
27
27
  }