{"id":14982170,"url":"https://github.com/orcunsaltik/gulp-rollup-2","last_synced_at":"2025-10-29T11:31:17.152Z","repository":{"id":57258868,"uuid":"275446217","full_name":"orcunsaltik/gulp-rollup-2","owner":"orcunsaltik","description":"Gulp plugin for Rollup JavaScript Module Bundler.","archived":false,"fork":false,"pushed_at":"2021-03-17T22:15:56.000Z","size":51,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-02T01:04:50.404Z","etag":null,"topics":["es6","gulp","gulp-plugins","gulp4","gulpjs","gulpjs-4","gulpplugin","javascript","js","node","node-js","node-module","nodejs","rollup","rollup-api"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gulp-rollup-2","language":"JavaScript","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/orcunsaltik.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":"2020-06-27T20:13:22.000Z","updated_at":"2022-06-05T03:16:01.000Z","dependencies_parsed_at":"2022-08-25T03:01:22.998Z","dependency_job_id":null,"html_url":"https://github.com/orcunsaltik/gulp-rollup-2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orcunsaltik%2Fgulp-rollup-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orcunsaltik%2Fgulp-rollup-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orcunsaltik%2Fgulp-rollup-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orcunsaltik%2Fgulp-rollup-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orcunsaltik","download_url":"https://codeload.github.com/orcunsaltik/gulp-rollup-2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238817367,"owners_count":19535517,"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":["es6","gulp","gulp-plugins","gulp4","gulpjs","gulpjs-4","gulpplugin","javascript","js","node","node-js","node-module","nodejs","rollup","rollup-api"],"created_at":"2024-09-24T14:04:54.451Z","updated_at":"2025-10-29T11:31:11.802Z","avatar_url":"https://github.com/orcunsaltik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gulp Rollup 2\n\n[![Build Status](https://travis-ci.com/orcunsaltik/gulp-rollup-2.svg?branch=master)](https://travis-ci.com/orcunsaltik/gulp-rollup-2)\n[![Dependency Status](https://david-dm.org/orcunsaltik/gulp-rollup-2.svg)](https://david-dm.org/orcunsaltik/gulp-rollup-2)\n[![devDependencies Status](https://david-dm.org/orcunsaltik/gulp-rollup-2/dev-status.svg)](https://david-dm.org/orcunsaltik/gulp-rollup-2?type=dev)\n[![Maintainability](https://api.codeclimate.com/v1/badges/035ff3499e767eb6b552/maintainability)](https://codeclimate.com/github/orcunsaltik/gulp-rollup-2/maintainability)\n![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/orcunsaltik/gulp-rollup-2)\n![npm](https://img.shields.io/npm/dt/gulp-rollup-2)\n[![NPM Version](https://badge.fury.io/js/gulp-rollup-2.svg?style=flat)](https://npmjs.org/package/gulp-rollup-2)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/orcunsaltik/gulp-rollup-2/issues)\n![node-current](https://img.shields.io/node/v/gulp-rollup-2)\n\nA [Gulp](https://www.npmjs.com/package/gulp) plugin for [Rollup](https://www.npmjs.com/package/rollup) Javascript Module Bundler.\n\nYou can use before or after any gulp plugins with Rollup Api.\nAny map created by a gulp plugin like gulp-sourcemaps will be overriden if the\nsourcemap option of the rollup config is set to true; \n\n## Install\n\n``` bash\nnpm install --save-dev gulp-rollup-2\n```\n\n## Usage\n\n### A - Inside the gulp pipe(): (between src() \u0026 dest() methods of gulp)\n\n``` js\nconst gulp = require('gulp');\nconst gru2 = require('gulp-rollup-2');\n\ngulp.task('bundle', () =\u003e \n  gulp.src('./src/**/*.js')\n    .pipe(gru2.rollup({\n           input: 'src/app.js',\n        external: ['window'],\n         plugins: [plugin1(), plugin2()],\n           cache: true,\n          output: [\n            {\n                   file: 'example.js',\n                   name: 'example', \n                 format: 'umd',\n                globals: {window: 'window'}\n            },\n            {\n                   file: 'example.esm.bundle.js',\n                 format: 'es',\n                globals: {window: 'window'}\n            },\n        ]}))\n    .pipe(gulp.dest('./dist'));\n);\n```\n### B - When it comes first...\n\nThe file path in the input option of the Rollup Api config object used in the src() method of gulp-rollup-2 plugin replaces the role of src() method of gulp.\n\n``` js\nconst gulp = require('gulp');\nconst gru2 = require('gulp-rollup-2');\n\ngulp.task('bundle', async () =\u003e\n  (await gru2.src(...opts))\n        .pipe(sourcemaps.write('.'))\n        .pipe(gulp.dest('dist'));\n);\n```\n\n## Troubleshooting\n\nWhen you encounter a problem, please open an issue. I would be glad to help you to find a solution if possible.\n\n## Author\n\nGithub: [@orcunsaltik](https://github.com/orcunsaltik)\n\n## License\n\nSee the [LICENSE](LICENSE) file for license rights and limitations (MIT).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forcunsaltik%2Fgulp-rollup-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forcunsaltik%2Fgulp-rollup-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forcunsaltik%2Fgulp-rollup-2/lists"}