Go to repository

Function concurrently

Generates a bash command that uses concurrently to run scripts concurrently. Adds a few flags to make it behave as you probably want (like --kill-others-on-fail). In addition, it adds color and labels where the color can be specified or is defaulted and the label is based on the key for the script.

// returns a bit of a long script that can vary slightly
// based on your environment...
concurrent({
lint: {
script: 'eslint .',
color: 'bgGreen.white.dim',
},
test: 'jest',
build: {
script: 'webpack'
}
})

Parameters

Returns string

The bash command string.