1.0.1 • Published 9 years ago
prun v1.0.1
Comfortable script runner with simple pattern system
Installation
npm install prunThis package is tested on node >= 4.0.
Get started
Scripts defenitions stored in scripts.json at root directory via array of "script" objects.
They support simple pattern system like <%param%> in the name of script to be executed.
[
{
"name": "command:<%param%>",
"command": "echo <%param%> $SOME_ENV_VARIABLE",
"env": {
"SOME_ENV_VARIABLE": "env<%param%>"
}
}
]For example:
prun comand:testresults to be executed
echo test envtestPriority of matched command is defined by order of command pattern in scripts.json: the
first matched is executed.
