Verdaccio

Verdaccio

  • Documentación
  • Blog
  • Twitter
  • Ayuda
  • GitHub
  • Contributors
  • Patrocinanos
  • Languages iconEspañol
    • English
    • Français
    • 中文
    • Russian
    • Yoruba
    • Ayuda con traducciones

›Uses Cases

Introducción

  • Qué es Verdaccio?
  • Instalación
  • Herramienta de Linea de Comando
  • Using a private registry
  • Quien usa Verdaccio?
  • Security Policy
  • Logotype
  • Uses Cases

    • Pruebas End to End
    • Caching strategies
    • GitHub Actions
    • Linking a Remote Registry

    Talks & Articles

    • Articles
    • Talks

Características

  • Archivo de Configuración
  • Uplinks
  • Acceso a Paquetes
  • Autenticación
  • Notificaciones
  • Registrador
  • Interfaz Web de Usuario

Servidor

  • Configuración del Servidor
  • Configuración de Proxy Inverso
  • Configurar los Certificados SSL
  • Instalación como un Servicio de Windows
  • Instalación en servidor IIS

Desarrollo

  • Plugins
  • Extensiones en Desarrollo
  • Dev Guides

    • Plugin Generator
    • Extensión de Autenticación
    • Extensión de Middleware
    • Extensión de Almacenamiento
  • Nodo API

DevOps

  • Docker
  • Kubernetes
  • Integración Continua
  • Cloud

    • Amazon Web Services

    Tools

    • Ansible
    • Puppet
    • Libro de Cocina del Chef

Guías

  • Mejores Prácticas
  • Protegiendo paquetes
  • Amazon Web Services
Translate

Pruebas End to End

Algunos projectos organizan paquetes en multi repositorios o mono repositorios. Pruebas E2E es un tema que usualmente es solo relevante para Interfaces de Usuario, pero desde el punto de vista de Node.js, los paquetes que publicamos tambien debe ser probados.

Solution: a local npm registry. https://t.co/kvcyVANVSK

— Dan Abramov (@dan_abramov) 11 de enero de 2018

Tal enfoque ha sido realmente difícil de lograr considerando:

  • Populate canary packages on public services seems not to be a good idea
  • Some self-hosted OSS registries are too heavy
  • Offline environments (private networks)

Verdaccio is a lightweight registry with zero-configuration that fits perfectly in any E2E + CI workflow.

Implementation

There is no a silver bullet yet, each implementation seems to be specific for each project, you can check some of them in the following thread clicking here.

Example using Bash

This is the most simple example using Verdaccio in a bash script (extracted from create-react-app).

#!/bin/sh

set -e

local_registry="http://0.0.0.0:4873"

# start local registry
tmp_registry_log=`mktemp`
sh -c "mkdir -p $HOME/.config/verdaccio"
sh -c "cp --verbose /config.yaml $HOME/.config/verdaccio/config.yaml"
sh -c "nohup verdaccio --config $HOME/.config/verdaccio/config.yaml &>$tmp_registry_log &"
# wait for `verdaccio` to boot
grep -q 'http address' <(tail -f $tmp_registry_log)
# login so we can publish packages
sh -c "npm-auth-to-token -u test -p test -e test@test.com -r $local_registry"
# Run nmp command
sh -c "npm --registry $local_registry publish"

Who is using it for E2E?

  • create-react-app (+73.5k ⭐️)
  • Storybook (+44k ⭐️)
  • Gatsby *(+40k ⭐️)
  • Babel.js (+35k ⭐️)
  • Uppy (+21k ⭐️)
  • Aurelia Framework (+12k ⭐️)
  • ethereum/web3.js (+8k ⭐️)
  • bit (+6k ⭐️)
  • pnpm (+6k ⭐️)
  • Mozilla Neutrino (+3k ⭐️)
  • Embark (+3k ⭐️)
  • Hyperledger Composer (+1.6k ⭐️)
  • Wix Yoshi
← LogotypeCaching strategies →
  • Implementation
    • Example using Bash
  • Who is using it for E2E?
Verdaccio
Docs
Getting StartedDockerConfigurationLogos
Community
User ShowcaseStack OverflowProject ChatFollow Verdaccio on Twitter
More
BlogGitHubStar