Home Reference Source Repository

References

Function Summary

Static Public Function Summary
public

npmRunAll(patternOrPatterns: string | string[], options: object | undefined): Promise

Runs npm-scripts which are matched with given patterns.

Static Private Function Summary
private

main(args: string[], stdout: stream.Writable, stderr: stream.Writable): Promise

The main process of npm-run-all command.

private

matchTasks(taskList: string[], patterns: string[]): string[]

Enumerates tasks which matches with given patterns.

private

npmRunAll(args: string[], stdout: stream.Writable, stderr: stream.Writable): Promise

Parses arguments, then run specified npm-scripts.

private

printHelp(output: stream.Writable): Promise

Print a help text.

private

printVersion(output: stream.Writable): Promise

Print a version text.

private

Reads package.json in current directry, and gets all npm-scripts names.

private

runTask(task: string, stdin: stream.Readable | null, stdout: stream.Writable | null, stderr: stream.Writable | null, prefixOptions: string[]): Promise

Run a npm-script of a given name.

private

runTasksInParallel(tasks: string, stdin: stream.Readable | null, stdout: stream.Writable | null, stderr: stream.Writable | null, prefixOptions: string[]): Promise

Run npm-scripts of given names in parallel.

private

runTasksInSequencial(tasks: string, stdin: stream.Readable | null, stdout: stream.Writable | null, stderr: stream.Writable | null, prefixOptions: string[]): Promise

Run npm-scripts of given names in sequencial.

private

spawn(command: string, args: string[], options: object): ChildProcess

Launches a new process with the given command.

private

spawn(command: string, args: string[], options: object): ChildProcess

Launches a new process with the given command.

private

Gets a file path of npm command.