{"id":22791121,"url":"https://github.com/rootsher/react-webpack-starter","last_synced_at":"2025-04-16T03:12:26.008Z","repository":{"id":78165605,"uuid":"133827795","full_name":"rootsher/react-webpack-starter","owner":"rootsher","description":"React (+react-router v4), Webpack, HMR, Babel, TypeScript, PostCSS, Material Design, RxJS, Prettier","archived":false,"fork":false,"pushed_at":"2018-05-18T13:23:10.000Z","size":98,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T03:12:16.357Z","etag":null,"topics":["react-starter","react-typescript-starter","react-webpack","webpack-starter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rootsher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-05-17T14:47:21.000Z","updated_at":"2025-01-11T17:25:23.000Z","dependencies_parsed_at":"2023-03-10T19:30:45.803Z","dependency_job_id":null,"html_url":"https://github.com/rootsher/react-webpack-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsher%2Freact-webpack-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsher%2Freact-webpack-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsher%2Freact-webpack-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsher%2Freact-webpack-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootsher","download_url":"https://codeload.github.com/rootsher/react-webpack-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249188428,"owners_count":21227015,"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":["react-starter","react-typescript-starter","react-webpack","webpack-starter"],"created_at":"2024-12-12T02:32:47.960Z","updated_at":"2025-04-16T03:12:26.001Z","avatar_url":"https://github.com/rootsher.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-webpack-starter\n\n## 1. Features\n\n*   ES5, ES6 (ES2015), ES2016, ESNext\n*   webpack\n    *   webpack-dev-server + HMR\n    *   dynamic imports\n*   typescript\n*   babel + polyfills\n*   jsx + react + react-router v4 + RxJS\n*   material design (material-ui)\n*   css + scss + postcss (CSS modules + cssnext)\n*   prettier + linters\n*   husky (precommit hook) + lint-staged\n\n## 2. TODO list\n\n*   [ ] auto manifest.json + service-worker\n*   [ ] PWA features, assets caching\n*   [ ] better application architecture\n*   [ ] HMR for single component\n*   [ ] tests - unit, e2e (cypress)\n*   [ ] dynamic dependency injection container\n\n## 3. Requirements\n\n*   node (v8.9.4)\n*   yarn (v1.3.2)\n\n## 4. Installation\n\n```sh\nyarn # [enter] or yarn install\n```\n\n## 5. Scripts\n\n### \\* webpack-dev-server (watch mode)\n\n```sh\n$ yarn start\n```\n\n```sh\n$ yarn start -- --host=0.0.0.0 # default: localhost\n```\n\n```sh\n$ yarn start -- --port=8081 # default: 8080\n```\n\n### \\* production build (output in `./dist`)\n\n```sh\n$ yarn build\n```\n\n## 6. Capabilities\n\n### _ importing image files i.e. `_.jpg`,`_.png`,`_.gif`,`\\*.svg`\n\nbefore:\n\n```jsx\nimport image from \"./example/path/image.png\";\n\n\u003cimg src={image} /\u003e;\n```\n\nafter:\n\n```jsx\n\u003cimg src=\"./assets/image/23tr82r3278r28332.png\" /\u003e\n```\n\n### _ using fonts (without import) in `_.scss` file\n\nbefore:\n\n```css\n@font-face {\n    font-family: Font;\n    src: url(\"./fonts/font.woff\") format(\"woff\");\n}\n```\n\nafter:\n\n```css\n@font-face {\n    font-family: Font;\n    src: url(\"./assets/fonts/1387r122f3273.woff\") format(\"woff\");\n}\n```\n\n### _ importing `_.json` files\n\n```jsx\nimport file from \"./path/image.json\"; // { key: 'value' }\n```\n\n### \\* using CSS modules - :local (default) and :global scope\n\nbefore:\n\n```scss\n.myBox {\n    color: red;\n}\n:global {\n    .globalBox {\n        color: blue;\n    }\n}\n```\n\nafter:\n\n```scss\n._37f65 {\n    color: red;\n}\n.globalBox {\n    color: blue;\n}\n```\n\n...and in JS:\n\n```jsx\nimport { myBox, globalBox } from \"./box-styles.scss\"; // myBox -\u003e \"_37f65\", globalBox -\u003e \"globalBox\"\n\n\u003cdiv className={myBox}\u003e\n    \u003cdiv className={globalBox} /\u003e\n\u003c/div\u003e;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootsher%2Freact-webpack-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootsher%2Freact-webpack-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootsher%2Freact-webpack-starter/lists"}