{"id":13847506,"url":"https://github.com/paulpflug/script-runner","last_synced_at":"2025-03-19T02:30:36.408Z","repository":{"id":65412203,"uuid":"51582073","full_name":"paulpflug/script-runner","owner":"paulpflug","description":"Invoke multiple commands, running in parallel / sequential, matching npm scripts","archived":false,"fork":false,"pushed_at":"2018-08-13T09:10:23.000Z","size":23,"stargazers_count":27,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T06:29:48.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulpflug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-12T10:55:00.000Z","updated_at":"2023-03-26T07:31:49.000Z","dependencies_parsed_at":"2023-01-22T07:35:12.632Z","dependency_job_id":null,"html_url":"https://github.com/paulpflug/script-runner","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulpflug%2Fscript-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulpflug%2Fscript-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulpflug%2Fscript-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulpflug%2Fscript-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulpflug","download_url":"https://codeload.github.com/paulpflug/script-runner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221720264,"owners_count":16869450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T18:01:34.237Z","updated_at":"2024-10-27T19:00:05.876Z","avatar_url":"https://github.com/paulpflug.png","language":"CoffeeScript","funding_links":[],"categories":["CoffeeScript","Task Runners"],"sub_categories":[],"readme":"## Script runner\n\nInvoke multiple commands, running in parallel / sequential, matching npm scripts\n\n### Install\n\n```bash\nnpm install --save-dev script-runner\n```\n\n### Usage\n\n```\nusage: run [\u003coptions\u003e [cmd..]..]\n\n\noptions:\n-h, --help         output usage information\n-v, --verbose      verbose logging (not implemented yet)\n    --silent       suppress output of children\n    --no-errors    also suppress error-output of children\n-t, --test         no running only show process structure\n-s, --sequential   following cmds will be run in sequence\n-p, --parallel     following cmds will be run in parallel\n-i, --ignore       the following cmd will be ignored for --first, --wait and errors\n-f, --first        only in parallel block: close all sibling processes after first exits\n-w, --wait         only in parallel block: will not close sibling processes on error\n-m, --master       only in parallel block: close all sibling processes when the following cmd exits. exitCode will only depend on master\n\nrun also looks in node_modules/.bin for cmds\nrun-para is a shorthand for run --parallel\nrun-seq is a longhand for run\nrun-npm will match cmd with npm script and replace them, usage of globs is allowed\ne.g. \n    run-npm -p build:* -s deploy\n```\n\n### Examples\n\n```bash\nrun \"echo 1\" \"echo 2\"\nrun-para \"echo 1\" \"echo 2\"\nrun-npm build:*\nrun mocha\nrun-npm -p serve --master \"run-npm 'sleep 1' test:e2e\"\n```\n\n```json\n// package.json\n\"scripts\": {\n    ...\n    \"build\": \"run-npm build:*\",\n    \"build:step1\": \"do something\",\n    \"build:step2\": \"do another thing\"\n    ...\n}\n```\n\n\n## License\nCopyright (c) 2016 Paul Pflugradt\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulpflug%2Fscript-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulpflug%2Fscript-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulpflug%2Fscript-runner/lists"}