question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gauging Interest in Guide for Verdaccio Private Registry Uplink

See original GitHub issue

I am writing to gauge interest in whether or not create-react-app would like a new User Guide detailing how to run end to end testing with a private verdaccio uplink, enabling the installation of private packages as dependencies.

Context

create-react-app uses verdaccio to spin up a local registry to publish and pull the current changeset being built - effectively testing exactly how the user would. (By the way, this is awesome!)

create-react-app has the luxury of using the default verdaccio config which includes the public npm registry. All packages to be installed are public.

Problem

A problem is encountered if a team wishes to fork create-react-app and add private or proxied npm packages, as they won’t be found on the public registry (at least unauthenticated). This causes yarn installs to fail with 404s during CI. I think one could argue this may be a pretty specific problem, depending on if teams choose to fork the whole monorepo or just react-scripts, but we’ve found value in the former, and as such, am writing this issue to propose the solution.

Solution

What we’ve down to support this behavior is

  • add our private registry as an uplink
  • alter end to end scripts to add auth or header properties to the verdaccio confg file during CI, being careful not to leak any secret.

This allows us to test generation of create-react-app while pulling down our custom/private packages.

We find it unlikely that we are the only team to encounter this use case. Would create-react-app accept a PR to the User Guide detailing how to accomplish this task?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
iansucommented, May 18, 2018

I’m not saying it doesn’t belong in the user guide, just that I’m not sure.

Here’s a proposal: submit a PR adding a section to the user guide (maybe something like “CI testing with private packages”). If it’s general enough and useful to others, we’ll merge it. If not you can move it to a blog post and we’ll just link to the blog post from the user guide.

1reaction
Timercommented, Nov 2, 2018

Sure, we can add this somewhere. Send a PR?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uplinks | Verdaccio
An uplink is a link with an external registry that provides access to external packages.
Read more >
Host, Publish and Manage Private npm Packages with ...
Introducing Verdaccio. Verdaccio is an npm package which allows you to create a local npm registry, without any configuration. It's a batteries ...
Read more >
verdaccio/verdaccio - Docker Image - Docker Hub
Verdaccio is a simple, zero-config-required local private npm registry. No need for an entire database just to get started! Verdaccio comes out of...
Read more >
Five use cases where a npm private proxy fits in your workflow
How verdaccio solves this? ... Easy peasy, it uses uplinks. You can proxy multiple registries using a single one instead, that's cool, right?...
Read more >
NPM Verdaccio - set uplink to own remote server
I just built an NPM Verdaccio private registry server within our local network and I would like configure an UPLINK to our remote...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found