preactjs/wmr

Make npm registry url configurable

Open

#167 创建于 2020年10月20日

在 GitHub 查看
 (4 评论) (3 反应) (0 负责人)JavaScript (4,903 star) (114 fork)batch import
enhancementgood first issuehelp wantedreliability

描述

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.

贡献者指南

Make npm registry url configurable · preactjs/wmr#167 | Good First Issue