{"id":15385992,"url":"https://github.com/alstonchan/react-generator","last_synced_at":"2026-01-24T00:54:42.148Z","repository":{"id":59747147,"uuid":"521902100","full_name":"AlstonChan/react-generator","owner":"AlstonChan","description":"A React app generator bundled with Webpack 5 and Babel/SWC","archived":false,"fork":false,"pushed_at":"2025-04-24T18:12:14.000Z","size":1681,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-28T13:28:03.420Z","etag":null,"topics":["babel","create-react-app","es6","eslint","react","reacttestinglibrary","scss","swc","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@chan_alston/react-generator","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/AlstonChan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-06T09:27:11.000Z","updated_at":"2024-06-28T15:33:31.000Z","dependencies_parsed_at":"2024-06-26T03:35:28.182Z","dependency_job_id":"de3aca84-ba6b-42c3-b5f1-3a5dcf46e619","html_url":"https://github.com/AlstonChan/react-generator","commit_stats":{"total_commits":32,"total_committers":1,"mean_commits":32.0,"dds":0.0,"last_synced_commit":"f5097b0b662112279d91c14cddf1d2b50b50a9e1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2Freact-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2Freact-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2Freact-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2Freact-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlstonChan","download_url":"https://codeload.github.com/AlstonChan/react-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251319633,"owners_count":21570434,"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","create-react-app","es6","eslint","react","reacttestinglibrary","scss","swc","webpack"],"created_at":"2024-10-01T14:46:55.781Z","updated_at":"2026-01-24T00:54:42.119Z","avatar_url":"https://github.com/AlstonChan.png","language":"JavaScript","readme":"# React Generator (Webpack + Babel/SWC)\n\nA React app generator bundled with Webpack 5 and Babel/SWC\n\n## Features\n\n- [x] Webpack Hot Module Replacement\n- [x] Bundle Optimization\n- [x] React Testing Library with Jest/Vitest for unit testing\n- [x] Support for various type of images, fonts\n- [x] Transpile code with Babel/SWC\n- [x] Support css module and scss module\n- [x] Minified js and stylesheet\n- [x] Integrated BundleAnalyzerPlugin to inspect bundle size\n- [x] Remove console.log() on production\n\n## Usage\n\nTo create a react project, you can run the following command.\n\n```bash\nnpx @chan_alston/react-generator@latest\n```\n\nYou will then be prompted to enter your *project name* select the package manager you desire and the transpiler you want the project to use.\n\n## File Structure\n\nUsing Babel as transpiler:\n\n```text\nmy-app\n└── __mocks__\n    ├── fileTransformer.js\n    ├── identity-obj-proxy-esm.js\n    ├── intersectionObserverMock.js\n    └── setupTests.js\n└── public\n    └── font\n        └── PoetsenOne.tff\n    ├── favicon.ico\n    ├── index.html\n    ├── react.png\n    └── webpack.png\n└── src\n    ├── index.js\n    └── routes\n        └── __test__\n            └──index.test.js\n        ├── _routes.js\n        └── index.js\n    └── styles\n        ├── global.scss\n        └── homepage.module.scss\n├── .env.example\n├── babel.config.cjs\n├── .eslint.config.mjs\n├── .gitignore\n├── jest.config.js\n├── package.json\n├── postcss.config.js\n├── README.md\n├── webpack.config.js\n├── webpack.dev.js\n└── webpack.prod.js\n```\n\nUsing SWC as transpiler:\n\n```text\nmy-app\n└── public\n    └── font\n        └── PoetsenOne.tff\n    ├── favicon.ico\n    ├── index.html\n    ├── react.png\n    └── webpack.png\n└── src\n    ├── index.js\n    └── test\n        └── index.test.jsx\n    └── routes\n        ├── _routes.jsx\n        └── index.jsx\n    └── styles\n        ├── global.scss\n        └── homepage.module.scss\n├── .env.example\n├── .eslint.config.mjs\n├── .gitignore\n├── package.json\n├── postcss.config.js\n├── README.md\n├── .swcrc\n├── vitest.config.mjs\n├── vitest.setup.mjs\n├── webpack.config.js\n├── webpack.dev.js\n└── webpack.prod.js\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falstonchan%2Freact-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falstonchan%2Freact-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falstonchan%2Freact-generator/lists"}