{"id":15091654,"url":"https://github.com/mqyqingfeng/lnv-mobile-base","last_synced_at":"2025-04-12T06:31:11.131Z","repository":{"id":91238394,"uuid":"68664578","full_name":"mqyqingfeng/lnv-mobile-base","owner":"mqyqingfeng","description":"移动端开发脚手架-基于gulp的使用zepto、handlebars、sass并且带移动端适配方案（flexible.js）的前端工作流，旨在帮助移动端项目的开发","archived":false,"fork":false,"pushed_at":"2017-10-18T05:37:34.000Z","size":1488,"stargazers_count":41,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T01:51:11.898Z","etag":null,"topics":["gulp","handlebars","rem-flexible","scaffold"],"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/mqyqingfeng.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-20T02:10:35.000Z","updated_at":"2022-06-16T03:59:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"c89efb4c-a872-4715-8c48-169bc7833748","html_url":"https://github.com/mqyqingfeng/lnv-mobile-base","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"9f11b37a81a7490032eb327dcf7735af311a6cee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mqyqingfeng%2Flnv-mobile-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mqyqingfeng%2Flnv-mobile-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mqyqingfeng%2Flnv-mobile-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mqyqingfeng%2Flnv-mobile-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mqyqingfeng","download_url":"https://codeload.github.com/mqyqingfeng/lnv-mobile-base/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248529417,"owners_count":21119506,"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":["gulp","handlebars","rem-flexible","scaffold"],"created_at":"2024-09-25T10:42:27.993Z","updated_at":"2025-04-12T06:31:06.048Z","avatar_url":"https://github.com/mqyqingfeng.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 移动端开发脚手架\n\n基于 gulp 的使用 zepto、handlebars、sass 并且带移动端适配方案（flexible.js）的前端工作流，旨在帮助移动端项目的开发。\n\n## 背景\n\n在移动端项目的开发中，我们会遇到诸如移动端技术选型、移动端适配、预处理器语言的使用规范和编译、各种繁琐的工作（压缩、合并、内联、雪碧图、CSS前缀……）等问题，在一遍又一遍的重复劳动中，我们需要一个能够结合最佳实践的项目初始文件，本套工作流就是以这个目的进行构建，旨在提高移动端项目开发效率。\n\n## 技术选型\n\n* zepto.js + deferred.js + callbacks.js + touch.js（库）\n* flexible.js（移动端rem适配方案）\n* handlebars（模板引擎）\n* gulp（自动化构建工具）\n* sass（预处理器语言）\n\n## 功能\n\n1. Sass 编译\n2. CSS JS 图片压缩\n3. CSS JS 合并\n4. CSS JS 内联\n5. HTML 的 include 功能\n6. Autoprefixer\n7. 自动刷新\n8. 去缓存\n9. 提供Handlebars模板文件的预编译\n10. 提供常用功能函数\n11. 雪碧图\n12. ESLint\n13. rem 移动端适配方案\n14. 内置样式与 WeUI 样式相同的 loading、dialog 组件\n\n## 教程\n\n[针对移动端的前端工作流](https://github.com/mqyqingfeng/introduction-for-lnv-mobile-base)\n\n共 13 篇，讲解了本套脚手架的各个方面。\n\n## 使用\n\n```js\ngit clone git@github.com:mqyqingfeng/lnv-mobile-base.git\n\ncd lnv-mobile-base\n```\n\n## 开发和编译\n\n1.开发时使用：\n\n```js\ngulp\n```\n\n当你开启 gulp 命令后，不要关闭终端，gulp 会监控 src 目录下的变化，根据文件的不同进行对应的操作。\n\n2.最终构建：\n```js\ngulp build\n```\n\n当你执行 gulp build 命令后，会自动压缩、合并、内联、去缓存，这是最终的上线版本。\n\n## 说明\n\n如果有疑问或者发现错误，可以在 issues 进行提问或勘误。\n\n如果对你有所帮助，欢迎 star，对作者也是一种鼓励。\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmqyqingfeng%2Flnv-mobile-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmqyqingfeng%2Flnv-mobile-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmqyqingfeng%2Flnv-mobile-base/lists"}