{"id":15041486,"url":"https://github.com/doyoe/yo","last_synced_at":"2025-04-12T21:34:13.127Z","repository":{"id":57403969,"uuid":"25910583","full_name":"doyoe/Yo","owner":"doyoe","description":"Lightweight, easy-to-use, configurable, and extensible mobile front-end development framework.","archived":false,"fork":false,"pushed_at":"2021-03-30T06:29:38.000Z","size":11525,"stargazers_count":330,"open_issues_count":5,"forks_count":104,"subscribers_count":41,"default_branch":"dev-v3","last_synced_at":"2025-04-04T01:11:08.424Z","etag":null,"topics":["css","es6","frontend-framework","mobile-app","mobile-first","mobile-web","react","scss","scss-framework","ui-components"],"latest_commit_sha":null,"homepage":"","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/doyoe.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}},"created_at":"2014-10-29T08:04:45.000Z","updated_at":"2025-03-23T10:22:32.000Z","dependencies_parsed_at":"2022-08-30T20:01:09.604Z","dependency_job_id":null,"html_url":"https://github.com/doyoe/Yo","commit_stats":null,"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doyoe%2FYo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doyoe%2FYo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doyoe%2FYo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doyoe%2FYo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doyoe","download_url":"https://codeload.github.com/doyoe/Yo/tar.gz/refs/heads/dev-v3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248636975,"owners_count":21137527,"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":["css","es6","frontend-framework","mobile-app","mobile-first","mobile-web","react","scss","scss-framework","ui-components"],"created_at":"2024-09-24T20:46:09.420Z","updated_at":"2025-04-12T21:34:13.100Z","avatar_url":"https://github.com/doyoe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yo\n\n`Yo` 是一个纯粹的移动前端开发框架，专注为移动应用提供快速且专业的构建方式；她轻量，易用，可配置，并且具备超强的扩展能力。\n\n`v3` 版本是 `Yo` 的一个新里程碑，我们将加入丰富的UI组件，让构建移动应用变得更简单。如果你对之前的 `Yo` 恋恋不舍，只想使用她的样式，`v3及后续版本` 仍然会满足，你只需要保持和之前的版本一样安装和使用即可，我们提供了与之对应的 `pure` 版本。\n\n下面的内容可以帮你更好的了解 `Yo`：\n\n* [简介](#intro)\n* [起步](#getting-started)\n* [浏览器支持](#supported-browsers)\n* [注意](#attention)\n* [实例和文档](#documentation-and-demo)\n* [版本](#versioning)\n* [问题及反馈](#bugs-and-feature-requests)\n* [作者](#author)\n* [版权和许可](#copyright-and-license)\n\n\n\u003ca name=\"intro\"\u003e\u003c/a\u003e\n## 简介\n\n与其它框架不同的是，实际上我们并不计划对外提供类似打包好的 `yo.min.css/yo.min.js` 来供使用，而是推荐直接在 `Yo` 的标准工程目录下进行开发。这样你将能体会到 `Yo` 的众多功能和方法为开发所带来的便利，并感受到它的魅力。\n\n\u003ca name=\"getting-started\"\u003e\u003c/a\u003e\n## 起步\n\n* 根据 [起步说明](http://yo.doyoe.com/doc/getting-started.html) 了解 `Yo` 的工作原理并开始构建标准的 `Yo` 项目；\n\n\n\u003ca name=\"supported-browsers\"\u003e\u003c/a\u003e\n## 浏览器支持\n\n* iOS6.0+\n* Android4.0+\n* Latest Stable: Chrome, Safari, Opera, IE10+\n\n\n\u003ca name=\"attention\"\u003e\u003c/a\u003e\n## 注意\n\n`Yo` 做了一些全局的定义，这些定义也让设计变得意思。\n\n### 文档模式\n\n为了能够让你的样式得到完整的解析，我们推荐你使用 `HTML5 doctype`：\n\n    \u003c!DOCTYPE html\u003e\n\n### 视窗viewport\n\n`Yo` 采用 `Mobile First` 的策略设计，首先要保证移动设备上的体验，至于不同的终端，可以配合 `响应式` 来做适配：\n\n    \u003cmeta name=\"viewport\" content=\"initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no\" /\u003e\n\n如果应用需要考虑手动缩放的情况，可以将 `maximum-scale=1, user-scalable=no` 移除；但不建议移除 `minimum-scale=1`，因为页面可能会被缩小到难以阅读的程度。\n\n### 单位\n\n`Yo` 约束了2种项目所使用的长度单位\n\n* 所有涉及到 `border` 的长度单位都是用 `px`；\n* 除 `border` 外，所有的长度设置都是用 `rem` 单位；\n\n### 盒模型\n\n为了让计算变得简单，我们改变了所有元素的盒模型，将其重置为 `border-box`。当然，也包括常用的伪元素 `::before` 和 `::after`。\n\n    *,\n    ::before,\n    ::after {\n        -webkit-box-sizing: border-box;\n        -moz-box-sizing: border-box;\n        box-sizing: border-box;\n    }\n\n如果你长时间工作在 `PC` 平台上，这个设定可能需要一个适应的过程，但可以肯定的是，你一定会喜欢上它。\n\n### flex布局\n\n为了让你的 `flex` 布局可以正常工作，请检查 `flex子项` 是否为块级元素（可以显式的通过 `display` 来定义），在较老的平台及浏览器上，如果 `flex子项` 是行内级元素，`flex` 布局将会解析错误。\n\n\n\u003ca name=\"documentation-and-demo\"\u003e\u003c/a\u003e\n## 实例和文档\n\n* [View Demo](http://doyoe.github.io/Yo/demo/)\n* [View Documentation](http://doyoe.github.io/Yo/doc/)\n\n如果你想在本地构建 `Yo` 的文档，只需要：\n\n* 安装 ydoc：`npm install ydoc -g --registry=https://registry.npm.taobao.org`\n* 在项目根目录下执行：`ydoc build`\n\n此时，文档将会默认生成到 `doc` 目录下。\n\n\u003e 线上默认提供的只是最新版本的文档，如果你正在使用过往版本，则可以按照这种方式直接生成本地文档。\n\n\n\u003ca name=\"versioning\"\u003e\u003c/a\u003e\n## 版本\n\n`Yo` 的版本方针遵循 [SemVer](http://semver.org/lang/zh-CN/) 规范，版本号采用 `主版本号.次版本号.修订号` 的格式。版本发布周期是透明的，并尽可能保证向前向后兼容，您可以根据我们的语义化版本方针进行版本控制。\n\n你可以在 [releases tag](https://github.com/doyoe/Yo/releases) 中找到当前所有已发布的稳定版本。如想查看更多版本变更历史，请查看 [ChangeLog](changelog.md)\n\n\n\u003ca name=\"bugs-and-feature-requests\"\u003e\u003c/a\u003e\n## 问题及反馈\n\n如果您的项目正在使用`Yo`，过程中发现了任何问题，或者有任何帮助`Yo`更完善的想法和建议，请直接给我们提 [Issues](https://github.com/doyoe/Yo/issues/new) 和 [Pull Requests](https://github.com/doyoe/Yo/pulls)。\n\n\n\u003ca name=\"author\"\u003e\u003c/a\u003e\n## 作者\n\n**杜瑶**\n\n* https://github.com/doyoe\n* http://weibo.com/doyoe\n* http://www.doyoe.com\n\n**YMFE Team**\n\n* https://github.com/YMFE\n\n\n\u003ca name=\"copyright-and-license\"\u003e\u003c/a\u003e\n## 版本和许可\n\n源码和文档版权属于 Yo 的所有开发者。源码发布基于 [the MIT license](http://opensource.org/licenses/MIT) 开源协议。文档发布基于 [Creative Commons](http://creativecommons.org/licenses/by/4.0/) 开源协议。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoyoe%2Fyo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoyoe%2Fyo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoyoe%2Fyo/lists"}