This step will walk you through creating an npm repository type and uploading your go project, allowing you to use Artifactory as your artifact repository. You can then follow the instructions to create other types of repositories, such as Maven, Go, and Docker.
Navigate to the Administration Module.
Expand the Repositories menu and click the Repositories menu item.
Create three new npm package type repositories.
Add a new Local Repository with the Repository Key “npm-challenge-local” and keep the rest of the default settings.
Click on the Remote tab and add a new Remote Repository with the Repository Key “npm-challenge-remote” and keep the rest of the default settings.
Click on the Virtual tab and add a new Virtual Repository with the Repository Key “npm-challenge”.
Add the local and remote npm repositories you just created.
Configure JFrog CLI, a smart client that provides a simple interface that automates access to JFrog products simplifying our automation scripts.
Configure the Artifactory server.
$ jf c add
Take the following steps to build the project with npm and resolve the project dependencies from Artifactory.
Configure the project's npm repositories.
$ jf rt npm-config
Build the project with npm and resolve the project dependencies from Artifactory.
Install the project while resolving the project dependencies from Artifactory.
$jf rt npm-install --build-name=npm-challenge-build --build-number=1.0.0
Publish the npm Packages into Artifactory
$ jf rt npm-install --build-name=npm-challenge-build --build-number=1.0.0
Collect environment variables and add them to the build info.
$ jf rt bce npm-challenge-build 1.0.0
Publish the build-info to Artifactory.
$ jf rt bp npm-challenge-build 1.0.0
Navigate to the Application Module.
Expand the Artifactory menu and click the Artifacts menu item.
Here you’ll be able to see the details of your new artifacts.