lub-plugin-publish

1.0.2 • Public • Published

lub-plugin-publish

NPM version build status Test coverage David deps Known Vulnerabilities NPM download

This lub plugin help you to publish and tag your package quickly and formaly based on Semantic Versioning Specification.

Featrues:

  • generate changelog
  • check version
  • check npm package tag

Install

npm i lub lub-plugin-publish --save

Usage:

Add this plugin to lub config files like: .lubrc , .lubrc.json, .lubrc.js

// .lubrc.js
"use strict";

const path = require("path");

module.exports = {
  plugins: ['lub-plugin-publish']
};

Then publish with this plugin:

lub publish [major | minor | patch | version]

argvs

use lub publish -h to view all the help info

Usage: lub publish [major | minor | patch | version]

Global Options:
  -h, --help     Show help                         [boolean]
  -v, --version  Show version number               [boolean]

Options:
  --registry, -r  set npm's registry                [string] [default: "https://registry.npmjs.org"]
  --filename, -f  changelog file name               [string] [default: "CHANGELOG"]
  --client, -c    npm client                        [string] [default: "npm"]
  --npm, -n       whether to publish to npm         [boolean] [default: true]

tip

You can run lub pubish [version] --no-npm to only publish to git.

License

MIT

/lub-plugin-publish/

    Package Sidebar

    Install

    npm i lub-plugin-publish

    Weekly Downloads

    6

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    15.3 kB

    Total Files

    6

    Last publish

    Collaborators

    • dxd_sjtu