FullCount utilizes Verdaccio as a private NPM repository. FullCount’s instance of Verdaccio is installed on the devtools server and can be accessed in a browser at https://devtools02.fullcount.net/verdaccio/. Verdaccio acts as a proxy to public NPM and caches any public packages that our applications install. It also stores our own dependency packages that we publish (ex: react-components, react-api).
Network or VPN access is required to access Verdaccio. Anyone with access can view packages within Verdaccio, but only the teamcity user has permissions to publish packages to Verdaccio.
To utilize Verdaccio in a React project, an .npmrc file must be created with contents:
registry=https://devtools02.fullcount.net/verdaccio
If a project needs to be published to Verdaccio, the package.json file needs to contain:
"publishConfig": {
"registry": "https://devtools02.fullcount.net/verdaccio/"
}
The project also needs a set-version.js script that manages the version number of the package. If setting up a new project that requires this script, copy from another project.
Only package names that are scoped with @fullcount/ can be published to Verdaccio.