1. bumped-terminal
Executes whatever terminal command inside as bumped plugin.
bumped-terminal
Package: bumped-terminal
Created by: bumped
Last modified: Mon, 13 Jun 2022 05:18:05 GMT
Version: 0.8.1
License: MIT
Downloads: 936
Repository: https://github.com/bumped/bumped-terminal

Install

npm install bumped-terminal
yarn add bumped-terminal

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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code