Verdaccio
Summary
We use verdaccio, a "A lightweight open source private npm proxy registry", to test publishing locally.
Setup
- Install verdaccio
DENDRON_ROOT=/path/to/monorepo
npm install -g verdaccio
cd $DENDRON_ROOT
- Switch To verdaccio
# we have helper scripts to set local registry
source bootstrap/scripts/helpers.sh
setRegLocal
- Run registry
verdaccio
- 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