2.0.0 • Published 4 years ago
@start/plugin-parallel v2.0.0
🔀 plugin-parallel
Run tasks as parallel child processes with same agruments.
Install
$ yarn add --dev @start/plugin-parallel
Usage
Signature
parallel(taskNames: string[], options?: {}): (...args: string[])
taskNames
Array of exported task names.
options
maxProcesses
–Infinity
by default
Example
import sequence from '@start/plugin-sequence'
import find from '@start/plugin-find'
import remove from '@start/plugin-remove'
import parallel from '@start/plugin-parallel'
export const buildCJS = (...args) => {
// …
}
export const buildESM = (...args) => {
// …
}
export const task = (...args) =>
sequence(
find('build/'),
remove,
parallel(['buildCJS', 'buildESM'])(...args)
)
2.0.0
4 years ago
1.0.2
5 years ago
1.0.3
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.3.2
5 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.1
6 years ago
0.2.0
7 years ago
0.1.0
7 years ago
0.1.0-6
7 years ago
0.1.0-5
7 years ago
0.1.0-4
7 years ago
0.1.0-3
7 years ago
0.1.0-2
7 years ago
0.1.0-0
7 years ago
0.1.0-1
7 years ago