npm

Need private packages and team management tools?Check out npm Orgs. »

cubx-dependency-resolver

1.3.2 • Public • Published

cubx-dependency-resolver

Build Status

Module for building the rarw dependency tree of a list of root dependencies.

Usage:

Command line:

cubx-dependency-resolver -u <baseUrl> -d <rootDependencies>

For instance:

cubx-dependency-resolver -u 'https://cubbles.world/sandbox' -d '[{ "webpackageId": "com.incowia.cubx-webpackage-viewer@2.0.0-SNAPSHOT", "artifactId": "cubx-structure-viewer" }]'

Parameters

  • -u/--baseUrl url of the base where dependencies are hosted
  • d/--rootDependencies a list of root dependencies (JSON valid), or a path to a JSON file containing the list
  • -t/--type to CLI accepting the values:
    • raw: returns raw DependencyTree
    • resolved: returns resolved Dependency Tree
    • list (default): return ordered list of resources
    • wplist: return a list of webpackages only (without resources and derived from resolved dependency tree)
    • mlist: return a list of manifests of all webpackages (derived from resolved dependency tree)
  • -m/--mode to CLI accepting the values (Note: this only applies if parameter type is set to value list:
    • prod (default): Use only prod resources
    • dev: Use only dev resources

Other npm modules

var baseUrl = 'http://base.example';
var rootDependencies = [
                           {
                               "artifactId": "util1",
                               "webpackageId": "package1@1.0.0"
                           },
                           {
                               "artifactId": "util2",
                               "webpackageId": "package2@1.0.0"
                           }
                       ];
 
var ArtifactsDepsResolver = require('cubx-dependency-resolver');
var artifactsDepsResolver = new ArtifactsDepsResolver();
artifactsDepsResolver.resolveDependencies(rootDependencies, baseUrl);

install

npm i cubx-dependency-resolver

Downloadsweekly downloads

3

version

1.3.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability