@jenius2/j2-npm-pkg-status
Jenius 2 npm module overview
Last updated 3 years ago by j2techlead .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @jenius2/j2-npm-pkg-status 
SYNC missed versions from official npm registry.

node-j2-npm-pkg-status build status coverage report

What's up with dem Jenius 2 npm modules?

Table of Contents

Install:

npm install --save @jenius2/j2-npm-pkg-status

Usage

const npmPkgStatus = require('@jenius2/j2-npm-pkg-status');

const options = {
  gitlab: {
    url: process.env.GITLAB_URL,
    token: process.env.GITLAB_TOKEN
  },
  npm: {
    url: process.env.NPM_URL,
    token: process.env.NPM_TOKEN
  }
};

npmPkgStatus(options)
.then(res => console.dir(res))
.catch(err => console.error(err));

Sample output:

[
  {
    id: 153,
    name: 'node-j2-errors',
    description: 'Errors for Jenius 2 node servers.',
    webUrl: 'https://git.ecommchannels.com/jenius2/node-j2-errors',
    buildBadgeUrl: 'https://git.ecommchannels.com/jenius2/node-j2-errors/badges/master/build.svg',
    coverBadgeUrl: 'https://git.ecommchannels.com/jenius2/node-j2-errors/badges/master/coverage.svg',
    buildStatus: 'success',
    coverage: '100',
    tag: 'v0.3.0-rc.1',
    npmTag: 'v0.2.8'
  }
]

Structure

Uses Node LTS. Source in lib, tests in test.

Files and Directory Structure

    .
    ├── README.md               # this file
    ├── artifacts/              # generated reports etc
    ├── lib                     # source code for the module
    ├── package.json            # description of this package for npm, including dependency lists
    └── test                    # all specs

What's Included?

Developer Guide

Easy commands for good times:

Command Usage
npm run lint Lint the code.
npm test Run tests.
npm run test:cov Run test with coverage written to ./artifacts/coverage.
npm version patch && git push tags Create a release. The pipeline will publish the module.

Current Tags

  • 0.8.2                                ...           latest (3 years ago)

10 Versions

  • 0.8.2                                ...           3 years ago
  • 0.8.1                                ...           3 years ago
  • 0.8.0                                ...           3 years ago
  • 0.7.1                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.1                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |