bumped-terminal

0.8.1 • Public • Published

bumped-terminal


bumped

Last version Dependency status Dev Dependencies Status NPM Status Donate

Executes whatever terminal command inside bumped as prerelease or postrelease action.

Configure your .bumpedrc adding a entry for bumped-terminal as the follow example:

files: [
  'package.json'
]
 
plugins:
 
  prerelease:
    'Linting config files':
      plugin: 'bumped-finepack'
 
  postrelease:
 
    'Generating CHANGELOG file':
      plugin: 'bumped-changelog'
 
    'Commiting new version':
      plugin: 'bumped-terminal'
      command: 'git add CHANGELOG.md package.json && git commit -m "Release $newVersion"'

which produces the following output:

example

Install

You don't need to install it! Bumped automatically resolve the plugins dependencies. However if you still want to do so must be globally accessible:

$ npm install -g bumped-terminal

The plugin provide you a serie of keywords for use in your commands as well:

  • $newVersion: Alias for bumped._version (the current semver version).
  • $oldVersion: Alias for bumped._oldVersion (the before semver version).

Additionally you can provide child_process.spawn#options

API

command

Required Type: string

Command to be executed. You can use the follow template words:

  • $newVersion: The bumped version before the release.
  • $oldVersion: The bumped version after the release.

opts

Type: object

Additional options to be passed to execspawn.

License

MIT © Bumped

Readme

Keywords

Package Sidebar

Install

npm i bumped-terminal

Weekly Downloads

118

Version

0.8.1

License

MIT

Unpacked Size

16.2 kB

Total Files

6

Last publish

Collaborators

  • kikobeats