Skip to content

lubjs/lub-plugin-publish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

publish to git and npm with changelog

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors