{"id":20226250,"url":"https://github.com/steamerjs/react-spin-component","last_synced_at":"2025-09-10T14:33:53.442Z","repository":{"id":77789220,"uuid":"95972548","full_name":"steamerjs/react-spin-component","owner":"steamerjs","description":"react spinner","archived":false,"fork":false,"pushed_at":"2017-07-03T05:00:48.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-13T23:32:52.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/steamerjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-07-01T15:32:00.000Z","updated_at":"2017-07-03T05:00:52.000Z","dependencies_parsed_at":"2023-03-12T02:01:35.550Z","dependency_job_id":null,"html_url":"https://github.com/steamerjs/react-spin-component","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/steamerjs%2Freact-spin-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steamerjs%2Freact-spin-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steamerjs%2Freact-spin-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steamerjs%2Freact-spin-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steamerjs","download_url":"https://codeload.github.com/steamerjs/react-spin-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241670132,"owners_count":20000326,"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":[],"created_at":"2024-11-14T07:16:57.458Z","updated_at":"2025-03-03T12:47:08.695Z","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/steamerjs/docs/How-To-Start.html)安装\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 source\n```\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/steamerjs/docs/Componet-Standard.html#两种编译与两种测试方式)。\n\n## 编写demo\n\n直接在`/example/src/container/`目录下调整关于组件的使用逻辑和范例样式即可，如范例中该目录下的index.js和index.less文件。\n\n\n## 详细文档\n[参见文档 - 组件脚手架](https://steamerjs.github.io/steamerjs/docs/Component-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%2Freact-spin-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteamerjs%2Freact-spin-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteamerjs%2Freact-spin-component/lists"}