diff options
author | 2020-11-18 23:26:45 +0100 | |
---|---|---|
committer | 2020-11-18 23:26:45 +0100 | |
commit | 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch) | |
tree | 8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/npm-run-all/bin/run-p/main.js | |
parent | 1870f3fdf43707a15fda0f609a021f516f45eb63 (diff) | |
download | website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2 website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip |
rm node_modules
Diffstat (limited to 'node_modules/npm-run-all/bin/run-p/main.js')
-rw-r--r-- | node_modules/npm-run-all/bin/run-p/main.js | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/node_modules/npm-run-all/bin/run-p/main.js b/node_modules/npm-run-all/bin/run-p/main.js deleted file mode 100644 index e44f2f2..0000000 --- a/node_modules/npm-run-all/bin/run-p/main.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * @author Toru Nagashima - * @copyright 2016 Toru Nagashima. All rights reserved. - * See LICENSE file in root directory for full license. - */ -"use strict" - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const runAll = require("../../lib") -const parseCLIArgs = require("../common/parse-cli-args") - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Parses arguments, then run specified npm-scripts. - * - * @param {string[]} args - Arguments to parse. - * @param {stream.Writable} stdout - A writable stream to print logs. - * @param {stream.Writable} stderr - A writable stream to print errors. - * @returns {Promise} A promise which comes to be fulfilled when all npm-scripts are completed. - * @private - */ -module.exports = function npmRunAll(args, stdout, stderr) { - try { - const stdin = process.stdin - const argv = parseCLIArgs(args, { parallel: true }, { singleMode: true }) - const group = argv.lastGroup - - if (group.patterns.length === 0) { - return Promise.resolve(null) - } - - const promise = runAll( - group.patterns, - { - stdout, - stderr, - stdin, - parallel: group.parallel, - maxParallel: argv.maxParallel, - continueOnError: argv.continueOnError, - printLabel: argv.printLabel, - printName: argv.printName, - config: argv.config, - packageConfig: argv.packageConfig, - silent: argv.silent, - arguments: argv.rest, - race: argv.race, - npmPath: argv.npmPath, - aggregateOutput: argv.aggregateOutput, - } - ) - - if (!argv.silent) { - promise.catch(err => { - //eslint-disable-next-line no-console - console.error("ERROR:", err.message) - }) - } - - return promise - } - catch (err) { - //eslint-disable-next-line no-console - console.error("ERROR:", err.message) - - return Promise.reject(err) - } -} |