{"id":13802006,"url":"https://github.com/steamerjs/steamer-react-component","last_synced_at":"2025-04-10T13:32:38.926Z","repository":{"id":57370600,"uuid":"83573983","full_name":"steamerjs/steamer-react-component","owner":"steamerjs","description":"react组件开发脚手架","archived":false,"fork":false,"pushed_at":"2019-12-30T08:22:07.000Z","size":567,"stargazers_count":27,"open_issues_count":2,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-10T00:05:35.067Z","etag":null,"topics":["boilerplate","component","react","starter-kit","webpack","webpack2"],"latest_commit_sha":null,"homepage":null,"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/steamerjs.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":"2017-03-01T16:07:27.000Z","updated_at":"2021-04-23T03:42:21.000Z","dependencies_parsed_at":"2022-08-29T17:02:42.340Z","dependency_job_id":null,"html_url":"https://github.com/steamerjs/steamer-react-component","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steamerjs%2Fsteamer-react-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steamerjs%2Fsteamer-react-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steamerjs%2Fsteamer-react-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steamerjs%2Fsteamer-react-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steamerjs","download_url":"https://codeload.github.com/steamerjs/steamer-react-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144238,"owners_count":21054891,"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":["boilerplate","component","react","starter-kit","webpack","webpack2"],"created_at":"2024-08-04T00:01:32.916Z","updated_at":"2025-04-10T13:32:38.900Z","avatar_url":"https://github.com/steamerjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# steamer-react-component\n\n用于开发 `react` 组件的脚手架\n\n\n## 快速启动\n\n* 推荐 \u003e\u003e 使用[steamerjs](https://steamerjs.github.io/docs/projectkits/Bootstrap.html)安装\n\n```javascript\n\nnpm i -g steamerjs steamer-plugin-kit\n\nnpm i -g steamer-react-component\n\nsteamer kit\n```\n\n* 或直接从github clone 下来\n\n### 安装依赖\n```bash\nnpm i\n```\n\n### 开发\n\n```bash\nnpm run start 或 npm run dev\n\n// 打开链接，查看 demo\nlocalhost:9000\n```\n\n\u003e ps：此处在开启开发模式下默认会自动打开浏览器。\n\n### 代码规范扫描\n\n```bash\nnpm run lint\n```\n\n\u003e ps：此处的扫描在开发模式下是默认开启的，不需要手动执行lint。\n\n### 测试\n\n```bash\n// 使用 jest 测试\nnpm run test 或 npm run jest\n\n// 使用 karma 测试\nnpm run karma\n```\n\n### 生产代码生成\n\n```bash\n// 使用 babel 编译\nnpm run dist 或 npm run babel\n\n// 使用 webapck 编译\nnpm run webpack\n```\n\n\u003e ps：关于两种测试方式和两种编译方式的区别可查看[这里](https://steamerjs.github.io/docs/Componet-Standard.html#两种编译与两种测试方式)。\n\n## 编写demo\n\n直接在`/example/src/container/`目录下调整关于组件的使用逻辑和范例样式即可，如范例中该目录下的index.js和index.less文件。\n\n\n## 脚手架文档\n[参见文档 - 组件脚手架](https://steamerjs.github.io/docs/componentkits/Starterkit.html)\n\n## 文章参考\n* [从工程化角度讨论如何快速构建可靠React组件](https://github.com/lcxfs1991/blog/issues/18)\n* [聊一聊前端自动化测试](https://github.com/tmallfe/tmallfe.github.io/issues/37)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteamerjs%2Fsteamer-react-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteamerjs%2Fsteamer-react-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteamerjs%2Fsteamer-react-component/lists"}