Verdaccio

Summary

We use verdaccio, a "A lightweight open source private npm proxy registry", to test publishing locally.

Setup

  1. Install verdaccio
DENDRON_ROOT=/path/to/monorepo
npm install -g verdaccio
cd $DENDRON_ROOT
  1. Switch To verdaccio
# we have helper scripts to set local registry
source bootstrap/scripts/helpers.sh
setRegLocal
  1. Run registry
verdaccio
  1. Create a local npm account
npm login
# NOTE: use username of `dendron`
username: dendron
passwod: ...

Cook

Use local registry

cd $DENDRON_ROOT
source bootstrap/scripts/helpers.sh
setRegLocal
verdaccio

Use remote registry

cd $DENDRON_ROOT
source bootstrap/scripts/helpers.sh
setRegRemote

Backlinks