{"id":19346669,"url":"https://github.com/antmjs/temptaro","last_synced_at":"2025-10-13T14:32:21.318Z","repository":{"id":39341472,"uuid":"385838425","full_name":"AntmJS/temptaro","owner":"AntmJS","description":"Taro应用模版，内置了一些比较常用及有价值的生态工具","archived":false,"fork":false,"pushed_at":"2023-08-28T07:48:45.000Z","size":4499,"stargazers_count":60,"open_issues_count":4,"forks_count":20,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T02:50:31.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AntmJS.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}},"created_at":"2021-07-14T06:33:37.000Z","updated_at":"2025-06-26T11:37:55.000Z","dependencies_parsed_at":"2024-01-25T22:10:50.524Z","dependency_job_id":null,"html_url":"https://github.com/AntmJS/temptaro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AntmJS/temptaro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntmJS%2Ftemptaro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntmJS%2Ftemptaro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntmJS%2Ftemptaro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntmJS%2Ftemptaro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntmJS","download_url":"https://codeload.github.com/AntmJS/temptaro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntmJS%2Ftemptaro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015738,"owners_count":26085748,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10T04:11:32.172Z","updated_at":"2025-10-13T14:32:21.299Z","avatar_url":"https://github.com/AntmJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 注意事项\n\n* h5环境使用useRouter取到的params需要自行decode，其他环境及this.location内部已decode过了，或者使用hooks.ts内的useRouter\n* 如果自己在函数式组件内调用useDidShow，需要在方法内包裹一层nextTick方法，否则Taro的生命周期里面会先执行useDidShow，再执行useEffect(() =\u003e {//后执行}, [])，或者使用hooks.ts内的useDidShow\n\n## Taro项目模版\n\n目前支持微信、支付宝、抖音、快手、百度小程序；支持H5\n\n### 代码规范\n\n* 默认集成了 prettier eslint stylelint 解决编码规范问题\n* 默认集成了 commitlint commitizen 解决commit规范问题\n* 默认集成了 husky lint-staged 解决了commit之前自动校验代码规范\n\n### 开发效率\n\n* 使用Unite库以空间换时间的方案加快研发速度，同时保证TS类型安全\n* action层使用@antmjs/api实现根据TS类型自动生成action逻辑，保证类型安全\n* action层也可以使用yarn swagger自动根据服务端的swagger api 自动生成action逻辑，保证类型安全\n* 自动埋点\n* 自动收集异常\n* 自动处理异常\n* 自动处理pullDownloadRefresh\n* 快速使用自定义导航\n* 快速支持事件抖动\n* 二次封装了部分频繁使用的组件\n\n## 使用\n\n1. 执行yarn rapper自动生成action层代码(需要的话)\n2. 执行yarn swagger自动根据服务端swagger api生成action层代码(需要的话)\n3. 需要引入iconfont可以执行 yarn iconfont 会自动生成src/iconfont.less\n4. yarn\n5. yarn watch:weapp(package.json里面填写对应环境的appId)\n\n## 如果需要添加告警机制\n\n1. 将_antm.config.js 改成 antm.config.js\n2. 更新antm.config.js里面的webhooks.url的access_token\n3. 将.husky/pre-commit里面的npx antm-warning webhooks 注释取消\n\n### 执行顺序 useDidShow 优先于useEffect执行\n\n- app show\n- app launch\n\n- index com show\n- index page show\n- index com load\n- index page load\n\n- index com hide\n- index page hide\n\n- second com show\n- second page show\n- second com load\n- second page load\n\n- index com show\n- index pageshow\n\n- second page unload\n- second com unload\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantmjs%2Ftemptaro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantmjs%2Ftemptaro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantmjs%2Ftemptaro/lists"}