preactjs/wmr

Make npm registry url configurable

Open

#167 aperta il 20 ott 2020

Vedi su GitHub
 (4 commenti) (3 reazioni) (0 assegnatari)JavaScript (114 fork)batch import
enhancementgood first issuehelp wantedreliability

Metriche repository

Star
 (4903 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Just came across one of our client projects, which uses their own npm registry instead of the official one. By making it configurable via cli-flag like --registry https://my-registry.com we could support that use case.

I'm wondering if this is how we can make our npm plugin testable too! We could spin up a fake registry since we only ever download the tarball and use the --registry flag in our tests to point to our mocked server.

Guida contributor