@0x-lerna-fork/describe-ref
Parse git describe output for lerna-related tags
Last updated a year ago by fberger .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @0x-lerna-fork/describe-ref 
SYNC missed versions from official npm registry.

@0x-lerna-fork/describe-ref

Parse git describe output for lerna-related tags

Usage

const describe = require("@0x-lerna-fork/describe-ref");

(async () => {
  const { lastTagName, lastVersion, refCount, sha, isDirty } = await describe();
})();

// values listed here are their defaults
const options = {
  cwd: process.cwd(),
  // pass a glob to match tag name, e.g. "v*.*.*"
  match: undefined,
  // if true, omit --first-parent option
  includeMergedTags: false,
};

const { lastTagName, lastVersion, refCount, sha, isDirty } = describe.sync(options);

const result = describe.parse("v1.0.0-5-gdeadbeef");
// { lastTagName, lastVersion, refCount, sha, isDirty }

Install lerna for access to the lerna CLI.

Current Tags

  • 3.16.3                                ...           latest (a year ago)

2 Versions

  • 3.16.3                                ...           a year ago
  • 3.16.2                                ...           a year ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 1
Last Month 2
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |