{"id":13438082,"url":"https://github.com/pheuter/essential-react","last_synced_at":"2025-04-14T20:52:18.023Z","repository":{"id":28348056,"uuid":"31861681","full_name":"pheuter/essential-react","owner":"pheuter","description":"A minimal skeleton for building testable React apps using Babel","archived":false,"fork":false,"pushed_at":"2018-07-31T14:53:27.000Z","size":352,"stargazers_count":2015,"open_issues_count":18,"forks_count":131,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-04-07T15:05:02.423Z","etag":null,"topics":["babel","boilerplate","react","skeleton","webpack"],"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/pheuter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-03-08T19:10:15.000Z","updated_at":"2025-03-17T08:59:32.000Z","dependencies_parsed_at":"2022-09-07T23:10:29.331Z","dependency_job_id":null,"html_url":"https://github.com/pheuter/essential-react","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheuter%2Fessential-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheuter%2Fessential-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheuter%2Fessential-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheuter%2Fessential-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pheuter","download_url":"https://codeload.github.com/pheuter/essential-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248960959,"owners_count":21189990,"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","boilerplate","react","skeleton","webpack"],"created_at":"2024-07-31T03:01:02.753Z","updated_at":"2025-04-14T20:52:17.998Z","avatar_url":"https://github.com/pheuter.png","language":"JavaScript","readme":"### Essential React\n\n[![Travis branch](https://img.shields.io/travis/pheuter/essential-react.svg?style=flat-square)](https://travis-ci.org/pheuter/essential-react)\n[![Coveralls](https://img.shields.io/coveralls/pheuter/essential-react.svg?style=flat-square)](https://coveralls.io/r/pheuter/essential-react)\n\n---\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\nA minimal skeleton for building testable React apps using Babel.\n\n- [Design Goals](#design-goals)\n- [Getting Started](#getting-started)\n- [Commands](#commands)\n  - [server](#server)\n  - [build](#build)\n  - [test](#test)\n  - [coveralls](#coveralls)\n  - [clean](#clean)\n- [Changelog](#changelog)\n\n## Design Goals\n\n- Use fewer tools (no yeoman, gulp, bower, etc...)\n- Babel 6 with Webpack and Hot Loader\n- Fast testing with mocked-out DOM\n- Import css files as class names\n- Separate [Smart and Dumb](https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0) components\n- No specific implementation of Flux or data fetching patterns\n\n\n## Getting Started\n\n```sh\n$ npm install\n```\n\nStart the local dev server:\n\n```sh\n$ npm run server\n```\n\nNavigate to **http://localhost:8080/** to view the app.\n\n## Commands\n\nA core philosophy of this skeleton app is to keep the tooling to a minimum. For this reason, you can find all the commands in the `scripts` section of [package.json](package.json).\n\n### server\n\n```sh\n$ npm run server\n```\n\n**Input:** `src/main.jsx`\n\nThis leverages [React Hot Loader](https://github.com/gaearon/react-hot-loader) to automatically start a local dev server and refresh file changes on the fly without reloading the page.\n\nIt also automatically includes source maps, allowing you to browse code and set breakpoints on the original ES6 code:\n\n### build\n\n```sh\n$ npm run build\n```\n\n**Input:** `src/main.jsx`\n\n**Output:** `build/app.js`\n\nBuild minified app for production using the [production](http://webpack.github.io/docs/cli.html#production-shortcut-p) shortcut.\n\n### test\n\n```sh\n$ npm test\n```\n\n**Input:** `test/main.js`\n\n**Output:** `coverage/`\n\nLeverages [ava](https://github.com/sindresorhus/ava) to execute the test suite and generate code coverage reports using [nyc](https://github.com/bcoe/nyc)\n\n### coveralls\n\n```sh\n$ npm run coveralls\n```\n\n**Input:** `coverage/lcov.info`\n\nSends the code coverage report generated by [nyc](https://github.com/bcoe/nyc) to [Coveralls](http://coveralls.io/).\n\n### clean\n\n```sh\n$ npm run clean\n```\n\n**Input:** `build/app.js`\n\nRemoves the compiled app file from build.\n\n## [Changelog](CHANGELOG.md)\n","funding_links":[],"categories":["Uncategorized","Code Design","JavaScript","Web 前端"],"sub_categories":["Uncategorized","Boilerplate"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpheuter%2Fessential-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpheuter%2Fessential-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpheuter%2Fessential-react/lists"}