{"id":13603950,"url":"https://github.com/NervJS/taro-v2ex","last_synced_at":"2025-04-11T22:32:03.751Z","repository":{"id":46552572,"uuid":"144583200","full_name":"NervJS/taro-v2ex","owner":"NervJS","description":"使用 Taro 实现 V2EX 小程序","archived":false,"fork":false,"pushed_at":"2023-07-13T01:58:55.000Z","size":615,"stargazers_count":157,"open_issues_count":4,"forks_count":31,"subscribers_count":4,"default_branch":"react","last_synced_at":"2025-04-10T14:43:46.864Z","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/NervJS.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":"2018-08-13T13:25:12.000Z","updated_at":"2024-12-12T05:28:42.000Z","dependencies_parsed_at":"2024-01-19T10:12:00.037Z","dependency_job_id":"f157b466-8d49-448a-b743-8c546ca48a0c","html_url":"https://github.com/NervJS/taro-v2ex","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/NervJS%2Ftaro-v2ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-v2ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-v2ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-v2ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NervJS","download_url":"https://codeload.github.com/NervJS/taro-v2ex/tar.gz/refs/heads/react","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248489762,"owners_count":21112633,"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-08-01T19:00:37.049Z","updated_at":"2025-04-11T22:32:03.250Z","avatar_url":"https://github.com/NervJS.png","language":"TypeScript","funding_links":[],"categories":["示例项目"],"sub_categories":["Taro 2"],"readme":"# Taro-V2EX\n\n这个项目使用了 Taro 构建了一个 [V2ex](www.v2ex.com) 论坛小程序。主要目的在于展示如何使用 TypeScript 构建 Taro 项目和使用内置的事件中心跨组件/路由传递消息。\n\n[![v2ex.gif](https://i.loli.net/2018/08/15/5b73d86a54514.gif)](https://i.loli.net/2018/08/15/5b73d86a54514.gif)\n\n\n## 运行\n\n```bash\n$ npm install\n$ npm i -g @tarojs/cli\n$ taro build --type weapp --watch\n```\n\n## 限制\n\n宥于 V2EX API 的限制，本项目有几个限制：\n\n1. 没有「获取更多」的这个 API，除了回复可以全部载入之外所有 API 都不能加载更多信息；\n2. 每个 IP 每小时只能访问 API 100 次，超过便无法访问；\n3. 无法跨域，因此没有 h5 版本；\n\n## 建议\n\n对于在 Taro 中使用 TypeScript 有一些建议：\n\n* 使用 tslint 作为编辑器内置的 linter\n* 使用 eslint 命令行工具配合 `typescript-eslint-parser` 和 `eslint-config-taro`(见 [.eslintrc](./eslintrc)) 作为 `precommit` 或者 `prepush` 的钩子，在提交或 commit 或编译出现问题时检查代码是否符合 Taro 规范\n* 不要在 TypeScript 使用 Redux 的 `connect` 装饰器，使用普通的函数写法,详情见: [#9951](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/9951)\n* 当你的项目不那么复杂时，可以不使用 Redux\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNervJS%2Ftaro-v2ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNervJS%2Ftaro-v2ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNervJS%2Ftaro-v2ex/lists"}