{"id":18355372,"url":"https://github.com/charto/autoroll","last_synced_at":"2025-07-31T06:13:50.630Z","repository":{"id":57187633,"uuid":"155471741","full_name":"charto/autoroll","owner":"charto","description":"Rollup autoconfigurator","archived":false,"fork":false,"pushed_at":"2019-05-03T15:28:41.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T08:12:34.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/charto.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":"2018-10-30T23:52:09.000Z","updated_at":"2019-05-03T15:26:12.000Z","dependencies_parsed_at":"2022-08-28T13:00:26.838Z","dependency_job_id":null,"html_url":"https://github.com/charto/autoroll","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/charto/autoroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fautoroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fautoroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fautoroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fautoroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charto","download_url":"https://codeload.github.com/charto/autoroll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fautoroll/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267997183,"owners_count":24178251,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-05T22:06:42.096Z","updated_at":"2025-07-31T06:13:50.606Z","avatar_url":"https://github.com/charto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autoroll\n\n[![npm version](https://img.shields.io/npm/v/autoroll.svg)](https://www.npmjs.com/package/autoroll)\n[![dependency status](https://david-dm.org/charto/autoroll.svg)](https://david-dm.org/charto/autoroll)\n[![install size](https://packagephobia.now.sh/badge?p=autoroll)](https://packagephobia.now.sh/result?p=autoroll)\n[![license](https://img.shields.io/npm/l/autoroll.svg)](https://raw.githubusercontent.com/charto/autoroll/master/LICENSE)\n\nThis is a multipurpose configuration file for [rollup](https://rollupjs.org/).\nIt reads your `package.json` file and automatically extracts relevant information.\n\n## Usage\n\nPut this in your `rollup.config.js`:\n\n```JavaScript\nmodule.exports = require('autoroll')();\n```\n\nThat's all. Now it generates UMD bundles from ES6 sources.\nEntry point paths are configured in de facto standard `package.json` fields which you should set up anyway:\n\n- `browser`\n- `main`\n- `module`\n\nIf you have dependencies, to avoid bloat they don't get bundled by default.\nYou can include specific dependencies in the UMD bundle by listing them in `rollup.config.js`:\n\n```JavaScript\nmodule.exports = require('autoroll')(\n  {\n    include: [\n      'some',\n      'dependencies'\n    ]\n  }\n);\n```\n\nThey are looked up from the current working directory (package root in npm scripts), under `node_modules`.\nEach package should have a `package.json` file with a `module` or `main` field defining an ES6 entry point.\n\nThere is special support for [boennemann/alle](https://github.com/boennemann/alle#readme).\nIf an `alle`-style directory contains a subdirectory `node_modules` with several packages belonging to the same monorepo,\n`autoroll` can create a separate bundle for each one. Entry points and bundle paths are configured in\n`package.json` files for each package.\n\nFor example packages under `packages/node_modules` can be bundled with the following `rollup.config.js`:\n\n```\nmodule.exports = require('autoroll')({ alle: 'packages' });\n```\n\nAny more complicated setup should use a traditional rollup config file with plugins like\n[rollup-plugin-node-resolve](https://github.com/rollup/rollup-plugin-node-resolve) and\n[rollup-plugin-commonjs](https://github.com/rollup/rollup-plugin-commonjs).\nThis package is for avoiding build system bloat in simpler cases.\n\nFor testing packages with old Node.js versions (lack of modern JavaScript features can resemble old mobile browsers),\nit can be helpful to run `rollup` conditionally in package scripts using the included `checkver` tool:\n\n```json\n{\n  \"prepublish\": \"(checkver ge 5.0.0 \u0026\u0026 rollup -c)\"\n}\n```\n\n# License\n\n[The MIT License](https://raw.githubusercontent.com/charto/autoroll/master/LICENSE)\n\nCopyright (c) 2018- BusFaster Ltd\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharto%2Fautoroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharto%2Fautoroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharto%2Fautoroll/lists"}