mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
Merge branch 'master' into 4.x
This commit is contained in:
commit
821c45934f
@ -1,88 +1,88 @@
|
|||||||
{
|
{
|
||||||
"_comment": "This file is auto-generated by write-translations.js",
|
"_comment": "Ce fichier est généré automatiquement par write-translations.js",
|
||||||
"localized-strings": {
|
"localized-strings": {
|
||||||
"next": "Next",
|
"next": "Suivant",
|
||||||
"previous": "Previous",
|
"previous": "Précédent",
|
||||||
"tagline": "Verdaccio · A lightweight private npm proxy registry",
|
"tagline": "Verdaccio · Un journal proxy npm léger et privé",
|
||||||
"ansible": "Ansible",
|
"ansible": "Ansible",
|
||||||
"authentification": "Authentification",
|
"authentification": "Authentification",
|
||||||
"build": "Build the source code",
|
"build": "Compiler le code source",
|
||||||
"chef": "Chef Cookbook",
|
"chef": "Chef Cookbook",
|
||||||
"ci": "Continuous Integration",
|
"ci": "Intégration Continue",
|
||||||
"cli": "Command Line Tool",
|
"cli": "Outil de Ligne de Commande",
|
||||||
"configuration": "Configuration File",
|
"configuration": "Fichier de Configuration",
|
||||||
"contributing": "Contributing Verdaccio",
|
"contributing": "Contribuer à Verdaccio",
|
||||||
"dev-plugins": "Developing Plugins",
|
"dev-plugins": "Développement des Plugins",
|
||||||
"docker": "Docker",
|
"docker": "Docker",
|
||||||
"iss-server": "Installing on IIS server",
|
"iss-server": "Installation sur le serveur IIS",
|
||||||
"installation": "Installation",
|
"installation": "Installation",
|
||||||
"kubernetes": "Kubernetes",
|
"kubernetes": "Kubernetes",
|
||||||
"logger": "Logger",
|
"logger": "Enregistreur",
|
||||||
"logo": "Verdaccio Logotype",
|
"logo": "Logo de Verdaccio",
|
||||||
"node-api": "Node API",
|
"node-api": "Node API",
|
||||||
"notifications": "Notifications",
|
"notifications": "Notifications",
|
||||||
"packages": "Package Access",
|
"packages": "Paquet d'accès",
|
||||||
"plugins": "Plugins",
|
"plugins": "Plugins",
|
||||||
"protect-your-dependencies": "Protecting packages",
|
"protect-your-dependencies": "Protection des paquets",
|
||||||
"puppet": "Puppet",
|
"puppet": "Puppet",
|
||||||
"source-code": "Source Code",
|
"source-code": "Code Source",
|
||||||
"reverse-proxy": "Reverse Proxy Setup",
|
"reverse-proxy": "Configuration du Proxy Inverse",
|
||||||
"server-configuration": "Server Configuration",
|
"server-configuration": "Configuration du Serveur",
|
||||||
"ssl": "Set up the SSL Certificates",
|
"ssl": "Configurer les Certificats SSL",
|
||||||
"unit-testing": "Unit Testing",
|
"unit-testing": "Test unitaire",
|
||||||
"uplinks": "Uplinks",
|
"uplinks": "Uplinks",
|
||||||
"use-cases": "Use Cases",
|
"use-cases": "Cas d’utilisation",
|
||||||
"webui": "Web User Interface2",
|
"webui": "Interface d'Utilisateur Web2",
|
||||||
"what-is-verdaccio": "What is Verdaccio?",
|
"what-is-verdaccio": "Qu'est ce que Verdaccio?",
|
||||||
"windows": "Installing As a Windows Service",
|
"windows": "Installation en tant que Service Windows",
|
||||||
"Docs": "Docs",
|
"Docs": "Docs",
|
||||||
"Blog": "Blog",
|
"Blog": "Blog",
|
||||||
"Help": "Help",
|
"Help": "Aide",
|
||||||
"GitHub": "GitHub",
|
"GitHub": "GitHub",
|
||||||
"Team": "Team",
|
"Team": "Équipe",
|
||||||
"Donate": "Donate",
|
"Donate": "Faire un don",
|
||||||
"Introduction": "Introduction",
|
"Introduction": "Introduction",
|
||||||
"Configuration": "Configuration",
|
"Configuration": "Configuration",
|
||||||
"Server": "Server",
|
"Server": "Serveur",
|
||||||
"Plugins": "Plugins",
|
"Plugins": "Plugins",
|
||||||
"DevOps": "DevOps",
|
"DevOps": "DevOps",
|
||||||
"Development": "Development",
|
"Development": "Développement",
|
||||||
"Guides": "Guides"
|
"Guides": "Guides"
|
||||||
},
|
},
|
||||||
"pages-strings": {
|
"pages-strings": {
|
||||||
"Learn more using the [documentation on this site.](/docs/en/installation.html)|no description given": "Learn more using the [documentation on this site.](/docs/en/installation.html)",
|
"Learn more using the [documentation on this site.](/docs/en/installation.html)|no description given": "En savoir plus à l’aide de la [documentation sur ce site.] (/docs/en/installation.html)",
|
||||||
"Browse Docs|no description given": "Browse Docs",
|
"Browse Docs|no description given": "Parcourir les Docs",
|
||||||
"Ask questions about the documentation and project|no description given": "Ask questions about the documentation and project",
|
"Ask questions about the documentation and project|no description given": "Posez des questions sur la documentation et le projet",
|
||||||
"Join the community|no description given": "Join the community",
|
"Join the community|no description given": "Rejoignez la communauté",
|
||||||
"Find out what's new with this project|no description given": "Find out what's new with this project",
|
"Find out what's new with this project|no description given": "Découvrez les nouveautés de ce projet",
|
||||||
"Stay up to date|no description given": "Stay up to date",
|
"Stay up to date|no description given": "Restez à jour",
|
||||||
"Need help?|no description given": "Need help?",
|
"Need help?|no description given": "Besoin d’aide?",
|
||||||
"This project is maintained by a dedicated group of people.|statement made to reader": "This project is maintained by a dedicated group of people.",
|
"This project is maintained by a dedicated group of people.|statement made to reader": "Ce projet est soutenu par un groupe de personnes dévouées.",
|
||||||
"Learn more about Verdaccio using the [documentation on this site.](/docs/en/installation.html)|no description given": "Learn more about Verdaccio using the [documentation on this site.](/docs/en/installation.html)",
|
"Learn more about Verdaccio using the [documentation on this site.](/docs/en/installation.html)|no description given": "En savoir plus sur Verdaccio en utilisant la [documentation sur ce site.] (/docs/en/installation.html)",
|
||||||
"You can follow and contact us on|no description given": "You can follow and contact us on",
|
"You can follow and contact us on|no description given": "Vous pouvez nous suivre et nous contacter sur",
|
||||||
"and also you can chat with the Verdaccio community at|no description given": "and also you can chat with the Verdaccio community at",
|
"and also you can chat with the Verdaccio community at|no description given": "et aussi vous pouvez discuter avec la communauté Verdaccio sur",
|
||||||
"If the documentation is not enough help, you can try browsing into our|no description given": "If the documentation is not enough help, you can try browsing into our",
|
"If the documentation is not enough help, you can try browsing into our|no description given": "Si la documentation n’offre pas assez d’aides, vous pouvez essayer la navigation dans notre",
|
||||||
"This project is maintained by the Verdaccio community.|no description given": "This project is maintained by the Verdaccio community.",
|
"This project is maintained by the Verdaccio community.|no description given": "Ce projet est soutenu par la communauté Verdaccio.",
|
||||||
"Get Started|no description given": "Get Started",
|
"Get Started|no description given": "Commencer",
|
||||||
"Contribute|no description given": "Contribute",
|
"Contribute|no description given": "Contribuer",
|
||||||
"That’s it ! Enjoy your private package manager.|no description given": "That’s it ! Enjoy your private package manager.",
|
"That’s it ! Enjoy your private package manager.|no description given": "Voilà ! Profitez de votre gestionnaire de paquets privé.",
|
||||||
"Many great developers are already enjoying Verdaccio, join the community!|no description given": "Many great developers are already enjoying Verdaccio, join the community!",
|
"Many great developers are already enjoying Verdaccio, join the community!|no description given": "Beaucoup de grands développeurs jouissent déjà de Verdaccio, rejoignez la communauté!",
|
||||||
"**npm**, **yarn** and **pnpm** are part of any development workflow we try to catch up with the latest updates.|no description given": "**npm**, **yarn** and **pnpm** are part of any development workflow we try to catch up with the latest updates.",
|
"**npm**, **yarn** and **pnpm** are part of any development workflow we try to catch up with the latest updates.|no description given": "**npm**, **yarn** et **pnpm** font partie de tous les flux de développement que nous essayons de suivre avec les dernières mises à jour.",
|
||||||
"The most popular npm clients are supported|no description given": "The most popular npm clients are supported",
|
"The most popular npm clients are supported|no description given": "Les clients npm les plus populaires sont supportés",
|
||||||
"We have an official **Docker** image ready to use|no description given": "We have an official **Docker** image ready to use",
|
"We have an official **Docker** image ready to use|no description given": "Nous disposons d'une image **Docker** officielle prête à l'emploi",
|
||||||
"and **Kubernetes Helm** support for easy deployment|no description given": "and **Kubernetes Helm** support for easy deployment",
|
"and **Kubernetes Helm** support for easy deployment|no description given": "et assistance pour **Kubernetes Helm** pour une distribution aisée",
|
||||||
"Making the DevOps work easy|no description given": "Making the DevOps work easy",
|
"Making the DevOps work easy|no description given": "Rendant le travail des DevOps facile",
|
||||||
"Verdaccio is plugin based, authentication, middleware and storage support. Just pick one or create your custom one.|no description given": "Verdaccio is plugin based, authentication, middleware and storage support. Just pick one or create your custom one.",
|
"Verdaccio is plugin based, authentication, middleware and storage support. Just pick one or create your custom one.|no description given": "Verdaccio est basé sur les extensions, l’authentification, et le support des middlewares et du stockage. Choisissez-en un ou créez le vôtre.",
|
||||||
"Plugin Support|no description given": "Plugin Support",
|
"Plugin Support|no description given": "Support des Plugins",
|
||||||
"Who's Using This?|no description given": "Who's Using This?",
|
"Who's Using This?|no description given": "Qui se sert de cela?",
|
||||||
"This project is used by all these people|no description given": "This project is used by all these people",
|
"This project is used by all these people|no description given": "Ce projet est utilisé par tous ces gens",
|
||||||
"More|no description given": "More",
|
"More|no description given": "Plus",
|
||||||
"Users|no description given": "Users",
|
"Users|no description given": "Utilisateurs",
|
||||||
"This project is used by many folks|no description given": "This project is used by many folks",
|
"This project is used by many folks|no description given": "Ce projet est utilisé par beaucoup de gens",
|
||||||
"Are you using this project? Do not be shy and add your company/project logo.|no description given": "Are you using this project? Do not be shy and add your company/project logo.",
|
"Are you using this project? Do not be shy and add your company/project logo.|no description given": "Utilisez-vous ce projet? Ne soyez pas timide et ajoutez le logo de votre entreprise/projet.",
|
||||||
"Add your company|no description given": "Add your company",
|
"Add your company|no description given": "Ajoutez votre entreprise",
|
||||||
"Help Translate|recruit community translators for your project": "Help Translate",
|
"Help Translate|recruit community translators for your project": "Aidez à traduire",
|
||||||
"Edit this Doc|recruitment message asking to edit the doc source": "Edit",
|
"Edit this Doc|recruitment message asking to edit the doc source": "Editer",
|
||||||
"Translate this Doc|recruitment message asking to translate the docs": "Translate"
|
"Translate this Doc|recruitment message asking to translate the docs": "Traduire"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -12,7 +12,7 @@
|
|||||||
"cli": "Command Line Tool",
|
"cli": "Command Line Tool",
|
||||||
"configuration": "Configuration File",
|
"configuration": "Configuration File",
|
||||||
"contributing": "Doprinos razvoju Verdaccio-a",
|
"contributing": "Doprinos razvoju Verdaccio-a",
|
||||||
"dev-plugins": "Razvijanje Pligina",
|
"dev-plugins": "Razvijanje Plugina",
|
||||||
"docker": "Docker",
|
"docker": "Docker",
|
||||||
"iss-server": "Instaliranje na IIS server",
|
"iss-server": "Instaliranje na IIS server",
|
||||||
"installation": "Instalacija",
|
"installation": "Instalacija",
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
id: webui
|
id: webui
|
||||||
title: "Web User Interface"
|
title: "Interface d'Utilisateur Web"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
<p align="center"><img src="https://github.com/verdaccio/verdaccio/blob/master/assets/gif/verdaccio_big_30.gif?raw=true"></p>
|
<p align="center"><img src="https://github.com/verdaccio/verdaccio/blob/master/assets/gif/verdaccio_big_30.gif?raw=true"></p>
|
||||||
|
|
||||||
Verdaccio has a web user interface to display only the private packages and can be customisable.
|
Verdaccio dispoe d'une interface d'utilisateur web pour afficher uniquement les paquets privés et qui peut être personnalisée.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
web:
|
web:
|
||||||
@ -16,13 +16,13 @@ web:
|
|||||||
scope:
|
scope:
|
||||||
```
|
```
|
||||||
|
|
||||||
All access restrictions defined to [protect your packages](protect-your-dependencies.md) will also apply to the Web Interface.
|
Toutes les restrictions d'accès définies pour la [protection des pacquets](protect-your-dependencies.md) s'appliquent également à l'Interface Web.
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
| Property | Type | Required | Example | Support | Description |
|
| Propriété | Type | Obligatoire | Exemple | Soutien | Description |
|
||||||
| -------- | ------- | -------- | ------------------------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------- | -------------------- | ----------- | ------------------------------ | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| enable | boolean | No | true/false | all | allow to display the web interface |
|
| enable | booléenne | Non | vrai/faux | tous | permettre l’affichage de l’interface web |
|
||||||
| title | string | No | Verdaccio | all | HTML head title description |
|
| titre | chaîne de caractères | Non | Verdaccio | tous | Description du titre HTML |
|
||||||
| logo | string | No | http://my.logo.domain/logo.png | all | a URI where logo is located |
|
| logo | chaîne de caractères | Non | http://my.logo.domain/logo.png | tous | un URI où se trouve le logo |
|
||||||
| scope | string | No | \\@myscope | all | If you're using this registry for a specific module scope, specify that scope to set it in the webui instructions header (note: escape @ with \\@) |
|
| scope | chaîne de caractères | Non | \\@myscope | tous | Si vous utilisez ce registre pour un modul spécifique, définissez le dans l'en-tête des instructions de l'interface Web de l'utilisateur (note: escape @ with \\@) |
|
@ -1,52 +1,52 @@
|
|||||||
---
|
---
|
||||||
id: what-is-verdaccio
|
id: what-is-verdaccio
|
||||||
title: "What is Verdaccio?"
|
title: "C'est quoi Verdaccio?"
|
||||||
---
|
---
|
||||||
Verdaccio is a **lightweight private npm proxy registry** built in **Node.js**
|
Verdaccio est un **journal proxy npm léger et privé** écrit dans **Node.js**
|
||||||
|
|
||||||
## What's a registry
|
## Qu'est-ce qu'un journal
|
||||||
|
|
||||||
* A repository for packages that implements the **CommonJS Compliant Package Registry specification** for reading package info
|
* Référentiel des paquets qui implémentent la **spécification CommonJS Compliant Package Registry** pour la lecture des informations sur les paquets
|
||||||
* Provide an API compatible with npm clients **(yarn/npm/pnpm)**
|
* Fournit un API compatible avec les clients npm **(yarn/npm/pnpm)**
|
||||||
* Follow the semantic Versioning compatible **(semver)**
|
* Suit le contrôle de version compatible sémantique **(semver)**
|
||||||
|
|
||||||
$> verdaccio
|
$> verdaccio
|
||||||
|
|
||||||
|
|
||||||
![registry](/svg/verdaccio_server.gif)
|
![registry](/svg/verdaccio_server.gif)
|
||||||
|
|
||||||
## Using Verdaccio
|
## Utilisation de Verdaccio
|
||||||
|
|
||||||
Using verdaccio with any node package manager client is quite straightforward.
|
L'utilisation de verdaccio avec n'importe quel gestionnaire de paquets de poste client est très simple.
|
||||||
|
|
||||||
![registry](/svg/npm_install.gif)
|
![registry](/svg/npm_install.gif)
|
||||||
|
|
||||||
You can use a custom registry either setting globally for all your projects
|
Vous pouvez utiliser un registre personnalisé ou le configurer de manière général pour tous vos projets
|
||||||
|
|
||||||
npm set registry http://localhost:4873
|
npm set registry http://localhost:4873
|
||||||
|
|
||||||
|
|
||||||
or by command line as argument `--registry` in npm (slightly different in yarn)
|
ou depuis la ligne de commande comme argument `--registry` dans npm (légèrement différent dans yarn)
|
||||||
|
|
||||||
npm install lodash --registry http://localhost:4873
|
npm install lodash --registry http://localhost:4873
|
||||||
|
|
||||||
|
|
||||||
## Private
|
## Privé
|
||||||
|
|
||||||
All packages that you publish are private and only accessible based in your configuration.
|
Tous les paqutes que vous publiez sont privés et accessibles uniquement sur la base de votre configuration.
|
||||||
|
|
||||||
## Proxy
|
## Proxy
|
||||||
|
|
||||||
Verdaccio cache all dependencies by demand and speed up installations in local or private networks.
|
Verdaccio stocke toutes les dépendances sur demande et accélère les installations au niveau des réseaux locaux ou privés.
|
||||||
|
|
||||||
## Verdaccio in a nutshell
|
## Verdaccio en quelques mots
|
||||||
|
|
||||||
* It's a web app based on Node.js
|
* C'est une application web basée sur Node.js
|
||||||
* It's a private npm registry
|
* C'est un registre npm privé
|
||||||
* It's a local network proxy
|
* C'est un réseau local proxy
|
||||||
* It's a Pluggable application
|
* C'est une application extensible
|
||||||
* It's a fairly easy install and use
|
* Il est assez facile à installer et à utiliser
|
||||||
* We offer Docker and Kubernetes support
|
* Nous offrons un soutien Docker et Kubernetes
|
||||||
* It is 100% compatible with yarn, npm and pnpm
|
* Il est 100% compatible avec les yarn, npm et pnpm
|
||||||
* It was **forked** based on `sinopia@1.4.0` and 100% **backward compatible**.
|
* Il s'agit d'un **fork** basé sur `sinopia@1.4.0` et 100% **rétrocompatible**.
|
||||||
* Verdaccio means **A green color popular in late medieval Italy for fresco painting**.
|
* Le nom Verdaccio vient d'**Une nuance de vert populaire dans l’Italie médiévale tardive et utilisée pour les fresques**.
|
@ -1,51 +1,51 @@
|
|||||||
---
|
---
|
||||||
id: windows
|
id: windows
|
||||||
title: "Installing As a Windows Service"
|
title: "Installation en tant que service Windows"
|
||||||
---
|
---
|
||||||
Loosely based upon the instructions found [here](http://asysadmin.tumblr.com/post/32941224574/running-nginx-on-windows-as-a-service). I crafted the following and it provided me with a fully working verdaccio service installation:
|
Librement basé sur les instructions trouvées [ici](http://asysadmin.tumblr.com/post/32941224574/running-nginx-on-windows-as-a-service). J'ai élaboré ce qui suit, ce qui m'a fourni un service d'installation de verdaccio entièrement fonctionnel:
|
||||||
|
|
||||||
1. Create a directory for verdaccio
|
1. Créer un répertoire pour verdaccio
|
||||||
* mkdir `c:\verdaccio`
|
* mkdir `c:\verdaccio`
|
||||||
* cd `c:\verdaccio`
|
* cd `c:\verdaccio`
|
||||||
2. Install verdaccio locally (I ran into npm issues with global installs)
|
2. Installer verdaccio localement (j'ai rencontré des problèmes avec npm avec des installations générales)
|
||||||
* npm install verdaccio
|
* npm install verdaccio
|
||||||
3. Create your `config.yaml` file in this location `(c:\verdaccio\config.yaml)`
|
3. Créer votre fichier `confi.yaml` dans cet emplacement `(c:\verdaccio\config.yaml)`
|
||||||
4. Windows Service Setup
|
4. Configurer le service Windows
|
||||||
|
|
||||||
## Using NSSM
|
## Utilisation de NSSM
|
||||||
|
|
||||||
ALTERNATIVE METHOD: (WinSW package was missing when I tried to download it)
|
MÉTHODE ALTERNATIVE: (le paquet WinSW n'était pas présent lorsque j'ai essayé de le télécharger)
|
||||||
|
|
||||||
* Download [NSSM](https://www.nssm.cc/download/) and extract
|
* Téléchargez puis extrayez [NSSM](https://www.nssm.cc/download/)
|
||||||
|
|
||||||
* Add the path that contains nssm.exe to the PATH
|
* Ajoutez le chemin qui contient nssm.exe au PATH
|
||||||
|
|
||||||
* Open an administrative command
|
* Ouvrez une commande administrative
|
||||||
|
|
||||||
* Run nssm install verdaccio At a minimum you must fill in the Application tab Path, Startup directory and Arguments fields. Assuming an install with node in the system path and a location of c:\verdaccio the below values will work:
|
* Exécutez nssm install verdaccio. Vous devez au moins entrer le dossier de démarrage et les champs Arguments dans le chemin de l'onglet Application. En supposant une installation avec noeud dans le chemin système et un emplacement de c:\verdaccio, les valeurs ci-dessous fonctionneront:
|
||||||
|
|
||||||
* Path: `node`
|
* Path: `node`
|
||||||
* Startup directory: `c:\verdaccio`
|
* Répertoire de démarrage: `c:\verdaccio`
|
||||||
* Arguments: `c:\verdaccio\node_modules\verdaccio\build\lib\cli.js -c c:\verdaccio\config.yaml`
|
* Arguments: `c:\verdaccio\node_modules\verdaccio\build\lib\cli.js -c c:\verdaccio\config.yaml`
|
||||||
|
|
||||||
You can adjust other service settings under other tabs as desired. When you are done, click Install service button
|
Si vous le souhaitez, il est possible d'adapter d'autres configurations de service sous d'autres onglets. Une fois terminé, cliquez sur le bouton d'installation
|
||||||
|
|
||||||
* Start the service sc start verdaccio
|
* Démarrer le service sc start verdaccio
|
||||||
|
|
||||||
## Using WinSW
|
## Utilisation de WinSW
|
||||||
|
|
||||||
* As of 2015-10-27, WinSW is no longer available at the below location. Please follow the Using NSSM instructions above.
|
* À compter du 27/10/2015, WinSW n'est plus disponible à l'emplacement suivant. Veuillez suivre les instructions d'utilisation NSSM écrites ci-dessus.
|
||||||
* Download [WinSW](http://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/)
|
* Téléchargez [WinSW](http://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/)
|
||||||
* Place the executable (e.g. `winsw-1.9-bin.exe`) into this folder (`c:\verdaccio`) and rename it to `verdaccio-winsw.exe`
|
* Placez l'exécutable (par exemple `winsw-1.9-bin.exe`) dans ce dossier (`c:\verdaccio`) et renommez-le `verdaccio-winsw.exe`
|
||||||
* Create a configuration file in `c:\verdaccio`, named `verdaccio-winsw.xml` with the following configuration `xml verdaccio verdaccio verdaccio node c:\verdaccio\node_modules\verdaccio\src\lib\cli.js -c c:\verdaccio\config.yaml roll c:\verdaccio`.
|
* Créez un fichier de configuration dans `c:\verdaccio`, nommé `verdaccio-winsw.xml` avec la configuration suivante`xml verdaccio verdaccio verdaccio node c:\verdaccio\node_modules\verdaccio\src\lib\cli.js -c c:\verdaccio\config.yaml roll c:\verdaccio`.
|
||||||
* Install your service
|
* Installez votre service
|
||||||
* `cd c:\verdaccio`
|
* `cd c:\verdaccio`
|
||||||
* `verdaccio-winsw.exe install`
|
* `verdaccio-winsw.exe install`
|
||||||
* Start your service
|
* Démarrez votre service
|
||||||
* `verdaccio-winsw.exe start`
|
* `verdaccio-winsw.exe start`
|
||||||
|
|
||||||
Some of the above config is more verbose than I had expected, it appears as though 'workingdirectory' is ignored, but other than that, this works for me and allows my verdaccio instance to persist between restarts of the server, and also restart itself should there be any crashes of the verdaccio process.
|
Certaines des configurations ci-dessus sont plus détaillées que prévu. Il semble cependant que le 'workingdirectory' soit ignoré, à part cela, ceci fonctionne et permet, dans mon cas, que Verdaccio continue de fonctionner entre les redémarrages du serveur, en plus il redémarre de manière autonome en cas d’échec du processus de verdaccio.
|
||||||
|
|
||||||
## Repositories
|
## Référentiels
|
||||||
|
|
||||||
* [verdaccio-deamon-windows](https://github.com/davidenke/verdaccio-deamon-windows)
|
* [verdaccio-deamon-windows](https://github.com/davidenke/verdaccio-deamon-windows)
|
@ -11,33 +11,33 @@ Per ulteriori informazioni sui permessi, visita [la sezione autenticazione nella
|
|||||||
### Utilizzo
|
### Utilizzo
|
||||||
|
|
||||||
```yalm
|
```yalm
|
||||||
packages:
|
pacchetti:
|
||||||
# scoped packages
|
# packages con scopo
|
||||||
'@scope/*':
|
'@scopo/*':
|
||||||
access: $all
|
accesso: $all
|
||||||
publish: $all
|
pubblicare: $all
|
||||||
proxy: server2
|
proxy: server2
|
||||||
|
|
||||||
'private-*':
|
'privato-*':
|
||||||
access: $all
|
accessso: $all
|
||||||
publish: $all
|
pubblicare: $all
|
||||||
proxy: uplink1
|
proxy: uplink1
|
||||||
|
|
||||||
'**':
|
'**':
|
||||||
# allow all users (including non-authenticated users) to read and
|
# consenti a tutti gli utenti (inclusi gli utenti non autenticati) di leggere e
|
||||||
# publish all packages
|
# pubblicare tutti i pacchetti
|
||||||
access: $all
|
accesso: $all
|
||||||
publish: $all
|
pubblicare: $all
|
||||||
proxy: uplink2
|
proxy: uplink2
|
||||||
```
|
```
|
||||||
|
|
||||||
se non ne viene specificato nemmeno uno, rimane quello predefinito
|
se non ne viene specificato nemmeno uno, rimane quello predefinito
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
packages:
|
pacchetti:
|
||||||
'**':
|
'**':
|
||||||
access: $all
|
accessso: $all
|
||||||
publish: $authenticated
|
pubblicare: $authenticated
|
||||||
```
|
```
|
||||||
|
|
||||||
La lista di gruppi validi a seconda dei plugin predefiniti è
|
La lista di gruppi validi a seconda dei plugin predefiniti è
|
||||||
@ -56,10 +56,10 @@ Tutti gli utenti ricevono tutti questi gruppi di permessi indipendentemente dal
|
|||||||
Se si desidera proteggere un insieme specifico di pacchetti dentro al proprio gruppo, è necessario fare qualcosa simile a questo. Utilizziamo un `Regex` che copra tutti i pacchetti con prefisso `npmuser-`. Raccomandiamo di utilizzare un prefisso per i pacchetti, in modo che possa essere più semplice proteggerli.
|
Se si desidera proteggere un insieme specifico di pacchetti dentro al proprio gruppo, è necessario fare qualcosa simile a questo. Utilizziamo un `Regex` che copra tutti i pacchetti con prefisso `npmuser-`. Raccomandiamo di utilizzare un prefisso per i pacchetti, in modo che possa essere più semplice proteggerli.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
packages:
|
pacchetti:
|
||||||
'npmuser-*':
|
'npmuser-*':
|
||||||
access: npmuser
|
accessso: npmuser
|
||||||
publish: npmuser
|
pubblicare: npmuser
|
||||||
```
|
```
|
||||||
|
|
||||||
Riavviare `verdaccio` e provare ad installare `npmuser-core` nella console.
|
Riavviare `verdaccio` e provare ad installare `npmuser-core` nella console.
|
||||||
@ -96,11 +96,11 @@ Definire gruppi di accesso multipli è abbastanza facile, è sufficiente disting
|
|||||||
Se si desidera bloccare l'accesso/pubblicazione ad uno specifico gruppo di pacchetti, è sufficiente non definire `access` e `publish`.
|
Se si desidera bloccare l'accesso/pubblicazione ad uno specifico gruppo di pacchetti, è sufficiente non definire `access` e `publish`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
packages:
|
pacchetti:
|
||||||
'old-*':
|
'vecchio-*':
|
||||||
'**':
|
'**':
|
||||||
access: $all
|
accesso: $all
|
||||||
publish: $authenticated
|
pubblicare: $authenticated
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Bloccare l'inoltro di un gruppo di pacchetti specifici
|
#### Bloccare l'inoltro di un gruppo di pacchetti specifici
|
||||||
@ -110,19 +110,19 @@ Si potrebbe voler impedire che uno o vari pacchetti vengano raggiunti dai regist
|
|||||||
Vediamo l'esempio seguente:
|
Vediamo l'esempio seguente:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
packages:
|
pacchetti:
|
||||||
'jquery':
|
'jquery':
|
||||||
access: $all
|
accesso: $all
|
||||||
publish: $all
|
pubblicare: $all
|
||||||
'my-company-*':
|
'mia-azienda-*':
|
||||||
access: $all
|
accessso: $all
|
||||||
publish: $authenticated
|
pubblicare: $authenticated
|
||||||
'@my-local-scope/*':
|
'@mio-locale-scopo/*':
|
||||||
access: $all
|
accesso: $all
|
||||||
publish: $authenticated
|
pubblicare: $authenticated
|
||||||
'**':
|
'**':
|
||||||
access: $all
|
accesso: $all
|
||||||
publish: $authenticated
|
pubblicare: $authenticated
|
||||||
proxy: npmjs
|
proxy: npmjs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -115,14 +115,14 @@ store:
|
|||||||
### Plugin di autorizzazione
|
### Plugin di autorizzazione
|
||||||
|
|
||||||
* [verdaccio-bitbucket](https://github.com/idangozlan/verdaccio-bitbucket): plugin di autenticazione di Bitbucket per verdaccio.
|
* [verdaccio-bitbucket](https://github.com/idangozlan/verdaccio-bitbucket): plugin di autenticazione di Bitbucket per verdaccio.
|
||||||
* [verdaccio-bitbucket-server](https://github.com/oeph/verdaccio-bitbucket-server): Bitbucket Server authentication plugin for verdaccio.
|
* [verdaccio-bitbucket-server](https://github.com/oeph/verdaccio-bitbucket-server): Plugin di autenticazione Bitbucket Server per verdaccio.
|
||||||
* [verdaccio-ldap](https://www.npmjs.com/package/verdaccio-ldap): LDAP auth plugin for verdaccio.
|
* [verdaccio-ldap](https://www.npmjs.com/package/verdaccio-ldap): LDAP auth plugin per verdaccio.
|
||||||
* [verdaccio-active-directory](https://github.com/nowhammies/verdaccio-activedirectory): Active Directory authentication plugin for verdaccio
|
* [verdaccio-active-directory](https://github.com/nowhammies/verdaccio-activedirectory): Plugin di autenticazione Active Directory per verdaccio
|
||||||
* [verdaccio-gitlab](https://github.com/bufferoverflow/verdaccio-gitlab): use GitLab Personal Access Token to authenticate
|
* [verdaccio-gitlab](https://github.com/bufferoverflow/verdaccio-gitlab): utilizza il Token di Accesso Personale di GitLab per autenticare
|
||||||
* [verdaccio-gitlab-ci](https://github.com/lab360-ch/verdaccio-gitlab-ci): Enable GitLab CI to authenticate against verdaccio.
|
* [verdaccio-gitlab-ci](https://github.com/lab360-ch/verdaccio-gitlab-ci): Abilitare GitLab CI per l'autenticazione con verdaccio.
|
||||||
* [verdaccio-htpasswd](https://github.com/verdaccio/verdaccio-htpasswd): Auth based on htpasswd file plugin (built-in) for verdaccio
|
* [verdaccio-htpasswd](https://github.com/verdaccio/verdaccio-htpasswd): Auth basato sul file di plugin htpasswd (interno) per verdaccio
|
||||||
* [verdaccio-github-oauth](https://github.com/aroundus-inc/verdaccio-github-oauth): Github oauth authentication plugin for verdaccio.
|
* [verdaccio-github-oauth](https://github.com/aroundus-inc/verdaccio-github-oauth): Plugin di autenticazione Github oauth per verdaccio.
|
||||||
* [verdaccio-github-oauth-ui](https://github.com/n4bb12/verdaccio-github-oauth-ui): GitHub OAuth plugin for the verdaccio login button.
|
* [verdaccio-github-oauth-ui](https://github.com/n4bb12/verdaccio-github-oauth-ui): Plugin GitHub OAuth per il bottone di login di verdaccio.
|
||||||
|
|
||||||
### Plugin di Middleware
|
### Plugin di Middleware
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: webui
|
id: webui
|
||||||
title: "Web User Interface"
|
title: "Interfaccia utente web"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ registry=http://localhost:5555/
|
|||||||
|
|
||||||
#### Anonimowa publikacja
|
#### Anonimowa publikacja
|
||||||
|
|
||||||
`verdaccio`allows you to enable anonymous publish, to achieve that you will need to set up correctly your [packages access](packages.md).
|
`verdaccio` pozwala włączyć anonimowe publikowania, aby to osiągnąć, musisz poprawnie ustawić swój <a [dostęp do pakietów](packages.md).
|
||||||
|
|
||||||
Eg:
|
Eg:
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ Eg:
|
|||||||
proxy: npmjs
|
proxy: npmjs
|
||||||
```
|
```
|
||||||
|
|
||||||
As is described [on issue #212](https://github.com/verdaccio/verdaccio/issues/212#issuecomment-308578500) until `npm@5.3.0` and all minor releases **won't allow you publish without a token**. Jednakże `yarn` nie posiada takich ograniczeń.
|
Zgodnie z opisem [w sprawie #212](https://github.com/verdaccio/verdaccio/issues/212#issuecomment-308578500) aż do `npm@5.3.0` i wszystkie drobne wersje **nie pozwolą ci publikować bez tokenu**. Jednakże `yarn` nie posiada takich ograniczeń.
|
||||||
|
|
||||||
## Domyślne htpasswd
|
## Domyślne htpasswd
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
id: cli
|
id: cli
|
||||||
title: "Narzędzie wiersza poleceń"
|
title: "Narzędzie wiersza poleceń"
|
||||||
---
|
---
|
||||||
The verdaccio CLI is your go start the application.
|
Verdaccio CLI to Twój start, aby uruchomić aplikację.
|
||||||
|
|
||||||
## Komendy
|
## Komendy
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ verdaccio --listen 4000 --config ~./config.yaml
|
|||||||
|
|
||||||
## Domyślna lokalizacja pliku konfiguracyjnego
|
## Domyślna lokalizacja pliku konfiguracyjnego
|
||||||
|
|
||||||
To locate the home directory, we rely on **$XDG_DATA_HOME** as a first choice and Windows environment we look for [APPDATA environment variable](https://www.howtogeek.com/318177/what-is-the-appdata-folder-in-windows/).
|
Aby znaleźć katalog osobisty, polegamy na **$XDG_DATA_HOME** pierwszym wyborze i środowisku Windows, którego szukamy [APPDATA environment variable](https://www.howtogeek.com/318177/what-is-the-appdata-folder-in-windows/).
|
||||||
|
|
||||||
## Domyślna lokalizacja magazynu danych
|
## Domyślna lokalizacja magazynu danych
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
id: configuration
|
id: konfiguracja
|
||||||
title: "Plik konfiguracyjny"
|
title: "Plik konfiguracyjny"
|
||||||
---
|
---
|
||||||
Plik ten jest podstawą verdaccio, ponieważ to w nim możesz modyfikować domyślne zachowanie aplikacji, rozszerzać jej funkcje oraz włączać wtyczki.
|
Plik ten jest podstawą verdaccio, ponieważ to w nim możesz modyfikować domyślne zachowanie aplikacji, rozszerzać jej funkcje oraz włączać wtyczki.
|
||||||
@ -8,7 +8,7 @@ Domyślny plik konfiguracyjny jest tworzony, gdy po raz pierwszy uruchomisz `ver
|
|||||||
|
|
||||||
## Podstawowa konfiguracja
|
## Podstawowa konfiguracja
|
||||||
|
|
||||||
The default configuration has support for **scoped** packages and allow any user to access all packages but only **authenticated users to publish**.
|
Domyślna konfiguracja obsługuje pakiety **o zakresie** i umożliwia każdemu użytkownikowi dostęp do wszystkich pakietów, ale tylko **uwierzytelnionych użytkowników do publikowania**.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
storage: ./storage
|
storage: ./storage
|
||||||
@ -31,7 +31,7 @@ logs:
|
|||||||
|
|
||||||
## Sekcje
|
## Sekcje
|
||||||
|
|
||||||
The following sections explain what each property means and the different options.
|
Poniższe sekcje wyjaśniają, co oznacza każda właściwość i różne opcje.
|
||||||
|
|
||||||
### Magazyn danych
|
### Magazyn danych
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ storage: ./storage
|
|||||||
|
|
||||||
### Wtyczki
|
### Wtyczki
|
||||||
|
|
||||||
Is the location of the plugin directory. Useful for Docker/Kubernetes based deployments.
|
Jest lokalizacja katalogu wtyczek. Przydatny w przypadku wdrożeń opartych na Docker/Kubernetes.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
plugins: ./plugins
|
plugins: ./plugins
|
||||||
@ -62,7 +62,7 @@ auth:
|
|||||||
|
|
||||||
### Internetowy interfejs użytkownika
|
### Internetowy interfejs użytkownika
|
||||||
|
|
||||||
This property allow you to modify the look and feel of the web UI. For more information about this section read the [web ui page](web.md).
|
Ta właściwość pozwala Ci zmienić wygląd internetowego interfejsu użytkownika.. Więcej informacji na temat tej sekcji można znaleźć na stronie [internetowego interfejsu użytkownika](web.md).
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
web:
|
web:
|
||||||
@ -74,7 +74,7 @@ web:
|
|||||||
|
|
||||||
### Uplinks
|
### Uplinks
|
||||||
|
|
||||||
Uplinks is the ability of the system to fetch packages from remote registries when those packages are not available locally. For more information about this section read the [uplinks page](uplinks.md).
|
Uplinks to zdolność systemu do pobierania pakietów ze zdalnych rejestrów, gdy pakiety te nie są dostępne lokalnie. Więcej informacji na temat tej sekcji można znaleźć na [stronie uplinks](uplinks.md).
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uplinks:
|
uplinks:
|
||||||
@ -84,7 +84,7 @@ uplinks:
|
|||||||
|
|
||||||
### Packages
|
### Packages
|
||||||
|
|
||||||
Packages allow the user to control how the packages are gonna be accessed. For more information about this section read the [packages page](packages.md).
|
Pakiety pozwalają użytkownikowi kontrolować, w jaki sposób pakiety będą dostępne. Więcej informacji na temat tej sekcji można znaleźć na [stronie pakietów](packages.md).
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
packages:
|
packages:
|
||||||
|
@ -20,7 +20,7 @@ Wszyscy posiadamy różne umiejętności, więc zobaczmy w czym czujesz się kom
|
|||||||
|
|
||||||
### Znam lub chcę się nauczyć Node.js
|
### Znam lub chcę się nauczyć Node.js
|
||||||
|
|
||||||
Node.js jest podstawą `verdaccio`, używamy bibliotek takich jak `express`, `commander`, `request` lub `async`. Verdaccio is basically a Rest API that create a communication with `npm` clients compatible, as `yarn`.
|
Node.js jest podstawą `verdaccio`, używamy bibliotek takich jak `express`, `commander`, `request` lub `async`. Verdaccio to w zasadzie Rest API, które tworzy komunikację z `npm` klientami zgodnymi, jak `yarn`.
|
||||||
|
|
||||||
Posiadamy długą [listę wtyczek](plugins.md) gotową do użycia oraz rozwijania, ale również możesz [stworzyć swoją własną](dev-plugins.md).
|
Posiadamy długą [listę wtyczek](plugins.md) gotową do użycia oraz rozwijania, ale również możesz [stworzyć swoją własną](dev-plugins.md).
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ Of course, we will be happy to help us improving the stack, you can upgrade depe
|
|||||||
|
|
||||||
Tutaj jest kilka pomysłów:
|
Tutaj jest kilka pomysłów:
|
||||||
|
|
||||||
* Create a common eslint rules to be used across all dependencies or plugins
|
* Utwórz wspólne reguły eslint, które będą używane we wszystkich zależnościach lub wtyczkach
|
||||||
* Improve Flow types definitions delivery
|
* Improve Flow types definitions delivery
|
||||||
* Moving to Webpack 4
|
* Moving to Webpack 4
|
||||||
* Improve hot reload with Webpack
|
* Improve hot reload with Webpack
|
||||||
@ -71,7 +71,7 @@ Przygotowaliśmy projekt, w którym możesz wybrać swój ulubiony język, jeśl
|
|||||||
|
|
||||||
Jeśli myślisz *"Widziałem już [repozytoria](repositories.md) i jestem gotów zacząć od razu"*, wtedy mam dla Ciebie dobrą wiadomość, która znajduje się w następnym kroku.
|
Jeśli myślisz *"Widziałem już [repozytoria](repositories.md) i jestem gotów zacząć od razu"*, wtedy mam dla Ciebie dobrą wiadomość, która znajduje się w następnym kroku.
|
||||||
|
|
||||||
You will need learn how to build, [we have prepared a guide just for that](build.md).
|
Będziesz potrzebował nauczyć się budować, [przygotowaliśmy dla ciebie poradnik](build.md).
|
||||||
|
|
||||||
Gdy zapoznasz się ze wszystkimi skryptami i będziesz wiedział jak ich używać, będziesz gotów do następnego kroku, uruchom [**Test jednostek**](test.md).
|
Gdy zapoznasz się ze wszystkimi skryptami i będziesz wiedział jak ich używać, będziesz gotów do następnego kroku, uruchom [**Test jednostek**](test.md).
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ interface IPluginAuth extends IPlugin {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
> Only `adduser`, `allow_access` and `allow_publish` are optional, verdaccio provide a fallback in all those cases.
|
> Tylko `dduser`, `allow_access` i `allow_publish` są opcjonalne, verdaccio zapewnia cofnięcie we wszystkich tych przypadkach.
|
||||||
|
|
||||||
#### Callback
|
#### Callback
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ callback(null, false)
|
|||||||
|
|
||||||
Uwierzytelnianie zakończone sukcesem.
|
Uwierzytelnianie zakończone sukcesem.
|
||||||
|
|
||||||
`groups` is an array of strings where the user is part of.
|
`grupy` to tablica ciągów znaków, w których użytkownik jest częścią.
|
||||||
|
|
||||||
callback(null, groups);
|
callback(null, groups);
|
||||||
|
|
||||||
@ -90,11 +90,11 @@ auth:
|
|||||||
file: ./htpasswd
|
file: ./htpasswd
|
||||||
```
|
```
|
||||||
|
|
||||||
Where `htpasswd` is the sufix of the plugin name. eg: `verdaccio-htpasswd` and the rest of the body would be the plugin configuration params.
|
Gdzie `htpasswd` jest przyrostkiem nazwy wtyczki. np: `verdaccio-htpasswd`, a reszta będzie parametrem konfiguracyjnym wtyczki.
|
||||||
|
|
||||||
## Wtyczka oprogramowania pośredniego
|
## Wtyczka oprogramowania pośredniego
|
||||||
|
|
||||||
Middleware plugins have the capability to modify the API layer, either adding new endpoints or intercepting requests.
|
Wtyczki pośrednie mają możliwość modyfikowania warstwy API, dodając nowe punkty końcowe lub przechwytywania żądań.
|
||||||
|
|
||||||
```flow
|
```flow
|
||||||
interface verdaccio$IPluginMiddleware extends verdaccio$IPlugin {
|
interface verdaccio$IPluginMiddleware extends verdaccio$IPlugin {
|
||||||
@ -104,7 +104,7 @@ interface verdaccio$IPluginMiddleware extends verdaccio$IPlugin {
|
|||||||
|
|
||||||
### register_middlewares
|
### register_middlewares
|
||||||
|
|
||||||
The method provide full access to the authentification and storage via `auth` and `storage`. `app` is the express application that allows you to add new endpoints.
|
Metoda zapewnia pełny dostęp do uwierzytelniania i przechowywania za pomocą `auth` i `storage`. `app` to ekspresowa aplikacja, która pozwala dodawać nowe punkty końcowe.
|
||||||
|
|
||||||
> A pretty good example of middleware plugin is the [sinopia-github-oauth](https://github.com/soundtrackyourbrand/sinopia-github-oauth) and [verdaccio-audit](https://github.com/verdaccio/verdaccio-audit).
|
> A pretty good example of middleware plugin is the [sinopia-github-oauth](https://github.com/soundtrackyourbrand/sinopia-github-oauth) and [verdaccio-audit](https://github.com/verdaccio/verdaccio-audit).
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ function register_middlewares(expressApp, authInstance, storageInstance) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Aby zarejestrować oprogramowanie pośrednie potrzebujemy obiekt z pojedynczą metodą `register_middlewares`, która otrzyma 3 argumenty (`expressApp, auth, storage`). *Auth* is the authentification instance and *storage* is also the main Storage instance that will give you have access to all to the storage actions.
|
Aby zarejestrować oprogramowanie pośrednie potrzebujemy obiekt z pojedynczą metodą `register_middlewares`, która otrzyma 3 argumenty (`expressApp, auth, storage`). *Auth* to instancja uwierzytelniania, a *storage* to także główna instancja Storage, która zapewnia dostęp do wszystkich działań związanych z pamięcią masową.
|
||||||
|
|
||||||
## Wtyczka magazynu danych
|
## Wtyczka magazynu danych
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
id: ansible
|
id: ansible
|
||||||
title: "Ansible"
|
title: "Ansible"
|
||||||
---
|
---
|
||||||
|
|
||||||
U okviru naše organizacije, nudimo prilagođena rešenja za `verdaccio`.
|
U okviru naše organizacije, nudimo prilagođena rešenja za `verdaccio`.
|
||||||
|
|
||||||
<https://github.com/verdaccio/ansible-verdaccio>
|
<https://github.com/verdaccio/ansible-verdaccio>
|
||||||
|
@ -4,7 +4,7 @@ title: "Autentifikacija"
|
|||||||
---
|
---
|
||||||
Autentifikacija je vezana za auth [plugin](plugins.md) koji koristite. Ograničenja paketa su definisana preko [Package Access](packages.md).
|
Autentifikacija je vezana za auth [plugin](plugins.md) koji koristite. Ograničenja paketa su definisana preko [Package Access](packages.md).
|
||||||
|
|
||||||
Autentifikaciju klijenta vrši sam `npm` klijent. Nakon prijave na alikaciju:
|
Autentifikaciju klijenta vrši sam `npm` klijent. Nakon prijave na aplikaciju:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm adduser --registry http://localhost:4873
|
npm adduser --registry http://localhost:4873
|
||||||
@ -49,7 +49,7 @@ auth:
|
|||||||
|
|
||||||
| Svojstvo | Tip | Neophodno | Primer | Podrška | Opis |
|
| Svojstvo | Tip | Neophodno | Primer | Podrška | Opis |
|
||||||
| --------- | ------ | --------- | ---------- | ------- | -------------------------------------- |
|
| --------- | ------ | --------- | ---------- | ------- | -------------------------------------- |
|
||||||
| file | string | Da | ./htpasswd | all | file koji sadrži šivrovane credentials |
|
| file | string | Da | ./htpasswd | all | file koji sadrži šifrovane credentials |
|
||||||
| max_users | number | Ne | 1000 | all | podešava maksimalni broj korisnika |
|
| max_users | number | Ne | 1000 | all | podešava maksimalni broj korisnika |
|
||||||
|
|
||||||
Ako se odlučite na to da ne dozvolite korisnicima da se prijave, možete podesiti `max_users: -1`.
|
Ako se odlučite na to da ne dozvolite korisnicima da se prijave, možete podesiti `max_users: -1`.
|
@ -43,7 +43,7 @@ storage: ./storage
|
|||||||
|
|
||||||
### Plugins
|
### Plugins
|
||||||
|
|
||||||
Je lokacija plugin directorijuma. Ovo je korisno za deployment baiziran na Docker/Kubernetes.
|
Je lokacija plugin directorijuma. Ovo je korisno za deployment baziran na Docker/Kubernetes.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
plugins: ./plugins
|
plugins: ./plugins
|
||||||
|
@ -47,7 +47,7 @@ Mnogi saradnici imaju dar za pronalaženje grešaka u kucanju i gramatičkih gre
|
|||||||
|
|
||||||
### Ja sam Dizajner
|
### Ja sam Dizajner
|
||||||
|
|
||||||
Frontend našeg website <http://www.verdaccio.org/> bi bio jako srećan da vidi u usvoji neku od Vaših ideja.
|
Frontend našeg website <http://www.verdaccio.org/> bi bio jako srećan da vidi i usvoji neku od Vaših ideja.
|
||||||
|
|
||||||
Inače, naš sajt je baziran na [Docusaurus](https://docusaurus.io/).
|
Inače, naš sajt je baziran na [Docusaurus](https://docusaurus.io/).
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ Verdaccio stremi ka tome da bude dostupan na što više jezika. Kako bismo to po
|
|||||||
|
|
||||||
<img src="https://d3n8a8pro7vhmx.cloudfront.net/uridu/pages/144/attachments/original/1485948891/Crowdin.png" width="400px" />
|
<img src="https://d3n8a8pro7vhmx.cloudfront.net/uridu/pages/144/attachments/original/1485948891/Crowdin.png" width="400px" />
|
||||||
|
|
||||||
Postavili smo projekt tako da možete da odaberete svoj omiljeni jezik, a ako ga ne pronađete na listi, slobodno zatažite da ga dodamo tako što ćete nam [poslati poruku (ticket)](https://github.com/verdaccio/verdaccio/issues/new).
|
Postavili smo projekat tako da možete da odaberete svoj omiljeni jezik, a ako ga ne pronađete na listi, slobodno zatražite da ga dodamo tako što ćete nam [poslati poruku (ticket)](https://github.com/verdaccio/verdaccio/issues/new).
|
||||||
|
|
||||||
[Pravac na Crowdin Verdaccio](https://crowdin.com/project/verdaccio)
|
[Pravac na Crowdin Verdaccio](https://crowdin.com/project/verdaccio)
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Ima mnogo načina da proširite `verdaccio`, tipovi podržanih plugin-a su:
|
|||||||
|
|
||||||
## Authentication Plugin
|
## Authentication Plugin
|
||||||
|
|
||||||
U suštini treba da vratimo objekt korišćenjem metode zvane `authenticate` koja prima 3 argumenta (`user, password, callback`).
|
U suštini treba da vratimo objekat korišćenjem metode zvane `authenticate` koja prima 3 argumenta (`user, password, callback`).
|
||||||
|
|
||||||
### API
|
### API
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ Ako želite da koristite docker image na rpi ili kompatibilnom uređaju, postoji
|
|||||||
npm run build:docker:rpi
|
npm run build:docker:rpi
|
||||||
```
|
```
|
||||||
|
|
||||||
Primite k znanju da za svaku docker komandu morate imati na svojoj mašini instaliran docker zajedno sa docker executable koja mora biti dostuna na `$PATH`.
|
Primite k znanju da za svaku docker komandu morate imati na svojoj mašini instaliran docker zajedno sa docker executable koja mora biti dostupna na `$PATH`.
|
||||||
|
|
||||||
## Docker Primeri
|
## Docker Primeri
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ yarn global add verdaccio
|
|||||||
|
|
||||||
## Osnovna upotreba
|
## Osnovna upotreba
|
||||||
|
|
||||||
Jednom kada se instalita, sve što treba je da izvršite CLI komandu:
|
Jednom kada se instalira, sve što treba je da izvršite CLI komandu:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$> verdaccio
|
$> verdaccio
|
||||||
|
@ -16,7 +16,7 @@ helm init
|
|||||||
|
|
||||||
### Instaliranje
|
### Instaliranje
|
||||||
|
|
||||||
Deploy Helm [stable/verdaccio](https://github.com/kubernetes/charts/tree/master/stable/verdaccio) chart. U ovom primeru koristimo `npm` kao ime izdanja (release nam):
|
Deploy Helm [stable/verdaccio](https://github.com/kubernetes/charts/tree/master/stable/verdaccio) chart. U ovom primeru koristimo `npm` kao ime izdanja (release name):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm install --name npm stable/verdaccio
|
helm install --name npm stable/verdaccio
|
||||||
|
@ -34,7 +34,7 @@ Posebno se zahvaljujemo *[@Lisapressmar](https://github.com/Lisapressmar)* za nj
|
|||||||
|
|
||||||
![svg format, simbol bez teksta](/img/logo/symbol/svg/verdaccio-tiny.svg)
|
![svg format, simbol bez teksta](/img/logo/symbol/svg/verdaccio-tiny.svg)
|
||||||
|
|
||||||
### Crno-Belo
|
### Crno&Belo
|
||||||
|
|
||||||
![simbol, bw, mali](/img/logo/symbol/png/verdaccio-blackwhite.png)
|
![simbol, bw, mali](/img/logo/symbol/png/verdaccio-blackwhite.png)
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ Primer:
|
|||||||
|
|
||||||
### Package Published
|
### Package Published
|
||||||
|
|
||||||
Možete pristupiti opciji package is being published pomoću ključe reči `{{publishedPackage}}` na sledeći način.
|
Možete pristupiti opciji package is being published pomoću ključne reči `{{publishedPackage}}` na sledeći način.
|
||||||
|
|
||||||
{{ publisher.name }} has published {{publishedPackage}}"}
|
{{ publisher.name }} has published {{publishedPackage}}"}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ auth:
|
|||||||
|
|
||||||
### Middleware Plugin Configuration
|
### Middleware Plugin Configuration
|
||||||
|
|
||||||
Ovo je primer koji pokzuje kako treba da podesite middleware plugin. Svi middleware plugini moraju biti definisani u **middlewares** namespace.
|
Ovo je primer koji pokazuje kako treba da podesite middleware plugin. Svi middleware plugini moraju biti definisani u **middlewares** namespace.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
middlewares:
|
middlewares:
|
||||||
@ -72,7 +72,7 @@ middlewares:
|
|||||||
|
|
||||||
### Store Plugin Configuration
|
### Store Plugin Configuration
|
||||||
|
|
||||||
Ovo je primer koji pokzuje kako treba da podesite storage plugin. Svi storage plugini moraju se definisati u **store** namespace.
|
Ovo je primer koji pokazuje kako treba da podesite storage plugin. Svi storage plugini moraju se definisati u **store** namespace.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
store:
|
store:
|
||||||
@ -132,7 +132,7 @@ store:
|
|||||||
|
|
||||||
### Storage Plugins
|
### Storage Plugins
|
||||||
|
|
||||||
(kompatibilani od verzije 3.x)
|
(kompatibilni od verzije 3.x)
|
||||||
|
|
||||||
* [verdaccio-memory](https://github.com/verdaccio/verdaccio-memory) Storage plugin za hostovanje paketa u Memory
|
* [verdaccio-memory](https://github.com/verdaccio/verdaccio-memory) Storage plugin za hostovanje paketa u Memory
|
||||||
* [verdaccio-s3-storage](https://github.com/remitly/verdaccio-s3-storage) Storage plugin za hostovanje paketa na **Amazon S3**
|
* [verdaccio-s3-storage](https://github.com/remitly/verdaccio-s3-storage) Storage plugin za hostovanje paketa na **Amazon S3**
|
||||||
|
@ -26,7 +26,7 @@ Dale, prijavljen sam kao **teamD**. Ne bi trebalo da budem u mogućnosti da pris
|
|||||||
teamD
|
teamD
|
||||||
```
|
```
|
||||||
|
|
||||||
**Neću imati pristup do svih dependencies-a i takođe neću biti vidljiv preko weba za korisnika **teamD**. Ako pokušam da pristupip, dogodiće se sledeće.</p>
|
**Neću imati pristup do svih dependencies-a i takođe neću biti vidljiv preko weba za korisnika **teamD**. Ako pokušam da pristupim, dogodiće se sledeće.</p>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
➜ npm install my-company-core
|
➜ npm install my-company-core
|
||||||
|
@ -83,6 +83,6 @@ location ~ ^/verdaccio/(.*)$ {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
U ovom slučaju, `url_prefix` treba setuje `/verdaccio/`
|
U ovom slučaju, `url_prefix` treba podesiti na `/verdaccio/`
|
||||||
|
|
||||||
> Napomena: Postoji Slash posle putanje za instalaciju (`https://your-domain:port/verdaccio/`)!
|
> Napomena: Postoji Slash posle putanje za instalaciju (`https://your-domain:port/verdaccio/`)!
|
@ -19,11 +19,11 @@ $ sudo su verdaccio
|
|||||||
$ cd ~
|
$ cd ~
|
||||||
```
|
```
|
||||||
|
|
||||||
Komanda 'cd ~' šalje Vas do home direktorijuma verdaccio korinika. Postarajte se da pokrenete verdaccio barem jednom kako biste generisali config fajl. Modifikujte ga prema svojim potrebama.
|
Komanda 'cd ~' šalje Vas do home direktorijuma verdaccio korisnika. Postarajte se da pokrenete verdaccio barem jednom kako biste generisali config fajl. Modifikujte ga prema svojim potrebama.
|
||||||
|
|
||||||
## Listening na svim adresama
|
## Listening na svim adresama
|
||||||
|
|
||||||
Ako želite da osluškujete (listen to) svaku eksternu adresu, podesite listen derectivu u config:
|
Ako želite da osluškujete (listen to) svaku eksternu adresu, podesite listen direktivu na:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# you can specify listen address (or simply a port)
|
# you can specify listen address (or simply a port)
|
||||||
@ -44,7 +44,7 @@ Prvo instalirajte forever globalno:
|
|||||||
$ sudo npm install -g forever
|
$ sudo npm install -g forever
|
||||||
```
|
```
|
||||||
|
|
||||||
Proverite da li ste pokrenuli verdaccio barem jednom kako biste generisali config fajl i upišete admin korisnika. Posle toga, možete koristiti sledeću komandu kako biste pokrenuli verdaccio:
|
Proverite da li ste pokrenuli verdaccio barem jednom kako biste generisali config fajl i upisali admin korisnika. Posle toga, možete koristiti sledeću komandu kako biste pokrenuli verdaccio:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ forever start `which verdaccio`
|
$ forever start `which verdaccio`
|
||||||
@ -54,7 +54,7 @@ Možete pogledati dokumentaciju za više informacija o tome kako da koristite fo
|
|||||||
|
|
||||||
## Preživljavanje resetovanja servera
|
## Preživljavanje resetovanja servera
|
||||||
|
|
||||||
Možemo istovremeno koristiti crontab i forever kako bismo restartovali verdaccio nakon svakog reboot-ovanja servera. Nakon što ste prijavljeni kao verdaccio koristnik, zadajte sledeće:
|
Možemo istovremeno koristiti crontab i forever kako bismo restartovali verdaccio nakon svakog reboot-ovanja servera. Nakon što ste prijavljeni kao verdaccio korisnik, zadajte sledeće:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ crontab -e
|
$ crontab -e
|
||||||
|
@ -40,6 +40,6 @@ Instrukcije važe uglavnom za OSX i Linux, dok će na Windows-u putanje (paths)
|
|||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
Ako koristite Docker image, potrebno je da podesite `PROTOCOL` environment varijablu na `https` posto je `listen` argument obezbeđen kao [Dockerfile](https://github.com/verdaccio/verdaccio/blob/master/Dockerfile#L43), i stoga ignorisan od strane config fajla.
|
Ako koristite Docker image, potrebno je da podesite `PROTOCOL` environment varijablu na `https` pošto je `listen` argument obezbeđen kao [Dockerfile](https://github.com/verdaccio/verdaccio/blob/master/Dockerfile#L43), i stoga ignorisan od strane config fajla.
|
||||||
|
|
||||||
Takođe možete da podesite `PORT` environment variablu ako koristite različit port od `4873`.
|
Takođe možete da podesite `PORT` environment variablu ako koristite različit port od `4873`.
|
@ -2,9 +2,9 @@
|
|||||||
id: unit-testing
|
id: unit-testing
|
||||||
title: "Unit Testing"
|
title: "Unit Testing"
|
||||||
---
|
---
|
||||||
Svi testovi su podeljen u tri foldera:
|
Svi testovi su podeljeni u tri foldera:
|
||||||
|
|
||||||
- `test/unit` - Testovi koji pokrivaju funkcije koje transformišu podatke na ne-trivijalni način. Da biste testirali, koristite `require()` na nekolliko fajlova i pokrenite kod, brzo se izvršava.
|
- `test/unit` - Testovi koji pokrivaju funkcije koje transformišu podatke na netrivijalni način. Da biste testirali, koristite `require()` na nekolliko fajlova i pokrenite kod, brzo se izvršava.
|
||||||
- `test/functional` - Test koji pokreće verdaccio instancu i pokreće seriju zahteva nad http. Ovaj tip testova je sporiji od unit testova.
|
- `test/functional` - Test koji pokreće verdaccio instancu i pokreće seriju zahteva nad http. Ovaj tip testova je sporiji od unit testova.
|
||||||
- `test/integration` - Test koji pokreće verdaccio instancu i zahteva je koristeći npm. Ovaj tip testova je izuzetno spor i može da pogodi pravi npm registry. **unmaintained test**
|
- `test/integration` - Test koji pokreće verdaccio instancu i zahteva je koristeći npm. Ovaj tip testova je izuzetno spor i može da pogodi pravi npm registry. **unmaintained test**
|
||||||
|
|
||||||
|
@ -81,6 +81,6 @@ uplinks:
|
|||||||
|
|
||||||
* Verdaccio ne koristi Basic Authentication od verzije `v2.3.0`. Svi tokeni koje generiše verdaccio, bazirani su na JWT ([JSON Web Token](https://jwt.io/))
|
* Verdaccio ne koristi Basic Authentication od verzije `v2.3.0`. Svi tokeni koje generiše verdaccio, bazirani su na JWT ([JSON Web Token](https://jwt.io/))
|
||||||
* Uplinks moraju biti registries kompatibilni sa `npm` endpoints. Primer: *verdaccio*, `sinopia@1.4.0`, *npmjs registry*, *yarn registry*, *JFrog*, *Nexus* i tako dalje.
|
* Uplinks moraju biti registries kompatibilni sa `npm` endpoints. Primer: *verdaccio*, `sinopia@1.4.0`, *npmjs registry*, *yarn registry*, *JFrog*, *Nexus* i tako dalje.
|
||||||
* Podešavanje `cache` na false, pomoći će da se uštedi prostor na hard disku. Tako se izbgava čuvanje `tarballs-a` ali [će čuvati metadata u folderima](https://github.com/verdaccio/verdaccio/issues/391).
|
* Podešavanje `cache` na false, pomoći će da se uštedi prostor na hard disku. Tako se izbegava čuvanje `tarballs-a` ali [će čuvati metadata u folderima](https://github.com/verdaccio/verdaccio/issues/391).
|
||||||
* Preterivanje sa uplinks može usporiti lookup Vaših packages-a jer svaki put kada npm client traži zahtev, verdaccio pravi 1 pozivanje za svaki uplink.
|
* Preterivanje sa uplinks može usporiti lookup Vaših packages-a jer svaki put kada npm client traži zahtev, verdaccio pravi 1 pozivanje za svaki uplink.
|
||||||
* Format za (timeout, maxage i fail_timeout) je usklađen sa [NGINX jedinicama mere](http://nginx.org/en/docs/syntax.html)
|
* Format za (timeout, maxage i fail_timeout) je usklađen sa [NGINX jedinicama mere](http://nginx.org/en/docs/syntax.html)
|
@ -22,10 +22,10 @@ Ovde postoje dve opcije:
|
|||||||
|
|
||||||
1. Ako želite da kreirate poseban fork i zaustavite sinhronizaciju sa javnom verzijom.
|
1. Ako želite da kreirate poseban fork i zaustavite sinhronizaciju sa javnom verzijom.
|
||||||
|
|
||||||
Ako želite da uradite to, trebalo bi da modifikujetesvoju fajl za konfiguraciju tako da verdaccio prestane da traži zahteve od npmjs koji se odnose na taj paket. Dodajte psoeban unos za ovaj paket u *config.yaml* i uklonite `npmjs` iz `proxy` liste i restartujte server.
|
Ako želite da uradite to, trebalo bi da modifikujete svoj fajl za konfiguraciju tako da verdaccio prestane da traži zahteve od npmjs koji se odnose na taj paket. Dodajte poseban unos za ovaj paket u *config.yaml* i uklonite `npmjs` iz `proxy` liste i restartujte server.
|
||||||
|
|
||||||
Kada publikujete svoj paket lokalno, verovatno bi trebalo da otpočnete sa sa verzijom novijom od postojeće, tako da se izbegne konflikt sa postojećim paketom u cache-u.
|
Kada publikujete svoj paket lokalno, verovatno bi trebalo da otpočnete sa sa verzijom novijom od postojeće, tako da se izbegne konflikt sa postojećim paketom u cache-u.
|
||||||
|
|
||||||
2. Ako želite da svoju verziju samo privremeno, ali da se vratite na javnu čim se pojavi ažurirana.
|
2. Ako želite da svoju verziju koristite samo privremeno, ali da se vratite na javnu čim se pojavi ažurirana.
|
||||||
|
|
||||||
Kako biste izbegli konflikte sa verzijama, trebalo bi da koristite pre-release suffix sledeće patch verzije. Na primer, ako je javni paket verzije 0.1.2, možete upload-ovati 0.1.3-my-temp-fix. Na taj način paket koji koristite će opstati dok se ne pojavi javna verzija paketa 0.1.3.
|
Kako biste izbegli konflikte sa verzijama, trebalo bi da koristite pre-release suffix sledeće patch verzije. Na primer, ako je javni paket verzije 0.1.2, možete upload-ovati 0.1.3-my-temp-fix. Na taj način paket koji koristite će opstati dok se ne pojavi javna verzija paketa 0.1.3.
|
@ -49,4 +49,4 @@ Verdaccio kešira sve dependencies na zahtev i tako ubrzava instaliranje na loka
|
|||||||
* Nudimo Docker i Kubernetes podršku
|
* Nudimo Docker i Kubernetes podršku
|
||||||
* 100% Komparibilan sa yarn, npm i pnpm
|
* 100% Komparibilan sa yarn, npm i pnpm
|
||||||
* Nakon što je **forkovan** na bazi `sinopia@1.4.0` ostvaruje100% **kompatibilnost unazad**.
|
* Nakon što je **forkovan** na bazi `sinopia@1.4.0` ostvaruje100% **kompatibilnost unazad**.
|
||||||
* Ime Verdaccio označava **zelenu boja koja se koristila za italijansko freskoslikarstvo kasnog srednjeg veka**.
|
* Ime Verdaccio označava **zelenu boju koja se koristila za italijansko freskoslikarstvo kasnog srednjeg veka**.
|
@ -28,13 +28,13 @@ ALTERNATIVNI METOD: (WinSW paket je nedostajao kada je jedan od naših saradnika
|
|||||||
* Startup directory: `c:\verdaccio`
|
* Startup directory: `c:\verdaccio`
|
||||||
* Arguments: `c:\verdaccio\node_modules\verdaccio\build\lib\cli.js -c c:\verdaccio\config.yaml`
|
* Arguments: `c:\verdaccio\node_modules\verdaccio\build\lib\cli.js -c c:\verdaccio\config.yaml`
|
||||||
|
|
||||||
Možete podesite druga servisna podešavanja u okviru ostalih tabova po sopstvenim željama. Kada završite, kliknite dugme Install service
|
Možete da podesite druga servisna podešavanja u okviru ostalih tabova po sopstvenim željama. Kada završite, kliknite dugme Install service
|
||||||
|
|
||||||
* Pokrenite service sc, pokrenite verdaccio
|
* Pokrenite service sc, pokrenite verdaccio
|
||||||
|
|
||||||
## Korišćenje WinSW
|
## Korišćenje WinSW
|
||||||
|
|
||||||
* Od 2015-10-27, WinSW više nije dostupan na navedenoj lpkaciji. Pratite instrukcije date u Using NSSM.
|
* Od 2015-10-27, WinSW više nije dostupan na navedenoj lokaciji. Pratite instrukcije date u Using NSSM.
|
||||||
* Preuzmite [WinSW](http://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/)
|
* Preuzmite [WinSW](http://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/)
|
||||||
* Postavite exe (primer, `winsw-1.9-bin.exe`) u ovaj folder (`c:\verdaccio`) i preimenujte u `verdaccio-winsw.exe`
|
* Postavite exe (primer, `winsw-1.9-bin.exe`) u ovaj folder (`c:\verdaccio`) i preimenujte u `verdaccio-winsw.exe`
|
||||||
* Napravite fajl za konfigurisanje `c:\verdaccio`, nazvan `verdaccio-winsw.xml` sa sledećom konfiguracijom `xml verdaccio verdaccio verdaccio node c:\verdaccio\node_modules\verdaccio\src\lib\cli.js -c c:\verdaccio\config.yaml roll c:\verdaccio`.
|
* Napravite fajl za konfigurisanje `c:\verdaccio`, nazvan `verdaccio-winsw.xml` sa sledećom konfiguracijom `xml verdaccio verdaccio verdaccio node c:\verdaccio\node_modules\verdaccio\src\lib\cli.js -c c:\verdaccio\config.yaml roll c:\verdaccio`.
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
id: ansible
|
id: ansible
|
||||||
title: "Ansible"
|
title: "Ansible"
|
||||||
---
|
---
|
||||||
We have a customised solution for `verdaccio` in our organization.
|
У оквиру наше организације, нудимо прилагођена решења за `verdaccio`.
|
||||||
|
|
||||||
<https://github.com/verdaccio/ansible-verdaccio>
|
<https://github.com/verdaccio/ansible-verdaccio>
|
||||||
|
|
||||||
#### Other options
|
#### Остале могућности
|
||||||
|
|
||||||
* Ansible role for Gentoo users: [jirutka/ansible-role-sinopia](https://github.com/jirutka/ansible-role-sinopia).
|
* Ansible role за кориснике Gentoo-а: [jirutka/ansible-role-sinopia](https://github.com/jirutka/ansible-role-sinopia).
|
||||||
* Ansible role for Ubuntu users: [jagregory/sinopia-ansible](https://github.com/jagregory/sinopia-ansible).
|
* Ansible role за кориснике Ubuntu-а: [jagregory/sinopia-ansible](https://github.com/jagregory/sinopia-ansible).
|
||||||
* ansible-verdaccio-role <https://github.com/refinery29/ansible-verdaccio-role>
|
* ansible-verdaccio-role <https://github.com/refinery29/ansible-verdaccio-role>
|
@ -2,15 +2,15 @@
|
|||||||
id: authentification
|
id: authentification
|
||||||
title: "Authentification"
|
title: "Authentification"
|
||||||
---
|
---
|
||||||
The authentification is tied to the auth [plugin](plugins.md) you are using. The package restrictions also is handled by the [Package Access](packages.md).
|
Аутентификација је везана за auth [plugin](plugins.md) који користите. Ограничења пакета су дефинисана преко [Package Access](packages.md).
|
||||||
|
|
||||||
The client authentification is handled by `npm` client itself. Once you login to the application:
|
Аутентификацију клијента врши сам `npm` клијент. Након пријаве на апликацију:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm adduser --registry http://localhost:4873
|
npm adduser --registry http://localhost:4873
|
||||||
```
|
```
|
||||||
|
|
||||||
A token is generated in the `npm` configuration file hosted in your user home folder. For more information about `.npmrc` read the [official documentation](https://docs.npmjs.com/files/npmrc).
|
Токен се генерише у фајлу за конфигурацију `npm` који се налази у home фолдеру корисника. Како бисте сазнали више о `.npmrc` прочитајте [official documentation](https://docs.npmjs.com/files/npmrc).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat .npmrc
|
cat .npmrc
|
||||||
@ -19,11 +19,11 @@ registry=http://localhost:5555/
|
|||||||
//registry.npmjs.org/:_authToken=secretNpmjsToken
|
//registry.npmjs.org/:_authToken=secretNpmjsToken
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Anonymous publish
|
#### Анонимно публиковање
|
||||||
|
|
||||||
`verdaccio`allows you to enable anonymous publish, to achieve that you will need to set up correctly your [packages access](packages.md).
|
`verdaccio` Вам омогућава да пружите могућност анонимног публиковања. Како бисте успели у томе, потребно је да подесите [packages access](packages.md).
|
||||||
|
|
||||||
Eg:
|
Пример:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
'my-company-*':
|
'my-company-*':
|
||||||
@ -32,11 +32,11 @@ Eg:
|
|||||||
proxy: npmjs
|
proxy: npmjs
|
||||||
```
|
```
|
||||||
|
|
||||||
As is described [on issue #212](https://github.com/verdaccio/verdaccio/issues/212#issuecomment-308578500) until `npm@5.3.0` and all minor releases **won't allow you publish without a token**. However `yarn` has not such limitation.
|
Као што је описано, [on issue #212](https://github.com/verdaccio/verdaccio/issues/212#issuecomment-308578500) све док `npm@5.3.0` и све верзије не буду усаглашене **неће Вам бити омогућено да публикујете без токена**. Ипак, `yarn` нема таква ограничења.
|
||||||
|
|
||||||
## Default htpasswd
|
## Подразумевана htpasswd
|
||||||
|
|
||||||
In order to simplify the setup, `verdaccio` use a plugin based on `htpasswd`. As of version v3.0.x an [external plugin](https://github.com/verdaccio/verdaccio-htpasswd) is used by default. The v2.x version of this package still contains the built-in version of this plugin.
|
Како би се поједноставио setup, `verdaccio` use a plugin базиран на `htpasswd`. Од верзије v3.0.x [екстерни plugin](https://github.com/verdaccio/verdaccio-htpasswd) се користи као подразумеван. Верзија v2.x и даље садржи уграђену верзију овог plugin-а.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
auth:
|
auth:
|
||||||
@ -47,9 +47,9 @@ auth:
|
|||||||
#max_users: 1000
|
#max_users: 1000
|
||||||
```
|
```
|
||||||
|
|
||||||
| Property | Type | Required | Example | Support | Description |
|
| Својство | Тип | Неопходно | Пример | Подршка | Опис |
|
||||||
| --------- | ------ | -------- | ---------- | ------- | ---------------------------------------- |
|
| --------- | ------ | --------- | ---------- | ------- | -------------------------------------- |
|
||||||
| file | string | Yes | ./htpasswd | all | file that host the encrypted credentials |
|
| file | string | Да | ./htpasswd | all | фајл који садржи шифроване credentials |
|
||||||
| max_users | number | No | 1000 | all | set limit of users |
|
| max_users | number | Не | 1000 | all | подешава максимални број корисника |
|
||||||
|
|
||||||
In case to decide do not allow user to login, you can set `max_users: -1`.
|
Ако се одлучите на то да не дозволите корисницима да се пријаве, можете подесити `max_users: -1`.
|
@ -2,12 +2,12 @@
|
|||||||
id: build
|
id: build
|
||||||
title: "Build the source code"
|
title: "Build the source code"
|
||||||
---
|
---
|
||||||
Verdaccio relies on `yarn` instead `npm` to download dependencies.
|
Verdaccio се ослања на `yarn` уместо на `npm` како би преузео dependencies.
|
||||||
|
|
||||||
*Note: the current build only will build with `➜ yarn@1.x`.
|
*Напомена: тренутни build ће моћи да ради само са build with `➜ yarn@1.x`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn install
|
yarn install
|
||||||
```
|
```
|
||||||
|
|
||||||
To see the complete list of scripts, [click here](https://github.com/verdaccio/verdaccio/wiki/Build-Source-Code).
|
Како бисте видели комплетну листу scripts-a, [кликните овде](https://github.com/verdaccio/verdaccio/wiki/Build-Source-Code).
|
Loading…
Reference in New Issue
Block a user