{"id":26075734,"url":"https://github.com/zhipenglin/webapp","last_synced_at":"2025-09-11T18:51:53.131Z","repository":{"id":215598923,"uuid":"64630768","full_name":"zhipenglin/webApp","owner":"zhipenglin","description":"多页面，基于jquery的移动端工程化示例","archived":false,"fork":false,"pushed_at":"2016-08-01T07:47:31.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-18T09:20:59.260Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhipenglin.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}},"created_at":"2016-08-01T02:54:35.000Z","updated_at":"2016-08-01T07:35:55.000Z","dependencies_parsed_at":"2024-01-05T11:45:15.579Z","dependency_job_id":"89509c59-fdd6-4d7a-8d22-901949e7b8b2","html_url":"https://github.com/zhipenglin/webApp","commit_stats":null,"previous_names":["zhipenglin/webapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhipenglin%2FwebApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhipenglin%2FwebApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhipenglin%2FwebApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhipenglin%2FwebApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhipenglin","download_url":"https://codeload.github.com/zhipenglin/webApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242627337,"owners_count":20160262,"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":"2025-03-09T01:06:08.971Z","updated_at":"2025-03-09T01:06:09.494Z","avatar_url":"https://github.com/zhipenglin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#使用前须知\n\n1.首先执行npm i，安装项目依赖\n\n2.配置build/var里的 VISION_WIDTH参数，使其大小等于设计稿大小，本项目使用了px2rem，会根据配置的参数，将原始样式中的px按照规则替换成rem实现自适应\n###原样式\n```\n.selector {\n  width: 150px;\n  height: 64px; /*px*/\n  font-size: 28px; /*px*/\n  border: 1px solid #ddd; /*no*/\n}\n```\n###插件替换后样式\n```\n.selector {\n  width: 2rem;\n  border: 1px solid #ddd;\n}\n[data-dpr=\"1\"] .selector {\n  height: 32px;\n  font-size: 14px;\n}\n[data-dpr=\"2\"] .selector {\n  height: 64px;\n  font-size: 28px;\n}\n[data-dpr=\"3\"] .selector {\n  height: 96px;\n  font-size: 42px;\n}\n```\n3.src为源码目录，请尽量按照各自模块进行编码，每个模块自己管理对应的样式和图片文件，在入口文件index.js中引用\n\n4.执行npm run dev进入开发模式，文件名中不添加md5，修改文件后会自动编译，代码不压缩，生成内嵌的source-map\n\n执行npm run build进行发布，文件名中添加md5,代码压缩，去除内嵌的source-map,生成manifest.json的文件映射\n\n5.样式采用less开发，javascript采用ECMASCRIPT 2015的stage-3开发","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhipenglin%2Fwebapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhipenglin%2Fwebapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhipenglin%2Fwebapp/lists"}