0.2.1 • Published 5 years ago

rl2 v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1-canary.2

5 years ago

0.1.1-canary.0

5 years ago

0.1.0

5 years ago