lub-plugin-publish
v1.0.2
Published
repo changelog generator
Downloads
3
Readme
lub-plugin-publish
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.