dde
dde copied to clipboard
Add NPM registry proxy
https://verdaccio.org/docs/en/docker
To speed up installs
First steps in feature/npm-registry-cache, needs further work due to several concerns:
- Lockfile includes registry URL -> how to handle CI / different environments? Maybe just shadow the NPM registry inside the DDE network?
- What happens if Lockfile references a resolved file, but the proxy doesn't have it cached yet?
Maybe we could also use something like https://www.npmjs.com/package/npm-proxy-cache - not exactly the same use-case but same direction
https://github.com/yarnpkg/yarn/issues/5892
Seems like this will be included in Yarn v2 (Berry), and possibly not backported. Until then not sure how to proceed - except some hackery with string replacements, or just dynamic proxying.
Closing this issue as stale. If this is still a concern, please open a new issue