{"id":13452758,"url":"https://github.com/fex-team/GMU","last_synced_at":"2025-03-23T21:34:50.751Z","repository":{"id":8105886,"uuid":"9521152","full_name":"fex-team/GMU","owner":"fex-team","description":"基于zepto的ui组件库，适用于移动端","archived":false,"fork":false,"pushed_at":"2017-04-18T06:07:08.000Z","size":14124,"stargazers_count":1087,"open_issues_count":42,"forks_count":414,"subscribers_count":131,"default_branch":"master","last_synced_at":"2024-10-28T19:39:01.014Z","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/fex-team.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}},"created_at":"2013-04-18T12:31:33.000Z","updated_at":"2024-04-04T11:16:49.000Z","dependencies_parsed_at":"2022-09-18T15:51:05.848Z","dependency_job_id":null,"html_url":"https://github.com/fex-team/GMU","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fex-team%2FGMU","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fex-team%2FGMU/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fex-team%2FGMU/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fex-team%2FGMU/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fex-team","download_url":"https://codeload.github.com/fex-team/GMU/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245174849,"owners_count":20572774,"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-07-31T08:00:22.320Z","updated_at":"2025-03-23T21:34:49.863Z","avatar_url":"https://github.com/fex-team.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","4. ui组件库(CSS Framework)","9. 其他与展望"],"sub_categories":["5. 参考材料"],"readme":"## Notice ##\n+ 当前版本（2.1.0）基于zepto 1.0\n+ 2.0.3及以下版本（支持zepto 1.0rc1），请移步至老的github地址 https://github.com/campaign/gmu\n\n## Build State [![Build Status](https://travis-ci.org/fex-team/GMU.svg?branch=master)](https://travis-ci.org/fex-team/GMU)\n\n## GMU ##\nGMU是基于zepto的轻量级mobile UI组件库，符合jquery ui使用规范，提供webapp、pad端简单易用的UI组件。兼容iOS3+ / android2.1+，支持国内主流移动端浏览器，如safari, chrome, UC, qq等。\nGMU由百度GMU小组开发，基于开源BSD协议，支持商业和非商业用户的免费使用和任意修改，您可以通过[get started](http://gmu.baidu.com/getstarted)快速了解。\n\n### Quick Start ###\n+ **官网：**http://gmu.baidu.com/\n+ **API：**http://gmu.baidu.com/doc\n\n### 命令行工具 ###\n命令行工具提供代码打包，[规范](https://github.com/gmuteam/jsbint/blob/master/standard.md)检测和生成文档功能。\n\n环境依赖\n* git\n* node(包括npm)\n* grunt (npm install -g grunt-cli)\n\n#### 1. 如何跑Demo ####\n如果想要本地跑demo需要做以下几步操作。由于gmu没有直接存放zepto的代码，而是引用了zepto官方仓库。所以需要通过git命令\n去zepto官方仓库取代码，然合并成zepto.js。不过这个过程已经写好了脚本，只要按以下步骤操作，脚本能把这个工作完成。\n\n打开命令行工具。\n\n1. `git clone https://github.com/gmuteam/GMU.git` 把gmu代码checkout到当前目录下的GMU目录里面\n2. `cd GMU` 进入GMU目录\n3. `npm install` 安装node依赖。\n4. `grunt dist` 生成合并的zepto.js, gmu.js到dist目录。\n\n#### 2. 打包代码 ####\n`grunt concat`\n\n`grunt concat_gmu`\n\n#### 3. 代码规范检测 ####\ngmu所有的代码要求通过[此内定代码规范](https://github.com/gmuteam/jsbint/blob/master/standard.md), 通过以下命令可以得到检测结果\n`grunt jsbint`\n\n#### 4. 生成文档 ####\n通过以下命令可以在doc目录下生成静态文档，也可以[在线查看](http://gmu.baidu.com/doc);\n`grunt doc`\n\n\n### 关于dist目录 ###\n\n如果不想自己打包也可以直接使用 `dist` 目录中打包好的资源，其中包括\n\n```html\nreset.css\ngmu.css\nzepto.js\ngmu.js\n```\n\n按顺序直接引用即可，此外，`dist` 中还有压缩版本，可以按需使用。\n\n需要注意的是，GMU中有些插件是无法共存的，因此 `dist` 目录中的 `gmu.js` 中并不包含这些插件，如需自定打包规则请参考之前的打包教程。\n\n### 反馈bug ###\n如果您有任何关于GMU或移动前端开发中的问题，可以在QQ群中讨论，也可以通过[git issue](https://github.com/campaign/gmu/issues)给我们反馈bug，我们会尽快解决。\n当然，我们更欢迎您的fork，为GMU添砖加瓦。\n\n### 联系我们 ###\n+ QQ：127405799 (已满) 339271891 （群2）305735121 （群3）\n+ Email：gmu@baidu.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffex-team%2FGMU","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffex-team%2FGMU","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffex-team%2FGMU/lists"}