series: Guide Js

Introduction

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: Gemfury account Local Node.js installation yarn or npm installed locally

Install packages with Yarn

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 incorrectly connect to our registry. 

Install packages with npm

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 incorrectly connect to our registry. Blended-index registry The npm.