diff options
Diffstat (limited to 'node_modules/concurrently/dist/bin')
| -rw-r--r-- | node_modules/concurrently/dist/bin/concurrently.d.ts | 2 | ||||
| -rwxr-xr-x | node_modules/concurrently/dist/bin/concurrently.js | 232 | ||||
| -rw-r--r-- | node_modules/concurrently/dist/bin/epilogue.d.ts | 1 | ||||
| -rw-r--r-- | node_modules/concurrently/dist/bin/epilogue.js | 90 |
4 files changed, 0 insertions, 325 deletions
diff --git a/node_modules/concurrently/dist/bin/concurrently.d.ts b/node_modules/concurrently/dist/bin/concurrently.d.ts deleted file mode 100644 index b798801..0000000 --- a/node_modules/concurrently/dist/bin/concurrently.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/node_modules/concurrently/dist/bin/concurrently.js b/node_modules/concurrently/dist/bin/concurrently.js deleted file mode 100755 index 341410a..0000000 --- a/node_modules/concurrently/dist/bin/concurrently.js +++ /dev/null @@ -1,232 +0,0 @@ -#!/usr/bin/env node -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const yargs_1 = __importDefault(require("yargs")); -const helpers_1 = require("yargs/helpers"); -const defaults = __importStar(require("../src/defaults")); -const index_1 = __importDefault(require("../src/index")); -const epilogue_1 = require("./epilogue"); -// Clean-up arguments (yargs expects only the arguments after the program name) -const cleanArgs = (0, helpers_1.hideBin)(process.argv); -// Find argument separator (double dash) -const argsSepIdx = cleanArgs.findIndex((arg) => arg === '--'); -// Arguments before separator -const argsBeforeSep = argsSepIdx >= 0 ? cleanArgs.slice(0, argsSepIdx) : cleanArgs; -// Arguments after separator -const argsAfterSep = argsSepIdx >= 0 ? cleanArgs.slice(argsSepIdx + 1) : []; -const args = (0, yargs_1.default)(argsBeforeSep) - .usage('$0 [options] <command ...>') - .help('h') - .alias('h', 'help') - .version() - .alias('version', 'v') - .alias('version', 'V') - // TODO: Add some tests for this. - .env('CONCURRENTLY') - .options({ - // General - 'max-processes': { - alias: 'm', - describe: 'How many processes should run at once.\n' + - 'New processes only spawn after all restart tries of a process.\n' + - 'Exact number or a percent of CPUs available (for example "50%")', - type: 'string', - }, - names: { - alias: 'n', - describe: 'List of custom names to be used in prefix template.\n' + - 'Example names: "main,browser,server"', - type: 'string', - }, - 'name-separator': { - describe: 'The character to split <names> on. Example usage:\n' + - '-n "styles|scripts|server" --name-separator "|"', - default: defaults.nameSeparator, - }, - success: { - alias: 's', - describe: 'Which command(s) must exit with code 0 in order for concurrently exit with ' + - 'code 0 too. Options are:\n' + - '- "first" for the first command to exit;\n' + - '- "last" for the last command to exit;\n' + - '- "all" for all commands;\n' + - // Note: not a typo. Multiple commands can have the same name. - '- "command-{name}"/"command-{index}" for the commands with that name or index;\n' + - '- "!command-{name}"/"!command-{index}" for all commands but the ones with that ' + - 'name or index.\n', - default: defaults.success, - }, - raw: { - alias: 'r', - describe: 'Output only raw output of processes, disables prettifying ' + - 'and concurrently coloring.', - type: 'boolean', - }, - // This one is provided for free. Chalk reads this itself and removes colors. - // https://www.npmjs.com/package/chalk#chalksupportscolor - 'no-color': { - describe: 'Disables colors from logging', - type: 'boolean', - }, - hide: { - describe: 'Comma-separated list of processes to hide the output.\n' + - 'The processes can be identified by their name or index.', - default: defaults.hide, - type: 'string', - }, - group: { - alias: 'g', - describe: 'Order the output as if the commands were run sequentially.', - type: 'boolean', - }, - timings: { - describe: 'Show timing information for all processes.', - type: 'boolean', - default: defaults.timings, - }, - 'passthrough-arguments': { - alias: 'P', - describe: 'Passthrough additional arguments to commands (accessible via placeholders) ' + - 'instead of treating them as commands.', - type: 'boolean', - default: defaults.passthroughArguments, - }, - // Kill others - 'kill-others': { - alias: 'k', - describe: 'Kill other processes if one exits or dies.', - type: 'boolean', - }, - 'kill-others-on-fail': { - describe: 'Kill other processes if one exits with non zero status code.', - type: 'boolean', - }, - 'kill-signal': { - alias: 'ks', - describe: 'Signal to send to other processes if one exits or dies. (SIGTERM/SIGKILL, defaults to SIGTERM)', - type: 'string', - default: defaults.killSignal, - }, - // Prefix - prefix: { - alias: 'p', - describe: 'Prefix used in logging for each process.\n' + - 'Possible values: index, pid, time, command, name, none, or a template. ' + - 'Example template: "{time}-{pid}"', - defaultDescription: 'index or name (when --names is set)', - type: 'string', - }, - 'prefix-colors': { - alias: 'c', - describe: 'Comma-separated list of chalk colors to use on prefixes. ' + - 'If there are more commands than colors, the last color will be repeated.\n' + - '- Available modifiers: reset, bold, dim, italic, underline, inverse, hidden, strikethrough\n' + - '- Available colors: black, red, green, yellow, blue, magenta, cyan, white, gray, \n' + - 'any hex values for colors (e.g. #23de43) or auto for an automatically picked color\n' + - '- Available background colors: bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite\n' + - 'See https://www.npmjs.com/package/chalk for more information.', - default: defaults.prefixColors, - type: 'string', - }, - 'prefix-length': { - alias: 'l', - describe: 'Limit how many characters of the command is displayed in prefix. ' + - 'The option can be used to shorten the prefix when it is set to "command"', - default: defaults.prefixLength, - type: 'number', - }, - 'timestamp-format': { - alias: 't', - describe: 'Specify the timestamp in moment/date-fns format.', - default: defaults.timestampFormat, - type: 'string', - }, - // Restarting - 'restart-tries': { - describe: 'How many times a process that died should restart.\n' + - 'Negative numbers will make the process restart forever.', - default: defaults.restartTries, - type: 'number', - }, - 'restart-after': { - describe: 'Delay time to respawn the process, in milliseconds.', - default: defaults.restartDelay, - type: 'number', - }, - // Input - 'handle-input': { - alias: 'i', - describe: 'Whether input should be forwarded to the child processes. ' + - 'See examples for more information.', - type: 'boolean', - }, - 'default-input-target': { - default: defaults.defaultInputTarget, - describe: 'Identifier for child process to which input on stdin ' + - 'should be sent if not specified at start of input.\n' + - 'Can be either the index or the name of the process.', - }, -}) - .group(['m', 'n', 'name-separator', 's', 'r', 'no-color', 'hide', 'g', 'timings', 'P'], 'General') - .group(['p', 'c', 'l', 't'], 'Prefix styling') - .group(['i', 'default-input-target'], 'Input handling') - .group(['k', 'kill-others-on-fail', 'kill-signal'], 'Killing other processes') - .group(['restart-tries', 'restart-after'], 'Restarting') - .epilogue(epilogue_1.epilogue) - .parseSync(); -// Get names of commands by the specified separator -const names = (args.names || '').split(args.nameSeparator); -// If "passthrough-arguments" is disabled, treat additional arguments as commands -const commands = args.passthroughArguments ? args._ : [...args._, ...argsAfterSep]; -(0, index_1.default)(commands.map((command, index) => ({ - command: String(command), - name: names[index], -})), { - handleInput: args.handleInput, - defaultInputTarget: args.defaultInputTarget, - killOthers: args.killOthers - ? ['success', 'failure'] - : args.killOthersOnFail - ? ['failure'] - : [], - killSignal: args.killSignal, - maxProcesses: args.maxProcesses, - raw: args.raw, - hide: args.hide.split(','), - group: args.group, - prefix: args.prefix, - prefixColors: args.prefixColors.split(','), - prefixLength: args.prefixLength, - restartDelay: args.restartAfter, - restartTries: args.restartTries, - successCondition: args.success, - timestampFormat: args.timestampFormat, - timings: args.timings, - additionalArguments: args.passthroughArguments ? argsAfterSep : undefined, -}).result.then(() => process.exit(0), () => process.exit(1)); diff --git a/node_modules/concurrently/dist/bin/epilogue.d.ts b/node_modules/concurrently/dist/bin/epilogue.d.ts deleted file mode 100644 index 0b58cf9..0000000 --- a/node_modules/concurrently/dist/bin/epilogue.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const epilogue: string; diff --git a/node_modules/concurrently/dist/bin/epilogue.js b/node_modules/concurrently/dist/bin/epilogue.js deleted file mode 100644 index 3f2b7e3..0000000 --- a/node_modules/concurrently/dist/bin/epilogue.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.epilogue = void 0; -// Add new examples here. -// Always start with `$ $0` so that it a) symbolizes a command line; and b) $0 gets replaced by the binary name uniformly. -const examples = [ - { - description: 'Output nothing more than stdout+stderr of child processes', - example: '$ $0 --raw "npm run watch-less" "npm run watch-js"', - }, - { - description: 'Normal output but without colors e.g. when logging to file', - example: '$ $0 --no-color "grunt watch" "http-server" > log', - }, - { - description: 'Custom prefix', - example: '$ $0 --prefix "{time}-{pid}" "npm run watch" "http-server"', - }, - { - description: 'Custom names and colored prefixes', - example: '$ $0 --names "HTTP,WATCH" -c "bgBlue.bold,bgMagenta.bold" "http-server" "npm run watch"', - }, - { - description: 'Auto varying colored prefixes', - example: '$ $0 -c "auto" "npm run watch" "http-server"', - }, - { - description: 'Mixing auto and manual colored prefixes', - example: '$ $0 -c "red,auto" "npm run watch" "http-server" "echo hello"', - }, - { - description: 'Configuring via environment variables with CONCURRENTLY_ prefix', - example: '$ CONCURRENTLY_RAW=true CONCURRENTLY_KILL_OTHERS=true $0 "echo hello" "echo world"', - }, - { - description: 'Send input to default', - example: [ - '$ $0 --handle-input "nodemon" "npm run watch-js"', - 'rs # Sends rs command to nodemon process', - ].join('\n'), - }, - { - description: 'Send input to specific child identified by index', - example: ['$ $0 --handle-input "npm run watch-js" nodemon', '1:rs'].join('\n'), - }, - { - description: 'Send input to specific child identified by name', - example: ['$ $0 --handle-input -n js,srv "npm run watch-js" nodemon', 'srv:rs'].join('\n'), - }, - { - description: 'Shortened NPM run commands', - example: '$ $0 npm:watch-node npm:watch-js npm:watch-css', - }, - { - description: 'Shortened NPM run command with wildcard (make sure to wrap it in quotes!)', - example: '$ $0 "npm:watch-*"', - }, - { - description: 'Exclude patterns so that between "lint:js" and "lint:fix:js", only "lint:js" is ran', - example: '$ $0 "npm:*(!fix)"', - }, - { - description: "Passthrough some additional arguments via '{<number>}' placeholder", - example: '$ $0 -P "echo {1}" -- foo', - }, - { - description: "Passthrough all additional arguments via '{@}' placeholder", - example: '$ $0 -P "npm:dev-* -- {@}" -- --watch --noEmit', - }, - { - description: "Passthrough all additional arguments combined via '{*}' placeholder", - example: '$ $0 -P "npm:dev-* -- {*}" -- --watch --noEmit', - }, -]; -const examplesString = examples - .map(({ example, description }) => [ - ` - ${description}`, - example - .split('\n') - .map((line) => ` ${line}`) - .join('\n'), -].join('\n\n')) - .join('\n\n'); -exports.epilogue = ` -Examples: - -${examplesString} - -For more details, visit https://github.com/open-cli-tools/concurrently -`; |
