{"id":19346678,"url":"https://github.com/antmjs/temptaro-apollo-graphql","last_synced_at":"2026-04-17T06:02:37.311Z","repository":{"id":105087881,"uuid":"404593237","full_name":"AntmJS/temptaro-apollo-graphql","owner":"AntmJS","description":"基于taro+apolloclient+graphql的解决方案，需配合tempnest-prisma-graphql","archived":false,"fork":false,"pushed_at":"2021-09-09T05:16:54.000Z","size":286,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-24T09:43:43.024Z","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":"mit","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":"LICENSE","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":"2021-09-09T05:08:50.000Z","updated_at":"2023-06-21T10:20:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"9eb4419d-ea89-46c5-9c77-d18f8014071f","html_url":"https://github.com/AntmJS/temptaro-apollo-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AntmJS/temptaro-apollo-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntmJS%2Ftemptaro-apollo-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntmJS%2Ftemptaro-apollo-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntmJS%2Ftemptaro-apollo-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntmJS%2Ftemptaro-apollo-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntmJS","download_url":"https://codeload.github.com/AntmJS/temptaro-apollo-graphql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntmJS%2Ftemptaro-apollo-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31917372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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:35.081Z","updated_at":"2026-04-17T06:02:37.264Z","avatar_url":"https://github.com/AntmJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Taro快速开发模版\n\n### 选型\n\nTaro + React + Less + Graphql + ApolloClient\n\n### 特性\n\n- 非UI全局缓存能力\n- UI全局缓存能力\n\n### 规范\n\nCommitlint + Husky + lint-staged + Prettier + Eslint + Stylelint + TSC\n\n- Eslint: @typescript-eslint + import + react + react-hooks + prettier\n- Stylelint: stylelint-config-standard + stylelint-config-prettier\n\n### Vscode\n\nPrettier - Code formatter + Eslint + stylelint\n\n\n### 工程使用\n\ngit clone git@github.com:AntmJS/temptaro.git\n\nrm -rf .git\n\ngit init\n\nyarn install\n\nnpx husky install\n\ngit add .\n\ngit commit -m 'feat: 初始化'\n\ngit remote add origin ...\n\ngit push origin master\n\n### 应用变更\n\nproject.weapp.json - projectname description\n\nproject.tt.json - projectname description\n\npackage.json - name description appId(环境对应API_ENV) Taro版本\n\nconfig/index.js - projectName date h5.webpackChain.publicPath\n\nsrc/app.config.ts - window.navigationBarTitleText\n\nsrc/utils/request/innerRequest/index.ts - statusCode为200的判断依据返回是否和约定一致，其他均为失败\n\nsrc/components/container.tsx - MiniBar的homeUrl\n\n### 注意事项\n\n- 路径引用可以使用 '@/xxx'\n- 主题可以放在src/style/index.less下面\n- API_ENV: stable real pre dev\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\n### 注意\n\n当前工程的schema.graphql文件是tempnest-prisma-graphql工程生成的，所以务必保证两个工程是在同一层目录下面，另外修改tempnest-prisma-graphql/src/shared/configs/config.ts内的schemaDestination内容\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantmjs%2Ftemptaro-apollo-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantmjs%2Ftemptaro-apollo-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantmjs%2Ftemptaro-apollo-graphql/lists"}