0.2.0 • Published 8 years ago
@posix/px v0.2.0
Features
Command sequences
Execute a set of command serially
command1; command2; command3;Logical or
Execute commandB only if execution of commandA fail (exit code <> 0)
command1 || command2Logical and
Execute commandB only if execution of commandA succeed (exit code = 0)
command1 && command2Setting environment variables
Set an environment variable (could replace the use of cross-env)
DEBUG=cmd cmdAsynchronous execution of a process
Run cmd1, cmd2 and cmd3 in parallel
cmd1 & cmd2 & cmd3Usage
- Install
px:
$ npm i @posix/px --save-dev- Add a line to your project
.npmrcfile to configure the script-shell config:
script-shell = "px"on windows you shall use px.cmd:
px.cmdThe setup process above will be automated using a
px --initcommand.
See Also
License
MIT - © 2017 Andrea Parodi