{"id":13775278,"url":"https://github.com/Vehmloewff/rollup-plugin-command","last_synced_at":"2025-05-11T07:32:17.832Z","repository":{"id":47943621,"uuid":"219914107","full_name":"Vehmloewff/rollup-plugin-command","owner":"Vehmloewff","description":"Run commands and call functions when bundles are generated","archived":false,"fork":false,"pushed_at":"2024-09-27T06:01:56.000Z","size":81,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T15:52:25.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vehmloewff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-06T04:48:40.000Z","updated_at":"2024-10-28T14:47:45.000Z","dependencies_parsed_at":"2022-08-12T14:50:33.043Z","dependency_job_id":null,"html_url":"https://github.com/Vehmloewff/rollup-plugin-command","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vehmloewff%2Frollup-plugin-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vehmloewff%2Frollup-plugin-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vehmloewff%2Frollup-plugin-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vehmloewff%2Frollup-plugin-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vehmloewff","download_url":"https://codeload.github.com/Vehmloewff/rollup-plugin-command/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253533945,"owners_count":21923515,"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-03T17:01:36.280Z","updated_at":"2025-05-11T07:32:17.585Z","avatar_url":"https://github.com/Vehmloewff.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Workflow"],"readme":"# rollup-plugin-command\n\nRun commands and call functions when bundles are generated\n\n## Installation\n\n```sh\nnpm i -D rollup-plugin-command\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport command from 'rollup-plugin-command';\n\nexport default {\n\t// ...\n\tplugins: [\n\t\t// ...\n\t\tcommand(`node tests.js`, options),\n\t],\n\t// ...\n};\n```\n\nThe [options](#options) are, of course, optional.\n\n```js\ncommand(require('tests.js'));\n```\n\n```js\ncommand(\n\t[\n\t\t`npm test`, // The next command will not be executed until this\n\t\t// one is finished.\n\n\t\trequire('./scripts/cleanup').someFunc, // If this returns a\n\t\t// promise, and `options.wait` is true (it's false by default), this\n\t\t// plugin will wait for it to be resolved before moving on to the\n\t\t// next command or finishing the build.\n\t],\n\t{ exitOnFail: true }\n); // Default for options.exitOnFail is false.\n```\n\n### options\n\n```ts\ninterface CommandOptions {\n\texitOnFail?: boolean; // (Only applies when one of the given commands\n\t// is a string) Exit the current process when the child process fails.\n\t// Default is false.\n\n\tonce?: boolean; // (Only valid when rollup is in watch mode) If the\n\t// commands should be executed only the first time a bundle is built.\n\t// Default is false.\n\n\twait?: boolean; // If the the build should wait for the commands to\n\t// be executed.  Default is false.\n}\n```\n\nI hope you find this package usefull!\n\n## License\n\n[MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVehmloewff%2Frollup-plugin-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVehmloewff%2Frollup-plugin-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVehmloewff%2Frollup-plugin-command/lists"}