This guide will walk you through the process of creating a JavaScript package,
building it, pushing it to Gemfury, and then installing it. Before you get
started, be sure you have the following:
You can configure your Yarn project to use Gemfury as the primary
source of npm packages. To start, commit a .yarnrc
configuration
to the root directory of your project:
# PROJECT_DIR/.yarnrc
registry "https://npm.fury.io/USERNAME/"
Subsequently, each collaborator would locally authenticate using their
Gemfury credentials before running yarn
commands:
npm config set always-auth true
npm login --registry=https://npm.fury.io/USERNAME/
It is important to include a trailing slash in the registry URL,
otherwise yarn
may have trouble connecting to your Gemfury registry.
…
You can configure your JavaScript project to use Gemfury as the
primary source of packages. To start, commit a .npmrc
configuration to the root directory of your project:
# PROJECT_DIR/.npmrc
registry=https://npm.fury.io/USERNAME/
Subsequently, each collaborator would locally authenticate using their
Gemfury credentials before running npm
commands:
npm login --registry=https://npm.fury.io/USERNAME/
It is important to include a trailing slash in the registry URL,
otherwise npm
may have trouble connecting to your Gemfury registry.
…
You can configure your Bun project to use Gemfury as the primary
source of npm packages. To start, commit a bunfig.toml
configuration
to the root directory of your project:
[install]
registry = "https://npm.fury.io/USERNAME/"
This will access the public repository for USERNAME
account repository.
It is important to include a trailing slash in the registry URL,
otherwise bun
may have trouble connecting to your Gemfury registry.
Blended-index registry
The npm.fury.io
endpoint only enables access to packages in your
Gemfury account, however, you can similarly configure to use the blended index
registry URL to combine your account index with the public index:
…
You can configure your Lerna project to publish packages to your
Gemfury account. To start, authenticate into your registry with
your personal credentials:
npm login --registry=https://npm.fury.io/USERNAME/
It is important to include a trailing slash in the registry URL,
otherwise npm
may have trouble connecting to your Gemfury registry.
Once you’ve successfully logged in, you can publish with:
lerna publish --registry=https://npm.fury.io/USERNAME/
Lerna works with either npm.fury.io
or the blended
index endpoint npm-proxy.fury.io
…