{"id":15388234,"url":"https://github.com/georapbox/rollup-library-starter-kit","last_synced_at":"2025-07-13T19:08:29.758Z","repository":{"id":37903343,"uuid":"173491239","full_name":"georapbox/rollup-library-starter-kit","owner":"georapbox","description":"Rollup starter kit for creating libraries","archived":false,"fork":false,"pushed_at":"2023-01-08T17:21:16.000Z","size":972,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T20:01:45.399Z","etag":null,"topics":["commonjs","es6","esm","esmodules","library","rollup","starter-kit","umd"],"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/georapbox.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-03-02T19:41:06.000Z","updated_at":"2023-03-09T01:36:07.000Z","dependencies_parsed_at":"2023-02-08T06:45:16.185Z","dependency_job_id":null,"html_url":"https://github.com/georapbox/rollup-library-starter-kit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/georapbox/rollup-library-starter-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georapbox%2Frollup-library-starter-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georapbox%2Frollup-library-starter-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georapbox%2Frollup-library-starter-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georapbox%2Frollup-library-starter-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/georapbox","download_url":"https://codeload.github.com/georapbox/rollup-library-starter-kit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georapbox%2Frollup-library-starter-kit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265191242,"owners_count":23725283,"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":["commonjs","es6","esm","esmodules","library","rollup","starter-kit","umd"],"created_at":"2024-10-01T14:56:04.579Z","updated_at":"2025-07-13T19:08:29.733Z","avatar_url":"https://github.com/georapbox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![build](https://github.com/georapbox/rollup-library-starter-kit/workflows/build/badge.svg)\n\n# rollup-library-starter-kit\n\nRollup starter kit for creating libraries (Input: ES6, Output: UMD, CommonJS, ESM)\n\n## Features\n\n- Rollup 2.x.x\n- Babel 7\n- ES6 as a source\n- Exports in UMD, CommonJS, ESM formats\n- ES6 test setup with [Jest](https://jestjs.io/)\n- Linting with [ESLint](https://eslint.org/)\n- Basic [Travis](https://travis-ci.org/) configuration\n\n## Getting started\n\n### 1. Setup the library's name\n\n- Open `rollup.config.js` and change the value of `LIBRARY_NAME` variable with your library's name.\n- Open `package.json` and change the following properties with your library's equivalent\n  - `name`\n  - `version`\n  - `description`\n  - `main`\n  - `module`\n  - `browser`\n  - `repository`\n  - `author`\n  - `license`\n  - `bugs`\n  - `homepage`\n\n### 2. Install dependencies\n\n- Run `npm install` to install the library's dependencies.\n\n### 3. Build for development\n\n- Having all the dependencies installed run `npm run dev`. This command will generate `UMD` (unminified), `CommonJS` and `ESM` modules under the `dist` folder. It will also watch for changes in source files to recompile.\n\n### 4. Build for production\n\n- Having all the dependencies installed run `npm run build`. This command will generate the same modules as above and one extra minified `UMD` bundle for usage in browser.\n\n## Scripts\n\n- `npm run build` - Produces production version of library modules under `dist` folder.\n- `npm run dev` - Produces a development version of library and runs a watcher to watch for changes.\n- `npm run test` - Runs the tests.\n- `npm run test:watch` - Runs the tests in watch mode for development.\n- `npm run test:coverage` - Runs the tests and provides with test coverage information.\n- `npm run lint` - Lints the source code with ESlint.\n- `npm run prepare` - Run both BEFORE the package is packed and published, on local npm install without any arguments, and when installing git dependencies.\n- `npm run clean` - Deletes `dist` and `coverage` folders.\n\n## Misc\n\n- By default all source code is located under the `src` folder.\n- Be default `dist` folder is excluded from source control but included for npm. You can change this behavior by not excluding this folder inside the `.gitignore` file.\n- The starter kit assumes that all tests are located under `test` folder with `.spec.js` extension.\n\n## License\n\n[The MIT License (MIT)](https://georapbox.mit-license.org/@2019)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorapbox%2Frollup-library-starter-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorapbox%2Frollup-library-starter-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorapbox%2Frollup-library-starter-kit/lists"}