{"id":16399670,"url":"https://github.com/frantic1048/fly-rollup","last_synced_at":"2025-06-14T05:04:51.236Z","repository":{"id":57151216,"uuid":"63311863","full_name":"frantic1048/fly-rollup","owner":"frantic1048","description":"Rollup plugin for Fly.","archived":false,"fork":false,"pushed_at":"2017-03-28T14:31:32.000Z","size":24,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T05:04:23.120Z","etag":null,"topics":["fly","rollup"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frantic1048.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":"2016-07-14T07:16:14.000Z","updated_at":"2017-07-20T03:20:51.000Z","dependencies_parsed_at":"2022-08-24T07:10:51.256Z","dependency_job_id":null,"html_url":"https://github.com/frantic1048/fly-rollup","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/frantic1048/fly-rollup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frantic1048%2Ffly-rollup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frantic1048%2Ffly-rollup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frantic1048%2Ffly-rollup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frantic1048%2Ffly-rollup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frantic1048","download_url":"https://codeload.github.com/frantic1048/fly-rollup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frantic1048%2Ffly-rollup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259763077,"owners_count":22907408,"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":["fly","rollup"],"created_at":"2024-10-11T05:25:15.425Z","updated_at":"2025-06-14T05:04:51.220Z","avatar_url":"https://github.com/frantic1048.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fly-rollup\n\n[![fly badge][fly-bgp]][fly-bg] [![npm badge][npm-bgp]][npm-bg] ![download badge][dl-bgp] [![travisbadge][travis-bgp]][travis-bg] [![license badge][license-bgp]][license-bg]\n\n[fly-bgp]: https://img.shields.io/badge/fly-JS-05B3E1.svg?style=flat-square\u0026maxAge=2592000\n[fly-bg]: https://github.com/flyjs/fly\n\n[npm-bgp]: https://img.shields.io/npm/v/fly-rollup.svg?style=flat-square\n[npm-bg]: https://www.npmjs.org/package/fly-rollup\n\n[dl-bgp]: https://img.shields.io/npm/dm/fly-rollup.svg?style=flat-square\n\n[travis-bgp]: https://img.shields.io/travis/frantic1048/fly-rollup.svg?style=flat-square\n[travis-bg]: https://travis-ci.org/frantic1048/fly-rollup\n\n[license-bgp]: https://img.shields.io/github/license/frantic1048/fly-rollup.svg?style=flat-square\n[license-bg]: https://spdx.org/licenses/WTFPL.html\n\n[Rollup][] plugin for *[Fly][]* .\n\n[Fly]: https://github.com/flyjs/fly\n[Rollup]: https://github.com/rollup/rollup/\n\n## Install\n\nThis plugin requires [Fly][] .\n\n```bash\nnpm i --save-dev fly-rollup\n```\n\n## Usage\n\nAsync/Await flavored:\n\n```js\nexport async function roll (fly) {\n  await fly\n    .source('src/entry.js') // just pass your entry file(s) here\n    .rollup({\n      rollup: { // rollup options\n        plugins: [\n          require('rollup-plugin-babel')()\n        ]\n      },\n      bundle: { // bundle options\n        format: 'es'\n      }\n    })\n    .target('dist')\n}\n```\n\nGenerator function flavored:\n\n```js\nexports.roll = function * (fly) {\n  yield fly\n    .source('src/entry.js') // just pass your entry file(s) here\n    .rollup({\n      rollup: { // rollup options\n        plugins: [\n          require('rollup-plugin-babel')()\n        ]\n      },\n      bundle: { // bundle options\n        format: 'es'\n      }\n    })\n    .target('dist')\n}\n```\n\nYou just need to pass **entry** files to fly-rollup .\n\n### Sourcemap\n\nSourcemap is controlled by `sourceMap` key in bundle options. It has 3 options:\n\n- `true`: **default value**, generate external sourcemap along with bundle output.\n- `'inline'`: inline sourcemap.\n- `false`: disable sourcemap.\n\n\ne.g.\n\n```js\nfly.source\n  .rollup({\n    bundle: {\n      sourceMap: false // disable sourcemap\n    }\n  })\n```\n\nFor other options:\n\nSee [Rollup JavaScript API#rollup.rollup( options )][rollup-options] for *rollup options* .\n\nSee [Rollup JavaScript API#bundle.generate( options )][bundle-options] for *bundle options* .\n\n[rollup-options]: https://github.com/rollup/rollup/wiki/JavaScript-API#rolluprollup-options-\n[bundle-options]: https://github.com/rollup/rollup/wiki/JavaScript-API#bundlegenerate-options-\n\n## License\n\n[Do What The F*ck You Want To Public License](https://spdx.org/licenses/WTFPL)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrantic1048%2Ffly-rollup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrantic1048%2Ffly-rollup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrantic1048%2Ffly-rollup/lists"}