{"id":20626833,"url":"https://github.com/mikbry/rollupreactapp","last_synced_at":"2026-05-06T13:15:33.093Z","repository":{"id":44005750,"uuid":"237248147","full_name":"mikbry/RollupReactApp","owner":"mikbry","description":"Boilerplate to create a React app using Rollup ","archived":false,"fork":false,"pushed_at":"2023-01-05T06:06:14.000Z","size":798,"stargazers_count":2,"open_issues_count":9,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T06:28:04.128Z","etag":null,"topics":["babel","es7","esm","react","rollup"],"latest_commit_sha":null,"homepage":"","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/mikbry.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-01-30T15:55:17.000Z","updated_at":"2021-09-24T12:28:53.000Z","dependencies_parsed_at":"2023-02-03T14:46:00.295Z","dependency_job_id":null,"html_url":"https://github.com/mikbry/RollupReactApp","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikbry%2FRollupReactApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikbry%2FRollupReactApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikbry%2FRollupReactApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikbry%2FRollupReactApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikbry","download_url":"https://codeload.github.com/mikbry/RollupReactApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242483344,"owners_count":20135784,"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":["babel","es7","esm","react","rollup"],"created_at":"2024-11-16T13:14:50.965Z","updated_at":"2026-05-06T13:15:28.069Z","avatar_url":"https://github.com/mikbry.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `rollup-react-app`\n\nBoilerplate to create a React app using Rollup.\n\n[Rollup](https://rollupjs.org) is the right tool for bundling your javascript applications. But when you develop you still need Webpack ? [You could rely on a well known article : Webpack and Rollup: the same but different](https://medium.com/webpack/webpack-and-rollup-the-same-but-different-a41ad427058c) But it is time to change our mind, and to remove Webpack. This template is a first step in this direction.\n\nAnother point `rollup-create-app` try to follow `create-react-app`, the source code, static assets, tests and structure are the same.\n\n## Why\n- Create a minimal from scratch React app using Rollup to bundle but also to develop instead of using Webpack.\n- Need for a complete boilerplate / example how to develop and bundle React app using Rollup\n- Stay compatible with `create-react-app` commands (start, build, test)\n- Develop using [Nollup](https://github.com/PepsRyuu/nollup) and [Hot Module replacement](https://webpack.js.org/concepts/hot-module-replacement/) (using experimental [react-refresh](https://github.com/facebook/react/tree/master/packages/react-refresh))\n- Bundle 2 packages : an ESM one for (\u003e 2018 browsers) and another one for olders, instead of  `create-react-app`\n- Be compatible to good practices (Husky, Commitlint, ...)\n- Experiment new stuff (Nollup, Typescript)\n\n## WIP\n- [x] Base code\n- [x] Serve\n- [x] Jsx support\n- [x] Build for prod\n- [x] Css / images\n- [x] Hot reload\n- [x] esm/iife scripts support\n- [x] test\n- [ ] Typescript\n\n## Inspiration\nhttps://create-react-app.dev/\n\nhttps://stackoverflow.com/questions/51291553/how-to-bundle-react-app-with-rollup\n\nhttps://github.com/DianaSuvorova/rollup-react-app\n\nhttps://medium.com/@tomaszmularczyk89/guide-to-building-a-react-components-library-with-rollup-and-styled-jsx-694ec66bd2\n\n## Available Scripts\n\n`rollup-react-app` tries to work as `create-react-app`, so commands are the same.\n\nIn the project directory, you can run:\n\n### `yarn start`\n\nRuns the app in the development mode.\u003cbr /\u003e\nOpen [http://localhost:5000](http://localhost:5000) to view it in the browser.\n\n### `yarn build`\n\nBuilds the app for production to the `build` folder.\u003cbr /\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nYouc could test it using this command:\n\n`npx serve build -l 9000`\n\n### `yarn test`\n\nRun tests using [jest](https://jestjs.io/). See `src/App.test.jsx`\n\n### `yarn coverage`\n\nDoes a code coverage report. A directory coverage is generated containing an html report.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikbry%2Frollupreactapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikbry%2Frollupreactapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikbry%2Frollupreactapp/lists"}