JSPM

@auto-canary/exec

11.3.0--canary.2478.87bcf4d47797ed8cc7152538b86fd742d8d19462.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 76
  • Score
    100M100P100Q99161F
  • License MIT

Tap into select hooks and run a command on the terminal

Package Exports

  • @auto-canary/exec
  • @auto-canary/exec/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@auto-canary/exec) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Exec Plugin

Tap into hooks and run scripts on the terminal.

Read more about the available hooks.

Installation

This plugin is not included with the auto CLI installed via NPM. To install:

npm i --save-dev @auto-it/exec
# or
yarn add -D @auto-it/exec

Usage

Here is an example of replacing the npm plugins with a light-weight version.

All args to a hook are exposed on the process in environment variables. The format looks like $ARG_0, $ARG_1, and so on. Please look at the docs for writing plugins for more detail on what's available.

{
  "plugins": [
    [
      "exec",
      {
        "version": "npm version $ARG_0",
        "publish": "npm publish && git push --tags",
        "afterRelease": "yarn docs && push-dir --dir=docs --branch=gh-pages"
      }
    ]
    // other plugins
  ]
}

⚠️ If you are tapping into a waterfall or bail hook you will need to return some value (ex: JSON or a boolean). Please refer to the documentation and return the right thing!