Allow a package to have listener scripts run by convention

Description

Following the idea behind npm's run-script command, allow for a "scripts" struct in box.json where the key is a short-name for the script and the value is command string to run through the CommandBox interactive shell.

Users will be able to target a script like so:

Any script whose short name is also the name of an interception point in CommandBox will also be run when the CWD of the shell or running command is that package. This will allow developers to create portable ad-hoc listeners for a package that fire.

If the script fails, no further interceptors or commands in the pipeline should process. For example, if the "prePublish" script executes "testbox run" and the tests fail, the version should not be bumped.tagged, etc.

Gliffy Diagrams

Activity

Show:

Brad Wood April 27, 2016 at 5:38 AM

creates

Now to use them...

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Fix versions

Original estimate

Time tracking

No time logged2h remaining

Priority

Components

Sentry

Created April 26, 2016 at 8:47 PM
Updated April 27, 2016 at 5:39 AM
Resolved April 27, 2016 at 5:33 AM