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-s | |
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-s')
-rw-r--r-- | node_modules/npm-run-all/bin/run-s/help.js | 60 | ||||
-rwxr-xr-x | node_modules/npm-run-all/bin/run-s/index.js | 13 | ||||
-rw-r--r-- | node_modules/npm-run-all/bin/run-s/main.js | 71 |
3 files changed, 0 insertions, 144 deletions
diff --git a/node_modules/npm-run-all/bin/run-s/help.js b/node_modules/npm-run-all/bin/run-s/help.js deleted file mode 100644 index 6dfa6a1..0000000 --- a/node_modules/npm-run-all/bin/run-s/help.js +++ /dev/null @@ -1,60 +0,0 @@ -/** - * @author Toru Nagashima - * @copyright 2016 Toru Nagashima. All rights reserved. - * See LICENSE file in root directory for full license. - */ -"use strict" - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Print a help text. - * - * @param {stream.Writable} output - A writable stream to print. - * @returns {Promise} Always a fulfilled promise. - * @private - */ -module.exports = function printHelp(output) { - output.write(` -Usage: - $ run-s [--help | -h | --version | -v] - $ run-s [OPTIONS] <tasks> - - Run given npm-scripts sequentially. - - <tasks> : A list of npm-scripts' names and Glob-like patterns. - -Options: - -c, --continue-on-error - Set the flag to continue executing subsequent - tasks even if a task threw an error. 'run-s' - itself will exit with non-zero code if one or - more tasks threw error(s). - --npm-path <string> - - - Set the path to npm. Default is the value of - environment variable npm_execpath. - If the variable is not defined, then it's "npm." - In this case, the "npm" command must be found in - environment variable PATH. - -l, --print-label - - - - Set the flag to print the task name as a prefix - on each line of output. Tools in tasks may stop - coloring their output if this option was given. - -n, --print-name - - - - Set the flag to print the task name before - running each task. - -s, --silent - - - - - - Set 'silent' to the log level of npm. - - Shorthand aliases can be combined. - For example, '-clns' equals to '-c -l -n -s'. - -Examples: - $ run-s build:** - $ run-s lint clean build:** - $ run-s --silent --print-name lint clean build:** - $ run-s -sn lint clean build:** - -See Also: - https://github.com/mysticatea/npm-run-all#readme -`) - - return Promise.resolve(null) -} diff --git a/node_modules/npm-run-all/bin/run-s/index.js b/node_modules/npm-run-all/bin/run-s/index.js deleted file mode 100755 index f3cf012..0000000 --- a/node_modules/npm-run-all/bin/run-s/index.js +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env node -/** - * @author Toru Nagashima - * @copyright 2015 Toru Nagashima. All rights reserved. - * See LICENSE file in root directory for full license. - */ -"use strict" - -//------------------------------------------------------------------------------ -// Main -//------------------------------------------------------------------------------ - -require("../common/bootstrap")("run-s") diff --git a/node_modules/npm-run-all/bin/run-s/main.js b/node_modules/npm-run-all/bin/run-s/main.js deleted file mode 100644 index d1bd6da..0000000 --- a/node_modules/npm-run-all/bin/run-s/main.js +++ /dev/null @@ -1,71 +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: false }, { 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, - continueOnError: argv.continueOnError, - printLabel: argv.printLabel, - printName: argv.printName, - config: argv.config, - packageConfig: argv.packageConfig, - silent: argv.silent, - arguments: argv.rest, - npmPath: argv.npmPath, - } - ) - - 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) - } -} |