mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-24 21:15:51 +01:00
chore(website): add community section on website (#3441)
* chore(website): add community section on website * chore(website): add community section on website
This commit is contained in:
parent
b4cc80017e
commit
8d86ec764f
226
CONTRIBUTING.md
226
CONTRIBUTING.md
@ -1,59 +1,33 @@
|
||||
# Contributing
|
||||
|
||||
> Any change matters, whatever the size, just do it.
|
||||
> This guidelines refers to the main (`master`) that host the v6.x, if you want to contribute to `5.x` please read the following [link](https://github.com/verdaccio/verdaccio/blob/5.x/CONTRIBUTING.md).
|
||||
|
||||
We're happy that you're considering contributing! To help, we've prepared these
|
||||
guidelines for you:
|
||||
We're happy that you're considering contributing!
|
||||
|
||||
**Table of Contents**
|
||||
|
||||
- [Contributing](#contributing)
|
||||
- [How Do I Contribute?](#how-do-i-contribute)
|
||||
- [Development Setup](#development-setup)
|
||||
- [Building the project](#building-the-project)
|
||||
- [Running test](#running-test)
|
||||
- [Running and debugging](#running-and-debugging)
|
||||
- [Debugging compiled code](#debugging-compiled-code)
|
||||
- [Reporting Bugs](#reporting-bugs)
|
||||
- [Read the documentation](#read-the-documentation)
|
||||
- [What's is not considered a bug?](#whats-is-not-considered-a-bug)
|
||||
- [Issue Search](#issue-search)
|
||||
- [Chat](#chat)
|
||||
- [Translations](#translations)
|
||||
- [Request Features](#request-features)
|
||||
- [Contributing Guidelines](#contributing-guidelines)
|
||||
- [Submitting a Pull Request](#submitting-a-pull-request)
|
||||
- [Make Changes and Commit](#make-changes-and-commit)
|
||||
- [Caveats](#caveats)
|
||||
- [Before Commit](#before-commit)
|
||||
- [Commit Guidelines](#commit-guidelines)
|
||||
- [Adding a changeset](#adding-a-changeset)
|
||||
- [Update Tests](#update-tests)
|
||||
- [Develop Plugins](#develop-plugins)
|
||||
To help you getting started we've prepared these guidelines for you, any change matter, just do it:
|
||||
|
||||
## How Do I Contribute?
|
||||
|
||||
There are many ways to contribute:
|
||||
|
||||
- Report a bug
|
||||
- Request a feature you think would be great for Verdaccio
|
||||
- Fix bugs
|
||||
- Test and triage bugs reported by others
|
||||
- Work on requested/approved features
|
||||
- Improve the codebase (linting, naming, comments, test descriptions, etc...)
|
||||
- [Report a bug](#reporting-bugs)
|
||||
- [Request a feature you think would be great for Verdaccio](#feature-request)
|
||||
- [Fixing bugs](https://github.com/verdaccio/verdaccio/issues?q=is%3Aopen+is%3Aissue+label%3A%22issue%3A+bug%22)
|
||||
- [Test and triage bugs reported by others](https://github.com/verdaccio/verdaccio/issues?q=is%3Aopen+is%3Aissue+label%3Aissue_needs_triage)
|
||||
- [Working on requested/approved features](https://github.com/verdaccio/verdaccio/issues?q=is%3Aopen+is%3Aissue+label%3A%22topic%3A+feature+request%22+)
|
||||
- [Improve the codebase (linting, naming, comments, test descriptions, etc...)](https://github.com/verdaccio/verdaccio/discussions/1461)
|
||||
- Improve code coverage for unit testing for every module, [end to end](https://github.com/verdaccio/verdaccio/tree/master/e2e/cli) or [UI test](https://github.com/verdaccio/verdaccio/tree/master/e2e/ui) (with cypress).
|
||||
|
||||
The Verdaccio project is split into several areas:
|
||||
The Verdaccio project is split into several areas, the first three hosted in the main repository:
|
||||
|
||||
- **Core**: The [core](https://github.com/verdaccio/verdaccio) is the main repository, built with **Node.js**.
|
||||
- **Website**: we use [**Docusaurus**](https://docusaurus.io/) for the **website** and if you are familiar with this technology, you might become the official webmaster.
|
||||
- **User Interface**: The [user Interface](https://github.com/verdaccio/ui) is based in **react** and **material-ui** and looking for front-end contributors.
|
||||
- **Kubernetes and Helm**: Ts the official repository for the [**Helm chart**](https://github.com/verdaccio/charts).
|
||||
|
||||
> There are other areas to contribute, like documentation, translation which are
|
||||
> not hosted on this repo but check the last section of this notes for further
|
||||
> information.
|
||||
> There are other areas to contribute, like [documentation](https://github.com/verdaccio/verdaccio/tree/master/website/docs) or [translations](#translations}).
|
||||
|
||||
## Development Setup
|
||||
## Prepare local setup {#local-setup}
|
||||
|
||||
Verdaccio uses [pnpm](https://pnpm.io) as the package manager for development in this repository.
|
||||
|
||||
@ -144,7 +118,7 @@ To run the application from the source code, ensure the project has been built w
|
||||
- `pnpm website`: Build the website, for more commands to run the _website_, run `cd website` and then `pnpm serve`, website will run on port `3000`.
|
||||
- `pnpm docker`: Build the docker image. Requires `docker` command available in your system.
|
||||
|
||||
#### Debugging compiled code
|
||||
#### Debugging compiled code {#debugging-compiled-code}
|
||||
|
||||
Currently you can only run pre-compiled packages in debug mode. To enable debug
|
||||
while running add the `verdaccio` namespace using the `DEBUG` environment
|
||||
@ -164,13 +138,50 @@ DEBUG=verdaccio:plugin:* node packages/verdaccio/debug/bootstrap.js
|
||||
The debug code is intended to analyze what is happening under the hood and none
|
||||
of the output is sent to the logger module.
|
||||
|
||||
## Reporting Bugs
|
||||
> [See the full guide how to debug with Verdaccio](https://github.com/verdaccio/verdaccio/wiki/Debugging-Verdaccio)
|
||||
|
||||
#### Testing your changes in a local registry {#testing-local-registry}
|
||||
|
||||
Once you have perform your changes in the code base, the build and tests passes you can publish a local version:
|
||||
|
||||
- Ensure you have build all modules (or the one you have modified)
|
||||
- Run `pnpm local:publish:release` to launch a local registry and publish all packages into it. This command will be alive until server is killed (Control Key + C)
|
||||
|
||||
```
|
||||
pnpm build
|
||||
pnpm local:publish:release
|
||||
```
|
||||
|
||||
The last step consist on install globally the package from the local registry which runs on the default port (4873).
|
||||
|
||||
```
|
||||
npm i -g verdaccio --registry=http://localhost:4873
|
||||
verdaccio
|
||||
```
|
||||
|
||||
If you perform more changes in the source code, repeat this process, there is not _hot reloading_ support.
|
||||
|
||||
## Feature Request {#feature-request}
|
||||
|
||||
New feature requests are welcome. Analyse whether the idea fits within scope of the project. Adding in context and the use-case will really help!
|
||||
|
||||
**Please provide:**
|
||||
|
||||
- Create a [discussion](https://github.com/verdaccio/verdaccio/discussions/new).
|
||||
- A detailed description the advantages of your request.
|
||||
- Whether or not it's compatible with `npm`, `pnpm` and [_yarn classic_
|
||||
](https://github.com/yarnpkg/yarn) or [_yarn modern_
|
||||
](https://github.com/yarnpkg/berry).
|
||||
- A potential implementation or design
|
||||
- Whatever else is on your mind! 🤓
|
||||
|
||||
## Reporting Bugs {#reporting-bugs}
|
||||
|
||||
**Bugs are considered features that are not working as described in
|
||||
documentation.**
|
||||
|
||||
If you've found a bug in Verdaccio **that isn't a security risk**, please file
|
||||
a report in our [issue tracker](https://github.com/verdaccio/verdaccio/issues).
|
||||
a report in our [issue tracker](https://github.com/verdaccio/verdaccio/issues), if you think a potential vulnerability please read the [security policy](https://verdaccio.org/community/security) .
|
||||
|
||||
> **NOTE: Verdaccio still does not support all npm commands. Some were not
|
||||
> considered important and others have not been requested yet.**
|
||||
@ -189,7 +200,7 @@ a report in our [issue tracker](https://github.com/verdaccio/verdaccio/issues).
|
||||
If you intend to report a **security** issue, please follow our [Security policy
|
||||
guidelines](https://github.com/verdaccio/verdaccio/security/policy).
|
||||
|
||||
### Issue Search
|
||||
### Issues {#issues}
|
||||
|
||||
Before reporting a bug please:
|
||||
|
||||
@ -201,53 +212,21 @@ In case any of those match with your search, up-vote it (using GitHub reactions)
|
||||
or add additional helpful details to the existing issue to show that it's
|
||||
affecting multiple people.
|
||||
|
||||
### Chat
|
||||
### Contributing support
|
||||
|
||||
Questions can be asked via [Discord](https://discord.gg/7qWJxBf)
|
||||
|
||||
**Please use the `#help` channel.**
|
||||
**Please use the `#contribute` channel.**
|
||||
|
||||
## Translations
|
||||
## Development Guidelines {#development-guidelines}
|
||||
|
||||
All translations are provided by the `crowdin` platform:
|
||||
[https://translate.verdaccio.org/](https://translate.verdaccio.org/)
|
||||
It's recommended use a UNIX system for local development, Windows should works fine for development, but is not daily tested could not be perfect. To ensure a fast code review and merge, please follow the next guidelines:
|
||||
|
||||
If you want to contribute by adding translations, create an account (GitHub could be used as fast alternative), in the platform you can contribute to two areas, the website or improve User Interface translations.
|
||||
Any contribution gives you the right to be part of this organization as _collaborator_ and your avatar will be automatically added to the [contributors page](https://verdaccio.org/contributors).
|
||||
|
||||
If a language is not listed, ask for it in the [Discord](https://discord.gg/7qWJxBf) channel #contribute channel.
|
||||
## Pull Request {#pull-request}
|
||||
|
||||
For adding a new **language** on the UI follow these steps:
|
||||
|
||||
1. Ensure the **language** has been enabled, must be visible in the `crowdin` platform.
|
||||
2. Find in the explorer the file `en.US.json` in the path `packages/plugins/ui-theme/src/i18n/crowdin/ui.json` and complete the translations, **not need to find approval on this**.
|
||||
3. Into the project, add a new field into `packages/plugins/ui-theme/src/i18n/crowdin/ui.json` file, in the section `lng`, the new language, eg: `{ lng: {korean:"Korean"}}`. (This file is English based, once the PR has been merged, this string will be available in crowdin for translate to the targeted language).
|
||||
4. Add the language, [flag icon](https://www.npmjs.com/package/country-flag-icons), and the menu key fort he new language eg: `menuKey: 'lng.korean'` to the file `packages/plugins/ui-theme/src/i18n/enabledLanguages.ts`.
|
||||
5. For local testing, read `packages/plugins/ui-theme/src/i18n/ABOUT_TRANSLATIONS.md`.
|
||||
6. Add a `changeset` file, see more info below.
|
||||
|
||||
## Request Features
|
||||
|
||||
New feature requests are welcome. Analyse whether the idea fits within scope of
|
||||
the project. Adding in context and the use-case will really help!
|
||||
|
||||
**Please provide:**
|
||||
|
||||
- A detailed description the advantages of your request
|
||||
- Whether or not it's compatible with `npm`, `pnpm` and [_yarn classic_
|
||||
](https://github.com/yarnpkg/yarn) or [_yarn modern_
|
||||
](https://github.com/yarnpkg/berry).
|
||||
- A potential implementation or design
|
||||
- Whatever else is on your mind! 🤓
|
||||
|
||||
## Contributing Guidelines
|
||||
|
||||
It's very exciting to become a Verdaccio contributor 🙌🏼. To ensure a fast code
|
||||
review and merge, please follow the next guidelines:
|
||||
|
||||
> Any contribution gives you the right to be part of this organization as
|
||||
> _collaborator_.
|
||||
|
||||
### Submitting a Pull Request
|
||||
### Submitting a Pull Request {#submit-pull-request}
|
||||
|
||||
The following are the steps you should follow when creating a pull request.
|
||||
Subsequent pull requests only need to follow step 3 and beyond.
|
||||
@ -275,10 +254,10 @@ Feel free to commit as much times you want in your branch, but keep on mind on
|
||||
this repository we `git squash` on merge by default, as we like to maintain a
|
||||
clean git history.
|
||||
|
||||
#### Before Commit
|
||||
#### Before Push {#before-push}
|
||||
|
||||
Before committing, **you must ensure there are no linting errors and
|
||||
all tests pass.** To do this, run these commands before creating the PR:
|
||||
Before committing or push, **you must ensure there are no linting errors and
|
||||
all tests passes**. To do verify, run these commands before creating the PR:
|
||||
|
||||
```bash
|
||||
pnpm lint
|
||||
@ -292,40 +271,11 @@ pnpm test
|
||||
|
||||
All good? Perfect! You should create the pull request.
|
||||
|
||||
#### Commit Guidelines
|
||||
#### Commit Guidelines {#commits}
|
||||
|
||||
For example:
|
||||
On a pull request, commit messages are not important, please focus on document properly the pull request content. The commit message will be taken from the pull request title, it is recommended to use lowercase format.
|
||||
|
||||
- `feat: A new feature`
|
||||
- `fix: A bug fix`
|
||||
|
||||
A commit of the type feat introduces a new feature to the codebase (this
|
||||
correlates with MINOR in semantic versioning).
|
||||
|
||||
e.g.:
|
||||
|
||||
```
|
||||
feat: xxxxxxxxxx
|
||||
```
|
||||
|
||||
A commit of the type fix patches a bug in your codebase (this correlates with
|
||||
PATCH in semantic versioning).
|
||||
|
||||
e.g.:
|
||||
|
||||
```
|
||||
fix: xxxxxxxxxxx
|
||||
```
|
||||
|
||||
Commits types such as as `docs:`,`style:`,`refactor:`,`perf:`,`test:` and
|
||||
`chore:` are valid but have no effect on versioning: **please use them!**
|
||||
|
||||
All commits message are going to be validated when they are created using
|
||||
_husky_ hooks.
|
||||
|
||||
> Please try to provide one single commit to help a clean and easy merge process
|
||||
|
||||
### Adding a changeset
|
||||
### Adding a changeset {#changeset}
|
||||
|
||||
We use [changesets](https://github.com/atlassian/changesets) in order to
|
||||
generate a detailed Changelog as possible.
|
||||
@ -407,7 +357,25 @@ If you need help with how testing works, please [refer to the following guide
|
||||
**If you are introducing new features, you MUST include new tests. PRs for
|
||||
features without tests will not be merged.**
|
||||
|
||||
## Develop Plugins
|
||||
## Translations {#translations}
|
||||
|
||||
All translations are provided by the **[crowdin](http://crowdin.com)** platform,
|
||||
[https://translate.verdaccio.org/](https://translate.verdaccio.org/)
|
||||
|
||||
If you want to contribute by adding translations, create an account (GitHub could be used as fast alternative), in the platform you can contribute to two areas, the website or improve User Interface translations.
|
||||
|
||||
If a language is not listed, ask for it in the [Discord](https://discord.gg/7qWJxBf) channel #contribute channel.
|
||||
|
||||
For adding a new **language** on the UI follow these steps:
|
||||
|
||||
1. Ensure the **language** has been enabled, must be visible in the `crowdin` platform.
|
||||
2. Find in the explorer the file `en.US.json` in the path `packages/plugins/ui-theme/src/i18n/crowdin/ui.json` and complete the translations, **not need to find approval on this**.
|
||||
3. Into the project, add a new field into `packages/plugins/ui-theme/src/i18n/crowdin/ui.json` file, in the section `lng`, the new language, eg: `{ lng: {korean:"Korean"}}`. (This file is English based, once the PR has been merged, this string will be available in crowdin for translate to the targeted language).
|
||||
4. Add the language, [flag icon](https://www.npmjs.com/package/country-flag-icons), and the menu key fort he new language eg: `menuKey: 'lng.korean'` to the file `packages/plugins/ui-theme/src/i18n/enabledLanguages.ts`.
|
||||
5. For local testing, read `packages/plugins/ui-theme/src/i18n/ABOUT_TRANSLATIONS.md`.
|
||||
6. Add a `changeset` file, see more info below.
|
||||
|
||||
## Develop Plugins {#develop-plugins}
|
||||
|
||||
Plugins are add-ons that extend the functionality of the application.
|
||||
|
||||
@ -420,25 +388,3 @@ If you want to develop your own plugin:
|
||||
3. You are free to host your plugin in your repository
|
||||
4. Provide a detailed description of your plugin to help users understand how to
|
||||
use it
|
||||
|
||||
## Testing your changes in a local registry
|
||||
|
||||
Once you have perform your changes in the code base, the build and tests passes you can publish a local version:
|
||||
|
||||
- Ensure you have build all modules (or the one you have modified)
|
||||
- Run `pnpm local:publish:release` to launch a local registry and publish all packages into it. This command will be alive until server is killed (Control Key + C)
|
||||
|
||||
```
|
||||
pnpm build
|
||||
pnpm local:publish:release
|
||||
```
|
||||
|
||||
The last step consist on install globally the package from the local registry.
|
||||
|
||||
```
|
||||
npm i -g verdaccio --registry=http://localhost:4873
|
||||
|
||||
verdaccio
|
||||
```
|
||||
|
||||
If you perform more changes in the source code, repeat this process, there is not _hot reloading_ support.
|
||||
|
@ -1,39 +0,0 @@
|
||||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
||||
<!-- markdownlint-disable -->
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><a href="https://www.linkedin.com/in/jotadeveloper/"><img src="https://avatars0.githubusercontent.com/u/558752?v=4" width="100px;" alt=""/><br /><sub><b>Juan Picado</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=juanpicado" title="Documentation">📖</a> <a href="https://github.com/verdaccio/verdaccio/commits?author=juanpicado" title="Code">💻</a> <a href="#infra-juanpicado" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#eventOrganizing-juanpicado" title="Event Organizing">📋</a> <a href="#blog-juanpicado" title="Blogposts">📝</a> <a href="#maintenance-juanpicado" title="Maintenance">🚧</a></td>
|
||||
<td align="center"><a href="https://github.com/sergiohgz"><img src="https://avatars3.githubusercontent.com/u/14012309?v=4" width="100px;" alt=""/><br /><sub><b>Sergio Herrera</b></sub></a><br /><a href="#infra-sergiohgz" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-sergiohgz" title="Maintenance">🚧</a></td>
|
||||
<td align="center"><a href="https://daniel-ruf.de/"><img src="https://avatars1.githubusercontent.com/u/827205?v=4" width="100px;" alt=""/><br /><sub><b>Daniel Ruf</b></sub></a><br /><a href="#security-DanielRuf" title="Security">🛡️</a> <a href="#infra-DanielRuf" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-DanielRuf" title="Maintenance">🚧</a></td>
|
||||
<td align="center"><a href="https://priscilawebdev.github.io/priscilaoliveira/"><img src="https://avatars1.githubusercontent.com/u/29228205?v=4" width="100px;" alt=""/><br /><sub><b>Priscila Oliveira</b></sub></a><br /><a href="#design-priscilawebdev" title="Design">🎨</a> <a href="https://github.com/verdaccio/verdaccio/commits?author=priscilawebdev" title="Code">💻</a> <a href="#maintenance-priscilawebdev" title="Maintenance">🚧</a></td>
|
||||
<td align="center"><a href="http://ayusharma.github.io/"><img src="https://avatars0.githubusercontent.com/u/6918450?v=4" width="100px;" alt=""/><br /><sub><b>Ayush Sharma</b></sub></a><br /><a href="#infra-ayusharma" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/verdaccio/verdaccio/commits?author=ayusharma" title="Code">💻</a> <a href="#design-ayusharma" title="Design">🎨</a></td>
|
||||
<td align="center"><a href="https://github.com/trentearl"><img src="https://avatars2.githubusercontent.com/u/802857?v=4" width="100px;" alt=""/><br /><sub><b>Trent Earl</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=trentearl" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://github.com/jmwilkinson"><img src="https://avatars0.githubusercontent.com/u/17836030?v=4" width="100px;" alt=""/><br /><sub><b>jmwilkinson</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=jmwilkinson" title="Code">💻</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="https://github.com/bufferoverflow"><img src="https://avatars2.githubusercontent.com/u/378909?v=4" width="100px;" alt=""/><br /><sub><b>Roger Meier</b></sub></a><br /><a href="#plugin-bufferoverflow" title="Plugin/utility libraries">🔌</a></td>
|
||||
<td align="center"><a href="https://ghuser.io/jamesgeorge007"><img src="https://avatars2.githubusercontent.com/u/25279263?v=4" width="100px;" alt=""/><br /><sub><b>James George</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=jamesgeorge007" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://github.com/AvailCat"><img src="https://avatars3.githubusercontent.com/u/19658647?v=4" width="100px;" alt=""/><br /><sub><b>AvailCat</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=AvailCat" title="Code">💻</a> <a href="#infra-AvailCat" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-AvailCat" title="Maintenance">🚧</a></td>
|
||||
<td align="center"><a href="https://www.luciusgaitan.com/"><img src="https://avatars0.githubusercontent.com/u/5970350?v=4" width="100px;" alt=""/><br /><sub><b>Lucius Gaitán</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=lgaitan" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://github.com/ramonornela"><img src="https://avatars1.githubusercontent.com/u/187946?v=4" width="100px;" alt=""/><br /><sub><b>Ramon Henrique Ornelas</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=ramonornela" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://people.freebsd.org/~mi/resume/"><img src="https://avatars1.githubusercontent.com/u/1486340?v=4" width="100px;" alt=""/><br /><sub><b>UnitedMarsupials-zz</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=UnitedMarsupials-zz" title="Code">💻</a></td>
|
||||
<td align="center"><a href="http://www.codingintrigue.co.uk/"><img src="https://avatars0.githubusercontent.com/u/9048902?v=4" width="100px;" alt=""/><br /><sub><b>Ryan Graham</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=ryan-codingintrigue" title="Code">💻</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="https://github.com/coolsp"><img src="https://avatars1.githubusercontent.com/u/1246647?v=4" width="100px;" alt=""/><br /><sub><b>coolsp</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=coolsp" title="Code">💻</a></td>
|
||||
<td align="center"><a href="http://ashishsurana.in/"><img src="https://avatars0.githubusercontent.com/u/5610944?v=4" width="100px;" alt=""/><br /><sub><b>Ashish Surana</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=ashishsurana" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://github.com/buffaybu"><img src="https://avatars3.githubusercontent.com/u/2025661?v=4" width="100px;" alt=""/><br /><sub><b>Wang Yifei</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=buffaybu" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://twitter.com/liran_tal"><img src="https://avatars1.githubusercontent.com/u/316371?v=4" width="100px;" alt=""/><br /><sub><b>Liran Tal</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=lirantal" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://github.com/brenordr"><img src="https://avatars2.githubusercontent.com/u/19731692?v=4" width="100px;" alt=""/><br /><sub><b>Breno Rodrigues</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=brenordr" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://github.com/jachstet-sea"><img src="https://avatars0.githubusercontent.com/u/7993508?v=4" width="100px;" alt=""/><br /><sub><b>jachstet-sea</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=jachstet-sea" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://patrik.votocek.cz/"><img src="https://avatars1.githubusercontent.com/u/112567?v=4" width="100px;" alt=""/><br /><sub><b>Patrik Votoček</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=Vrtak-CZ" title="Code">💻</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="https://github.com/monkeywithacupcake"><img src="https://avatars3.githubusercontent.com/u/7316730?v=4" width="100px;" alt=""/><br /><sub><b>jess</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=monkeywithacupcake" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://github.com/toolsofraj"><img src="https://avatars0.githubusercontent.com/u/2507152?v=4" width="100px;" alt=""/><br /><sub><b>toolsofraj</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=toolsofraj" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://github.com/ddhp"><img src="https://avatars1.githubusercontent.com/u/1715380?v=4" width="100px;" alt=""/><br /><sub><b>Jian-Chen Chen (jesse)</b></sub></a><br /><a href="#translation-ddhp" title="Translation">🌍</a> <a href="https://github.com/verdaccio/verdaccio/commits?author=ddhp" title="Code">💻</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- markdownlint-enable -->
|
||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
13
website/community/1-contributing.md
Normal file
13
website/community/1-contributing.md
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
title: Contributing
|
||||
hide_title: true
|
||||
sidebar_label: Contributing
|
||||
---
|
||||
|
||||
```mdx-code-block
|
||||
import Contributing, {toc as ContributingTOC} from "@site/../CONTRIBUTING.md"
|
||||
|
||||
<Contributing />
|
||||
|
||||
export const toc = ContributingTOC;
|
||||
```
|
13
website/community/2-security.md
Normal file
13
website/community/2-security.md
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
title: Security Policy
|
||||
hide_title: true
|
||||
sidebar_label: Security Policy
|
||||
---
|
||||
|
||||
```mdx-code-block
|
||||
import Security, {toc as SecurityTOC} from "@site/../SECURITY.md"
|
||||
|
||||
<Security />
|
||||
|
||||
export const toc = SecurityTOC;
|
||||
```
|
46
website/community/index.md
Normal file
46
website/community/index.md
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
title: Help
|
||||
hide_title: true
|
||||
sidebar_label: Help
|
||||
---
|
||||
|
||||
|
||||
This project is maintained by the Verdaccio community, maintainers and users that provide helps to other users. Independently the source you select for seeking answers **remind to be polite and patience**.
|
||||
|
||||
## Questions {#questions}
|
||||
|
||||
If you have a question, most probably has already been answer, few ways to discover questions are:
|
||||
|
||||
- [Stack Overflow](https://stackoverflow.com/questions/tagged/verdaccio)
|
||||
- [Question Issues](https://github.com/verdaccio/verdaccio/issues?utf8=✓&q=is%3Aissue+label%3Aquestion+)
|
||||
- [Discussions Q&A](https://github.com/verdaccio/verdaccio/discussions/categories/q-a)
|
||||
- At the **Discord** chat you can also ask questions on the `#help` channel.
|
||||
|
||||
> Questions issues are legacy and are being converted to discussions, if you are looking for fresh answers probably is a discussion.
|
||||
|
||||
```mdx-code-block
|
||||
<iframe
|
||||
title="Discord Widget of Verdaccio"
|
||||
src="https://discord.com/widget?id=388674437219745793&theme=dark"
|
||||
width="350"
|
||||
height="500"
|
||||
frameBorder="0"
|
||||
/>
|
||||
```
|
||||
|
||||
## Package Managers {#package-managers}
|
||||
|
||||
A private registry is mostly used with a package manager, some issues or questions might be answer by their teams:
|
||||
|
||||
- pnpm chat: https://r.pnpm.io/chat
|
||||
- yarn chat: https://discord.com/invite/yarnpkg
|
||||
- yarn chat: https://discord.com/invite/yarnpkg
|
||||
- npm RFC: https://github.com/npm/rfcs
|
||||
- npm Feedback: https://github.com/npm/feedback
|
||||
|
||||
## News {#news}
|
||||
|
||||
- [Twitter](http://twitter.com/verdaccio)
|
||||
- [Twitter Community](https://twitter.com/i/communities/1502550839499579393)
|
||||
- [Telegram](https://t.me/verdaccio)
|
||||
- [Blog](https://verdaccio.org/blog)
|
@ -82,6 +82,16 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
'content-docs',
|
||||
({
|
||||
id: 'community',
|
||||
path: 'community',
|
||||
routeBasePath: 'community',
|
||||
sidebarPath: require.resolve('./sidebarsCommunity.js'),
|
||||
showLastUpdateTime: true,
|
||||
}),
|
||||
],
|
||||
[
|
||||
'docusaurus-plugin-typedoc',
|
||||
{
|
||||
@ -178,7 +188,6 @@ module.exports = {
|
||||
label: 'API'
|
||||
},
|
||||
{ to: '/blog', label: 'Blog', position: 'left' },
|
||||
{ to: '/help', label: 'Help', position: 'left' },
|
||||
{
|
||||
type: 'docsVersionDropdown',
|
||||
"position": "right",
|
||||
@ -189,14 +198,9 @@ module.exports = {
|
||||
position: 'right',
|
||||
},
|
||||
{
|
||||
href: 'https://www.youtube.com/channel/UC5i20v6o7lSjXzAHOvatt0w',
|
||||
label: 'YouTube',
|
||||
position: 'right',
|
||||
},
|
||||
{
|
||||
href: '/contributors',
|
||||
label: 'Contributors',
|
||||
position: 'right',
|
||||
href: '/community',
|
||||
label: 'Community',
|
||||
position: 'left',
|
||||
},
|
||||
{
|
||||
type: 'localeDropdown',
|
||||
|
45
website/sidebarsCommunity.js
Normal file
45
website/sidebarsCommunity.js
Normal file
@ -0,0 +1,45 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
community: [
|
||||
{
|
||||
type: 'autogenerated',
|
||||
dirName: '.',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
href: '/contributors',
|
||||
label: 'Meet the Contributors',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Watch us on YouTube',
|
||||
href: 'https://www.youtube.com/channel/UC5i20v6o7lSjXzAHOvatt0w',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Chat on Discord',
|
||||
href: 'https://discord.gg/T7gJmBM6nv',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Open Collective',
|
||||
href: 'https://opencollective.com/verdaccio',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'GitHub Sponsors',
|
||||
href: 'https://github.com/sponsors/verdaccio',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'LICENSE',
|
||||
href: 'https://github.com/verdaccio/verdaccio/blob/master/LICENSE',
|
||||
},
|
||||
],
|
||||
};
|
@ -1,42 +0,0 @@
|
||||
.wrapper {
|
||||
margin: 1rem auto;
|
||||
width: 80%;
|
||||
}
|
||||
.w-100 {
|
||||
width: 100%;
|
||||
}
|
||||
.mt-2 {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
}
|
||||
.grid-2-1fr {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
.grid-columns-fill {
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
}
|
||||
.items-center {
|
||||
align-items: center;
|
||||
}
|
||||
.gap-2 {
|
||||
gap: 2rem;
|
||||
}
|
||||
.m-auto {
|
||||
margin: 0 auto;
|
||||
}
|
||||
.article-card {
|
||||
--ifm-link-color: #cd4001;
|
||||
height: 100%;
|
||||
background-color: var(--ifm-navbar-background-color);
|
||||
box-shadow: 1px 1px 1px 1px #66757f0f;
|
||||
padding: 1rem;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 900px) {
|
||||
.grid-2-1fr {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
@ -1,188 +0,0 @@
|
||||
import Link from '@docusaurus/Link';
|
||||
import Translate from '@docusaurus/Translate';
|
||||
import useBaseUrl from '@docusaurus/useBaseUrl';
|
||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||
import Layout from '@theme/Layout';
|
||||
import clsx from 'clsx';
|
||||
import React from 'react';
|
||||
import { Follow } from 'react-twitter-widgets';
|
||||
|
||||
import styles from './help.module.scss';
|
||||
|
||||
const _SupportLinks = (lang: string) => [
|
||||
{
|
||||
title: 'Browse Docs',
|
||||
content: (
|
||||
<Translate
|
||||
values={{
|
||||
link: (
|
||||
<Link to={useBaseUrl('/docs/what-is-verdaccio')}>
|
||||
<Translate>documentation on this site</Translate>
|
||||
</Link>
|
||||
),
|
||||
}}
|
||||
>
|
||||
{'Learn more about Verdaccio using the {link}'}
|
||||
</Translate>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'Twitter',
|
||||
content: (
|
||||
<Translate
|
||||
values={{
|
||||
follow: (
|
||||
<Follow username="verdaccio_npm" options={{ showCount: false, dnt: true, lang }} />
|
||||
),
|
||||
}}
|
||||
>
|
||||
{'You can follow and contact us on {follow}'}
|
||||
</Translate>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'GitHub',
|
||||
content: (
|
||||
<Translate
|
||||
values={{
|
||||
link: (
|
||||
<a href="https://github.com/verdaccio/verdaccio/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3Aquestion+">
|
||||
<Translate>Question Database</Translate>
|
||||
</a>
|
||||
),
|
||||
}}
|
||||
>
|
||||
{'If the documentation is not enough help, you can try browsing into our {link}'}
|
||||
</Translate>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'Stackoverflow',
|
||||
content: (
|
||||
<Translate
|
||||
values={{
|
||||
link: (
|
||||
<a href="https://stackoverflow.com/questions/tagged/verdaccio">
|
||||
<Translate>Stackoverflow Questions</Translate>
|
||||
</a>
|
||||
),
|
||||
}}
|
||||
>
|
||||
{'Browse questions at Stackoverflow also could be useful {link}'}
|
||||
</Translate>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'Discord',
|
||||
content: (
|
||||
<Translate
|
||||
values={{
|
||||
link: <a href="https://discord.gg/T7gJmBM6nv">Discord</a>,
|
||||
}}
|
||||
>
|
||||
{'and also you can chat with the Verdaccio community at {link}'}
|
||||
</Translate>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'pnpm',
|
||||
content: (
|
||||
<Translate
|
||||
values={{
|
||||
link: (
|
||||
<a href="https://r.pnpm.io/chat">
|
||||
<Translate>Community Chat</Translate>
|
||||
</a>
|
||||
),
|
||||
}}
|
||||
>
|
||||
{'If you have specific pnpm questions, join their community chat {link}'}
|
||||
</Translate>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'yarn',
|
||||
content: (
|
||||
<Translate
|
||||
values={{
|
||||
link: (
|
||||
<a href="https://discord.com/invite/yarnpkg">
|
||||
<Translate>Community Chat</Translate>
|
||||
</a>
|
||||
),
|
||||
}}
|
||||
>
|
||||
{'If you have specific yarn questions, join their community chat {link}'}
|
||||
</Translate>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'npm',
|
||||
content: (
|
||||
<Translate
|
||||
values={{
|
||||
rfcs: (
|
||||
<a href="https://github.com/npm/rfcs">
|
||||
<Translate>npm RFCS</Translate>
|
||||
</a>
|
||||
),
|
||||
feedback: (
|
||||
<a href=">https://github.com/npm/feedback">
|
||||
<Translate>npm Feedback</Translate>
|
||||
</a>
|
||||
),
|
||||
}}
|
||||
>
|
||||
{'If you have specific npm questions, you can interact via {rfcs} and {feedback}'}
|
||||
</Translate>
|
||||
),
|
||||
},
|
||||
];
|
||||
|
||||
const Help = (): React.ReactElement => {
|
||||
const { i18n } = useDocusaurusContext();
|
||||
return (
|
||||
<Layout
|
||||
title="Help"
|
||||
description="Verdaccio Help, where you'll find all the links to find help and assistance from Verdaccio contributors"
|
||||
>
|
||||
<div className={styles.wrapper}>
|
||||
<header>
|
||||
<h1>
|
||||
<Translate>Need help?</Translate>
|
||||
</h1>
|
||||
<p>
|
||||
<Translate>This project is maintained by the Verdaccio community.</Translate>
|
||||
</p>
|
||||
</header>
|
||||
<main className={clsx(styles.grid, styles['items-center'], styles['grid-2-1fr'])}>
|
||||
<div
|
||||
className={clsx(
|
||||
styles.grid,
|
||||
styles['mt-2'],
|
||||
styles['grid-columns-fill'],
|
||||
styles['gap-2']
|
||||
)}
|
||||
>
|
||||
{_SupportLinks(i18n.currentLocale).map((supportSections) => (
|
||||
<article className={styles['article-card']} key={supportSections.title}>
|
||||
<h2>{supportSections.title}</h2>
|
||||
<p>{supportSections.content}</p>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
<iframe
|
||||
className={styles['m-auto']}
|
||||
title="Discord Widget of Verdaccio"
|
||||
src="https://discord.com/widget?id=388674437219745793&theme=dark"
|
||||
width="350"
|
||||
height="500"
|
||||
frameBorder="0"
|
||||
/>
|
||||
</main>
|
||||
</div>
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
||||
export default Help;
|
Loading…
Reference in New Issue
Block a user