@nuxt/modules 0.5.0 → 0.6.0-079a00

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Nuxt Team
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 all
13
+ 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 THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,25 +1,105 @@
1
+ [![Explore Nuxt Modules to build Vue applications](https://user-images.githubusercontent.com/904724/210616249-25aec46e-ab06-4b4d-9154-10b02546d558.jpg)](https://nuxt.com/modules)
2
+
1
3
  # Nuxt Modules
2
4
 
3
- [![automated](https://flat.badgen.net/badge/publish/automated/green)](#)
4
- [![npm version](https://flat.badgen.net/npm/v/@nuxt/modules)](https://www.npmjs.com/package/@nuxt/modules)
5
+ [![npm version][npm-version-src]][npm-version-href]
6
+ [![Nuxt][nuxt-src]][nuxt-href]
7
+ [![Volta][volta-src]][volta-href]
8
+
9
+ > Discover the Nuxt modules to add any CMS, Database, UI, Auth and integrations into your Vue application.
10
+
11
+ - 🔗 [Modules listing](https://nuxt.com/modules)
12
+ - 📖 [Module author guide](https://nuxt.com/docs/guide/going-further/modules)
13
+
14
+ ## Modules Database
15
+
16
+ Metadata of nuxt modules are maintained in [yml](https://en.wikipedia.org/wiki/YAML) files inside [./modules](./modules) directory and automatically synced from upstream to fetch latest information.
17
+
18
+ ### Add/Update a module
5
19
 
6
- ## Contribution
20
+ ```bash
21
+ pnpm sync <name> <repo>
22
+ ```
23
+
24
+ Example: `pnpm sync tailwindcss nuxt-modules/tailwindcss`
25
+
26
+ To sync with a branch different than `main`, suffix the repo with `#repo-branch`, example: `pnpm sync tailwindcss nuxt-modules/tailwindcss#dev`
27
+
28
+ ### Contribution
7
29
 
8
30
  - If you feel a module is missing, please create a new [issue](https://github.com/nuxt/modules/issues/new)
9
- - If some meta is wrong, feel free directly opening a PR
31
+ - If some data is outdated please directly open a pull request
32
+
33
+ ### Using CDN
34
+
35
+ Compiled JSON data is available from following CDNs:
36
+
37
+ - **jsdelivr:** https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json
38
+ - **unpkg:** https://unpkg.com/@nuxt/modules@latest/modules.json
10
39
 
11
- ### Add/Update repository
40
+ ### Using npm package
12
41
 
13
- `yarn sync <owner>/<name>`
42
+ You can use the `@nuxt/modules` package by installing it in your project:
43
+
44
+ ```bash
45
+ # npm
46
+ npm install @nuxt/modules
47
+
48
+ # pnpm
49
+ pnpm add @nuxt/modules
50
+ ```
51
+
52
+ Then you can directly import the list of modules:
53
+
54
+ ```js
55
+ // ESM
56
+ import modules from '@nuxt/modules'
57
+
58
+ // CommonJS
59
+ const modules = require('@nuxt/modules')
60
+ ```
61
+
62
+ ### Schema
63
+
64
+ Field Name | Auto sync | Description
65
+ ----------------|-----------|--------------
66
+ `name` | No | Canonical name or integration name
67
+ `description` | Yes | Short description
68
+ `repo` | No | GitHub repository. Format is `org/name` or `org/name#main/path`
69
+ `npm` | Yes | NPM package name
70
+ `icon` | No | Icon of module from [./website/public/icons](./website/public/icons) directory
71
+ `github` | No | GitHub URL
72
+ `website` | No | Website URL
73
+ `learn_more` | No | Link to learn more (website or relevant integration website)
74
+ `category` | No | Module category from [./lib/categories.ts](./lib/categories.ts)
75
+ `type` | No | `community` (for [nuxt-community](https://github.com/nuxt-community/)), `official` (for https://github.com/) or `3rd-party`
76
+ `maintainers` | Yes | List of maintainers each item has `name`, `github` and `avatar`
77
+ `compatibility` | No | Module compatibility status. `nuxt` field specifies semver of supported nuxt version. `requires.bridge: true\|optional` can be used to specify Nuxt 2 bridge compatibility.
78
+
79
+
80
+ ## Maintenance
14
81
 
15
82
  ### Auto update all current modules
16
83
 
17
- `yarn sync`
84
+ ```bash
85
+ pnpm sync
86
+ ```
18
87
 
19
- ### Generate `dist/module.json`
88
+ ### Generate `modules.json`
20
89
 
21
- `yarn build`
90
+ ```bash
91
+ pnpm build
92
+ ```
22
93
 
23
94
  ## License
24
95
 
25
- MIT
96
+ [MIT](./LICENSE) - Made by Nuxt Team
97
+
98
+ [npm-version-src]: https://img.shields.io/npm/v/@nuxt/modules/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
99
+ [npm-version-href]: https://npmjs.com/package/@nuxt/modules
100
+
101
+ [nuxt-src]: https://img.shields.io/badge/Nuxt%20Modules-18181B?logo=nuxt.js
102
+ [nuxt-href]: https://nuxt.com/modules
103
+
104
+ [volta-src]: https://user-images.githubusercontent.com/904724/209143798-32345f6c-3cf8-4e06-9659-f4ace4a6acde.svg
105
+ [volta-href]: https://volta.net/nuxt/modules?utm_source=readme_nuxt_modules