rl2

0.2.1 • Public • Published

rl2, release v2

release is a great library, but it doesn't seem to be updated at the moment. release2 solved some of the legacy issues.


features

  • Hooks are always available.
  • No dependencies. (40k ~gzip).
  • Support multiple remotes.
  • Faster running speed.

usage

release2 will help you automatically generate a release, follow SemVer spec.

  • download: npm i -g rl2

  • release: rl patch


support release types:

rl major: incompatible API change.

rl minor: backwards-compatible functionality.

rl patch: backwards-compatible bug fix.

rl pre: pre-release.

rl pre <type>: custom pre-release.

rl -p: push everything to remote.


use with npx

required npm > 5.2.0 what is npx.

npx rl2 <type>

installation time is less than 1 sec by npx.   npx-demo


hooks

rl2 will look for a file named release.js in the root directory of your project.

// release.js
module.export = (meta: Release.HookMetas): string => {
  if (meta.type === 'patch') {
    return 'fix some bugs'
  }
  return meta.version
}

Hook params:

export interface ChangeInfo {
  name: string,
  pluralName: string,
  description: string,
}

export interface HookMetas {
  infos: ChangeInfo,
  type: string,
  version: string,
}

license

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i rl2

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

148 kB

Total Files

5

Last publish

Collaborators

  • echo_unix