{"id":19343252,"url":"https://github.com/swashcap/demo-rollup-library","last_synced_at":"2026-05-18T03:07:26.534Z","repository":{"id":42812641,"uuid":"269180869","full_name":"swashcap/demo-rollup-library","owner":"swashcap","description":"A demo library built with rollup.js","archived":false,"fork":false,"pushed_at":"2023-01-06T07:49:43.000Z","size":420,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T03:13:07.514Z","etag":null,"topics":["react","rollup","typescript"],"latest_commit_sha":null,"homepage":null,"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/swashcap.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-03T19:52:16.000Z","updated_at":"2020-06-04T05:49:00.000Z","dependencies_parsed_at":"2023-02-05T16:01:59.271Z","dependency_job_id":null,"html_url":"https://github.com/swashcap/demo-rollup-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swashcap/demo-rollup-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swashcap%2Fdemo-rollup-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swashcap%2Fdemo-rollup-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swashcap%2Fdemo-rollup-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swashcap%2Fdemo-rollup-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swashcap","download_url":"https://codeload.github.com/swashcap/demo-rollup-library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swashcap%2Fdemo-rollup-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["react","rollup","typescript"],"created_at":"2024-11-10T03:37:50.167Z","updated_at":"2026-05-18T03:07:26.507Z","avatar_url":"https://github.com/swashcap.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo Rollup Library\n\n_A demo library built with [rollup.js](https://rollupjs.org/guide/en/)_\n\nThis demo builds a basic [TypeScript](https://reactjs.org) [React](https://reactjs.org) component library using:\n\n* `@rollup/plugin-node-resolve`: Standard rollup.js plugins for handling module resolution and dependencies\n* [`@rollup/plugin-babel`](https://github.com/rollup/plugins/tree/master/packages/babel): Transpile modules with [babel](https://babeljs.io)\n  * `@babel/preset-typescript`: strip TypeScript types\n  * `@babel/plugin-transform-runtime`: use `@babel/runtime`\n* `external` in `rollup.config.js`: ensures the project's `dependencies` and `peerDependencies` aren't included in the built files\n\n## Building\n\n1. Use [nvm](https://github.com/nvm-sh/nvm) to select the correct version of Node.js\n\n    ```shell\n    $ cd demo-rollup-library\n    $ nvm use\n    # ...\n    ```\n2. Install dependencies with [yarn](https://github.com/nvm-sh/nvm):\n\n    ```shell\n    $ yarn\n    # ...\n    ```\n3. Build:\n\n    ```shell\n    $ yarn build\n    # ...\n    ```\n\n    This produces CommonJS and ES Modules builds:\n\n    ```shell\n    $ tree dist\n    dist\n    ├── cjs\n    │   └── index.js\n    └── esm\n        └── index.js\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswashcap%2Fdemo-rollup-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswashcap%2Fdemo-rollup-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswashcap%2Fdemo-rollup-library/lists"}