Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.38 KB

USAGE.md

File metadata and controls

52 lines (35 loc) · 1.38 KB

Usage

DRPM is intended to be used for installing or publishing DPKs. Before using DRPM to install or publish DPKs, follow one of the processes in SETUP.md.

Table of Contents

Install DPK(s)

package.json dependencies

Steps to install a DPK to an existing npm project using package.json deps.

  • Ensure the local registry server is running on port 2092 (visit http://localhost:2092)
  • Manually add the package name to package.json dependencies
{
  "dependencies": {
    "@drpm/packageName~methodSpecificId": "[prefix]M.m.p"
  }
}
  • Run npm install

npm cli

Steps to install a DPK to an existing npm project using the npm cli.

  • Ensure the local registry server is running on port 2092 (visit http://localhost:2092)
  • Run the following from the root of your npm project
npm install @drpm/packageName~methodSpecificId # if using dht
npm install @drpm/packageName~method~methodSpecificId # if not using dht
  • Alternatively, you can use one of the below commands based on need
npm install --registry=localhost:2092 packageName~methodSpecificId # if using dht
npm install --registry=localhost:2092 packageName~method~methodSpecificId # if not using dht

Publish DPK(s)

COMING SOON!