Skip to content

Commit dd95cd9

Browse files
committed
update readme
1 parent cf24d9b commit dd95cd9

File tree

2 files changed

+73
-35
lines changed

2 files changed

+73
-35
lines changed

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Nuxt.js Team
3+
Copyright (c) 2020 Nuxt Team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 71 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,69 @@
1-
[![nuxt/modules](https://modules.nuxtjs.org/preview.png)](https://modules.nuxtjs.org)
2-
3-
> Official and community [Nuxt](https://nuxtjs.org) modules united on [modules.nuxtjs.org](https://modules.nuxtjs.org)
4-
51
# Nuxt Modules
62

73
[![automated](https://flat.badgen.net/badge/publish/automated/green)](#)
84
[![npm version](https://flat.badgen.net/npm/v/@nuxt/modules)](https://www.npmjs.com/package/@nuxt/modules)
95

10-
## Contributing
6+
> Discover Nuxt modules to supercharge your project! Created by the Nuxt team and community.
7+
8+
👉 https://modules.nuxtjs.org
9+
10+
## Modules Database
11+
12+
Meta-data 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.
13+
14+
### Contribution
1115

1216
- If you feel a module is missing, please create a new [issue](https://github.com/nuxt/modules/issues/new)
13-
- If some meta is wrong, feel free directly opening a pull request
17+
- If some data is outdated, directly opening a pull request
18+
19+
### Using CDN
20+
21+
Compiled JSON data is available from following CDNs:
22+
23+
- **jsdelivr:**: https://cdn.jsdelivr.net/npm/@nuxt/modules/dist/modules.json
24+
- **unpkg:** https://unpkg.com/@nuxt/modules/dist/modules.json
25+
26+
### Using npm package
27+
28+
You can use the `@nuxt/modules` package by installing it in your project:
29+
30+
```bash
31+
# npm
32+
npm install @nuxt/modules
33+
34+
# yarn
35+
yarn add @nuxt/modules
36+
```
37+
38+
Then you can directly import the list of modules:
39+
40+
```js
41+
// ESM
42+
import modules from '@nuxt/modules'
43+
44+
// CommonJS
45+
const modules = require('@nuxt/modules')
46+
```
47+
48+
### Schema
49+
50+
Field Name | Auto sync | Description
51+
--------------|-----------|--------------
52+
name | No | Cannonical name of module
53+
description | Yes | Module short description
54+
repo | No | Github repository. Format is `org/name` or `org/name#main/path`
55+
npm | Yes | NPM package name
56+
icon | No | Icon of module from [/static/icons](./static/icons) directory
57+
github | No | Github URL
58+
website | No | Website URL
59+
learn_more | No | Link to learn more (website or relevant integration website)
60+
category | No | Module category from [/categories.json](./categories.json)
61+
type | No | `community` (for [nuxt-community](https://github.com/nuxt-community/)), `official` (for https://github.com/) or `3rd-party`
62+
maintainers | Yes | List of maintainers each item has `name`, `github` and `avatar`
63+
compatibility | No | Module compatibility status. Valid keys are `2.x`, `2.x-bridge` and `3.x` and valid values are `working`, `wip`, `unknown`, `broken` and `rip`. Please see [this discussion](https://github.com/nuxt/framework/discussions/751) for more information.
64+
65+
66+
## Maintenance
1467

1568
### Add or update repository
1669

@@ -30,62 +83,47 @@ yarn sync
3083

3184
### Generate `dist/module.json`
3285

33-
```
86+
```sh
3487
yarn build
3588
```
3689

37-
## Module Usage
38-
39-
You can use the `@nuxt/modules` package by installing it in your project:
40-
41-
```bash
42-
npm install @nuxt/modules
43-
# Or yarn add @nuxt/modules
44-
```
45-
46-
Then you can directly import the list of modules:
4790

48-
```js
49-
const modules = require('@nuxt/modules')
50-
// modules is an array of objects
51-
// See https://unpkg.com/@nuxt/modules/dist/modules.json
52-
```
53-
54-
## Website
91+
## Website development
5592

56-
### Development
93+
- Clone repository
94+
- Install depenedencies using `npx yarn install`
5795

58-
Start Nuxt in development:
96+
Start development:
5997

6098
```bash
61-
yarn dev
99+
npx yarn dev
62100
```
63101

64-
Then visit http://localhost:3000.
102+
Then visit http://localhost:3000
65103

66104
In development, the npm downloads and GitHub stars will be mocked.
67105

68-
### Production
106+
### Production build
69107

70108
Create a [personnal GitHub token](https://github.com/settings/tokens) (no scope selected) and add it to `.env`:
71109

72-
```bash
110+
```sh
73111
# .env
74112
GITHUB_TOKEN=<my-generated-github-token>
75113
```
76114

77115
Generate the website:
78116

79-
```
117+
```sh
80118
yarn generate
81119
```
82120

83121
Start the production website:
84122

85-
```bash
123+
```sh
86124
yarn start
87125
```
88126

89127
## License
90128

91-
MIT Nuxt.js Team
129+
[MIT](./LICENSE) - Made by Nuxt Team

0 commit comments

Comments
 (0)