summaryrefslogtreecommitdiffstats
path: root/node_modules/npm-run-all/bin
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/npm-run-all/bin
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_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')
-rw-r--r--node_modules/npm-run-all/bin/common/bootstrap.js51
-rw-r--r--node_modules/npm-run-all/bin/common/parse-cli-args.js251
-rw-r--r--node_modules/npm-run-all/bin/common/version.js25
-rw-r--r--node_modules/npm-run-all/bin/npm-run-all/help.js71
-rwxr-xr-xnode_modules/npm-run-all/bin/npm-run-all/index.js13
-rw-r--r--node_modules/npm-run-all/bin/npm-run-all/main.js77
-rw-r--r--node_modules/npm-run-all/bin/run-p/help.js66
-rwxr-xr-xnode_modules/npm-run-all/bin/run-p/index.js13
-rw-r--r--node_modules/npm-run-all/bin/run-p/main.js74
-rw-r--r--node_modules/npm-run-all/bin/run-s/help.js60
-rwxr-xr-xnode_modules/npm-run-all/bin/run-s/index.js13
-rw-r--r--node_modules/npm-run-all/bin/run-s/main.js71
12 files changed, 0 insertions, 785 deletions
diff --git a/node_modules/npm-run-all/bin/common/bootstrap.js b/node_modules/npm-run-all/bin/common/bootstrap.js
deleted file mode 100644
index e73b093..0000000
--- a/node_modules/npm-run-all/bin/common/bootstrap.js
+++ /dev/null
@@ -1,51 +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
-//------------------------------------------------------------------------------
-/*eslint-disable no-process-exit */
-
-module.exports = function bootstrap(name) {
- const argv = process.argv.slice(2)
-
- switch (argv[0]) {
- case undefined:
- case "-h":
- case "--help":
- return require(`../${name}/help`)(process.stdout)
-
- case "-v":
- case "--version":
- return require("./version")(process.stdout)
-
- default:
- // https://github.com/mysticatea/npm-run-all/issues/105
- // Avoid MaxListenersExceededWarnings.
- process.stdout.setMaxListeners(0)
- process.stderr.setMaxListeners(0)
- process.stdin.setMaxListeners(0)
-
- // Main
- return require(`../${name}/main`)(
- argv,
- process.stdout,
- process.stderr
- ).then(
- () => {
- // I'm not sure why, but maybe the process never exits
- // on Git Bash (MINGW64)
- process.exit(0)
- },
- () => {
- process.exit(1)
- }
- )
- }
-}
-
-/*eslint-enable */
diff --git a/node_modules/npm-run-all/bin/common/parse-cli-args.js b/node_modules/npm-run-all/bin/common/parse-cli-args.js
deleted file mode 100644
index 7f056fc..0000000
--- a/node_modules/npm-run-all/bin/common/parse-cli-args.js
+++ /dev/null
@@ -1,251 +0,0 @@
-/**
- * @author Toru Nagashima
- * @copyright 2016 Toru Nagashima. All rights reserved.
- * See LICENSE file in root directory for full license.
- */
-"use strict"
-
-/*eslint-disable no-process-env */
-
-//------------------------------------------------------------------------------
-// Helpers
-//------------------------------------------------------------------------------
-
-const OVERWRITE_OPTION = /^--([^:]+?):([^=]+?)(?:=(.+))?$/
-const CONFIG_OPTION = /^--([^=]+?)(?:=(.+))$/
-const PACKAGE_CONFIG_PATTERN = /^npm_package_config_(.+)$/
-const CONCAT_OPTIONS = /^-[clnprs]+$/
-
-/**
- * Overwrites a specified package config.
- *
- * @param {object} config - A config object to be overwritten.
- * @param {string} packageName - A package name to overwrite.
- * @param {string} variable - A variable name to overwrite.
- * @param {string} value - A new value to overwrite.
- * @returns {void}
- */
-function overwriteConfig(config, packageName, variable, value) {
- const scope = config[packageName] || (config[packageName] = {})
- scope[variable] = value
-}
-
-/**
- * Creates a package config object.
- * This checks `process.env` and creates the default value.
- *
- * @returns {object} Created config object.
- */
-function createPackageConfig() {
- const retv = {}
- const packageName = process.env.npm_package_name
- if (!packageName) {
- return retv
- }
-
- for (const key of Object.keys(process.env)) {
- const m = PACKAGE_CONFIG_PATTERN.exec(key)
- if (m != null) {
- overwriteConfig(retv, packageName, m[1], process.env[key])
- }
- }
-
- return retv
-}
-
-/**
- * Adds a new group into a given list.
- *
- * @param {object[]} groups - A group list to add.
- * @param {object} initialValues - A key-value map for the default of new value.
- * @returns {void}
- */
-function addGroup(groups, initialValues) {
- groups.push(Object.assign(
- { parallel: false, patterns: [] },
- initialValues || {}
- ))
-}
-
-/**
- * ArgumentSet is values of parsed CLI arguments.
- * This class provides the getter to get the last group.
- */
-class ArgumentSet {
- /**
- * @param {object} initialValues - A key-value map for the default of new value.
- * @param {object} options - A key-value map for the options.
- */
- constructor(initialValues, options) {
- this.config = {}
- this.continueOnError = false
- this.groups = []
- this.maxParallel = 0
- this.npmPath = null
- this.packageConfig = createPackageConfig()
- this.printLabel = false
- this.printName = false
- this.race = false
- this.rest = []
- this.silent = process.env.npm_config_loglevel === "silent"
- this.singleMode = Boolean(options && options.singleMode)
-
- addGroup(this.groups, initialValues)
- }
-
- /**
- * Gets the last group.
- */
- get lastGroup() {
- return this.groups[this.groups.length - 1]
- }
-
- /**
- * Gets "parallel" flag.
- */
- get parallel() {
- return this.groups.some(g => g.parallel)
- }
-}
-
-/**
- * Parses CLI arguments.
- *
- * @param {ArgumentSet} set - The parsed CLI arguments.
- * @param {string[]} args - CLI arguments.
- * @returns {ArgumentSet} set itself.
- */
-function parseCLIArgsCore(set, args) { // eslint-disable-line complexity
- LOOP:
- for (let i = 0; i < args.length; ++i) {
- const arg = args[i]
-
- switch (arg) {
- case "--":
- set.rest = args.slice(1 + i)
- break LOOP
-
- case "--color":
- case "--no-color":
- // do nothing.
- break
-
- case "-c":
- case "--continue-on-error":
- set.continueOnError = true
- break
-
- case "-l":
- case "--print-label":
- set.printLabel = true
- break
-
- case "-n":
- case "--print-name":
- set.printName = true
- break
-
- case "-r":
- case "--race":
- set.race = true
- break
-
- case "--silent":
- set.silent = true
- break
-
- case "--max-parallel":
- set.maxParallel = parseInt(args[++i], 10)
- if (!Number.isFinite(set.maxParallel) || set.maxParallel <= 0) {
- throw new Error(`Invalid Option: --max-parallel ${args[i]}`)
- }
- break
-
- case "-s":
- case "--sequential":
- case "--serial":
- if (set.singleMode && arg === "-s") {
- set.silent = true
- break
- }
- if (set.singleMode) {
- throw new Error(`Invalid Option: ${arg}`)
- }
- addGroup(set.groups)
- break
-
- case "--aggregate-output":
- set.aggregateOutput = true
- break
-
- case "-p":
- case "--parallel":
- if (set.singleMode) {
- throw new Error(`Invalid Option: ${arg}`)
- }
- addGroup(set.groups, { parallel: true })
- break
-
- case "--npm-path":
- set.npmPath = args[++i] || null
- break
-
- default: {
- let matched = null
- if ((matched = OVERWRITE_OPTION.exec(arg))) {
- overwriteConfig(
- set.packageConfig,
- matched[1],
- matched[2],
- matched[3] || args[++i]
- )
- }
- else if ((matched = CONFIG_OPTION.exec(arg))) {
- set.config[matched[1]] = matched[2]
- }
- else if (CONCAT_OPTIONS.test(arg)) {
- parseCLIArgsCore(
- set,
- arg.slice(1).split("").map(c => `-${c}`)
- )
- }
- else if (arg[0] === "-") {
- throw new Error(`Invalid Option: ${arg}`)
- }
- else {
- set.lastGroup.patterns.push(arg)
- }
-
- break
- }
- }
- }
-
- if (!set.parallel && set.aggregateOutput) {
- throw new Error("Invalid Option: --aggregate-output (without parallel)")
- }
- if (!set.parallel && set.race) {
- const race = args.indexOf("--race") !== -1 ? "--race" : "-r"
- throw new Error(`Invalid Option: ${race} (without parallel)`)
- }
- if (!set.parallel && set.maxParallel !== 0) {
- throw new Error("Invalid Option: --max-parallel (without parallel)")
- }
-
- return set
-}
-
-/**
- * Parses CLI arguments.
- *
- * @param {string[]} args - CLI arguments.
- * @param {object} initialValues - A key-value map for the default of new value.
- * @param {object} options - A key-value map for the options.
- * @param {boolean} options.singleMode - The flag to be single group mode.
- * @returns {ArgumentSet} The parsed CLI arguments.
- */
-module.exports = function parseCLIArgs(args, initialValues, options) {
- return parseCLIArgsCore(new ArgumentSet(initialValues, options), args)
-}
-
-/*eslint-enable */
diff --git a/node_modules/npm-run-all/bin/common/version.js b/node_modules/npm-run-all/bin/common/version.js
deleted file mode 100644
index 06afb8f..0000000
--- a/node_modules/npm-run-all/bin/common/version.js
+++ /dev/null
@@ -1,25 +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 version text.
- *
- * @param {stream.Writable} output - A writable stream to print.
- * @returns {Promise} Always a fulfilled promise.
- * @private
- */
-module.exports = function printVersion(output) {
- const version = require("../../package.json").version
-
- output.write(`v${version}\n`)
-
- return Promise.resolve(null)
-}
diff --git a/node_modules/npm-run-all/bin/npm-run-all/help.js b/node_modules/npm-run-all/bin/npm-run-all/help.js
deleted file mode 100644
index 0300bfe..0000000
--- a/node_modules/npm-run-all/bin/npm-run-all/help.js
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * @author Toru Nagashima
- * @copyright 2015 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:
- $ npm-run-all [--help | -h | --version | -v]
- $ npm-run-all [tasks] [OPTIONS]
-
- Run given npm-scripts in parallel or sequential.
-
- <tasks> : A list of npm-scripts' names and Glob-like patterns.
-
-Options:
- --aggregate-output - - - Avoid interleaving output by delaying printing of
- each command's output until it has finished.
- -c, --continue-on-error - Set the flag to continue executing
- other/subsequent tasks even if a task threw an
- error. 'npm-run-all' itself will exit with
- non-zero code if one or more tasks threw error(s)
- --max-parallel <number> - Set the maximum number of parallelism. Default is
- unlimited.
- --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.
- -p, --parallel <tasks> - Run a group of tasks in parallel.
- e.g. 'npm-run-all -p foo bar' is similar to
- 'npm run foo & npm run bar'.
- -r, --race - - - - - - - Set the flag to kill all tasks when a task
- finished with zero. This option is valid only
- with 'parallel' option.
- -s, --sequential <tasks> - Run a group of tasks sequentially.
- --serial <tasks> e.g. 'npm-run-all -s foo bar' is similar to
- 'npm run foo && npm run bar'.
- '--serial' is a synonym of '--sequential'.
- --silent - - - - - - - - Set 'silent' to the log level of npm.
-
-Examples:
- $ npm-run-all --serial clean lint build:**
- $ npm-run-all --parallel watch:**
- $ npm-run-all clean lint --parallel "build:** -- --watch"
- $ npm-run-all -l -p start-server start-browser start-electron
-
-See Also:
- https://github.com/mysticatea/npm-run-all#readme
-`)
-
- return Promise.resolve(null)
-}
diff --git a/node_modules/npm-run-all/bin/npm-run-all/index.js b/node_modules/npm-run-all/bin/npm-run-all/index.js
deleted file mode 100755
index b405238..0000000
--- a/node_modules/npm-run-all/bin/npm-run-all/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")("npm-run-all")
diff --git a/node_modules/npm-run-all/bin/npm-run-all/main.js b/node_modules/npm-run-all/bin/npm-run-all/main.js
deleted file mode 100644
index 2782468..0000000
--- a/node_modules/npm-run-all/bin/npm-run-all/main.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- * @author Toru Nagashima
- * @copyright 2015 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)
-
- const promise = argv.groups.reduce(
- (prev, group) => {
- if (group.patterns.length === 0) {
- return prev
- }
- return prev.then(() => runAll(
- group.patterns,
- {
- stdout,
- stderr,
- stdin,
- parallel: group.parallel,
- maxParallel: group.parallel ? argv.maxParallel : 1,
- continueOnError: argv.continueOnError,
- printLabel: argv.printLabel,
- printName: argv.printName,
- config: argv.config,
- packageConfig: argv.packageConfig,
- silent: argv.silent,
- arguments: argv.rest,
- race: group.parallel && argv.race,
- npmPath: argv.npmPath,
- aggregateOutput: group.parallel && argv.aggregateOutput,
- }
- ))
- },
- Promise.resolve(null)
- )
-
- 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)
- }
-}
diff --git a/node_modules/npm-run-all/bin/run-p/help.js b/node_modules/npm-run-all/bin/run-p/help.js
deleted file mode 100644
index 873568f..0000000
--- a/node_modules/npm-run-all/bin/run-p/help.js
+++ /dev/null
@@ -1,66 +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-p [--help | -h | --version | -v]
- $ run-p [OPTIONS] <tasks>
-
- Run given npm-scripts in parallel.
-
- <tasks> : A list of npm-scripts' names and Glob-like patterns.
-
-Options:
- --aggregate-output - - - Avoid interleaving output by delaying printing of
- each command's output until it has finished.
- -c, --continue-on-error - Set the flag to continue executing other tasks
- even if a task threw an error. 'run-p' itself
- will exit with non-zero code if one or more tasks
- threw error(s).
- --max-parallel <number> - Set the maximum number of parallelism. Default is
- unlimited.
- --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.
- -r, --race - - - - - - - Set the flag to kill all tasks when a task
- finished with zero.
- -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-p watch:**
- $ run-p --print-label "build:** -- --watch"
- $ run-p -sl "build:** -- --watch"
- $ run-p start-server start-browser start-electron
-
-See Also:
- https://github.com/mysticatea/npm-run-all#readme
-`)
-
- return Promise.resolve(null)
-}
diff --git a/node_modules/npm-run-all/bin/run-p/index.js b/node_modules/npm-run-all/bin/run-p/index.js
deleted file mode 100755
index b7ca754..0000000
--- a/node_modules/npm-run-all/bin/run-p/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-p")
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)
- }
-}
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)
- }
-}