master-forker
v1.0.0
Published
Spawn processes in background and join them back.
Downloads
7
Readme
master-forker
Quick and dirty background process manager. Useful for speedy CI builds.
Usage
First, start the “master” server in background. Background processes will be spawned in this directory.
mf-server
mf fork «identifier» «command» «args»
Tells the master to fork and run a background process, identified by an identifier.
mf fork frontend-build npm run build:frontend
mf fork backend-test npm run test:backend
stdout/stderr is buffered.
mf join «identifier»
Streams the stdout, stderr, and exit code of the process.
mf join frontend-build
mf fork frontend-test npm run test:frontend
mf join backend-test
mf join frontend-test