{"id":17254261,"url":"https://github.com/waynevanson/rollup-stream-gulp","last_synced_at":"2025-03-26T07:40:38.662Z","repository":{"id":57355628,"uuid":"374346892","full_name":"waynevanson/rollup-stream-gulp","owner":"waynevanson","description":"Implentation of Rollup as a stream and Rollup as a Gulp plugin","archived":false,"fork":false,"pushed_at":"2021-06-10T10:20:14.000Z","size":320,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T19:46:22.715Z","etag":null,"topics":["gulp","gulpplugin","node","rollup","streams","typescript"],"latest_commit_sha":null,"homepage":"","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/waynevanson.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":"2021-06-06T11:49:25.000Z","updated_at":"2023-02-08T15:34:54.000Z","dependencies_parsed_at":"2022-08-31T03:41:26.532Z","dependency_job_id":null,"html_url":"https://github.com/waynevanson/rollup-stream-gulp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Frollup-stream-gulp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Frollup-stream-gulp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Frollup-stream-gulp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Frollup-stream-gulp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waynevanson","download_url":"https://codeload.github.com/waynevanson/rollup-stream-gulp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245615000,"owners_count":20644375,"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":["gulp","gulpplugin","node","rollup","streams","typescript"],"created_at":"2024-10-15T07:08:03.797Z","updated_at":"2025-03-26T07:40:38.643Z","avatar_url":"https://github.com/waynevanson.png","language":"TypeScript","readme":"# rollup-stream-gulp\n\nA gulp plugin, and hopefully with enough work, love and consensus becomes `@rollup/gulp`\n\n## Installation\n\n```sh\nyarn add -D rollup-stream-gulp\n```\n\n## Purpose\n\nCurrently the recommended way is to use `@rollup/stream`. This works well, but has a few limitations.\n\n- `requires \\`vinyl-source-stream\\``\n- Outputs utf-8 only and not the chunks containing rollup metadata\n  - only allows outputing one file per stream instance\n  - `options.manualChunks` not supported\n- DX is non-optimal\n\n## Usage\n\nAccepts all the `RollupOption`'s excluding `input`, which is gathered from `gulp.src()`.\n\n```ts\n// gulpfile.ts\nimport gulp from \"gulp\";\nimport rollup from \"rollup-stream-gulp\";\n// import rollup from \"@rollup/gulp\";\n\n// generates two files, both in different formats under the `dist` directory.\nexport const build = async () =\u003e\n  gulp\n    .src(\"src/index.ts\")\n    .pipe(\n      rollup({\n        output: [\n          { file: \"index.js\", format: \"cjs\" },\n          { file: \"index.mjs\", format: \"esm\" },\n        ],\n      })\n    )\n    .pipe(gulp.dest(\"dist\"));\n```\n\n## Troubleshooting, Validation and Errors\n\nThere are a few caveats.\n\nInternally we use `options.input = file.path`, which means we may not get errors about file conflicts.\nWe'll be looking to address these later on.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynevanson%2Frollup-stream-gulp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaynevanson%2Frollup-stream-gulp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynevanson%2Frollup-stream-gulp/lists"}