{"id":13788623,"url":"https://github.com/huangang/wepy-one","last_synced_at":"2025-08-16T16:31:46.235Z","repository":{"id":82433437,"uuid":"77817806","full_name":"huangang/wepy-one","owner":"huangang","description":"小程序-one(wepy版本)","archived":false,"fork":false,"pushed_at":"2018-02-24T05:47:58.000Z","size":105,"stargazers_count":47,"open_issues_count":0,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-18T02:38:13.096Z","etag":null,"topics":["oneapp","wechat","wepy"],"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/huangang.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":"2017-01-02T07:29:53.000Z","updated_at":"2024-10-12T07:43:39.000Z","dependencies_parsed_at":"2023-06-15T16:15:10.956Z","dependency_job_id":null,"html_url":"https://github.com/huangang/wepy-one","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangang%2Fwepy-one","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangang%2Fwepy-one/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangang%2Fwepy-one/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangang%2Fwepy-one/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huangang","download_url":"https://codeload.github.com/huangang/wepy-one/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230044193,"owners_count":18164124,"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":["oneapp","wechat","wepy"],"created_at":"2024-08-03T21:00:51.148Z","updated_at":"2024-12-17T00:31:38.918Z","avatar_url":"https://github.com/huangang.png","language":"JavaScript","funding_links":[],"categories":["微信小程序WePY框架开发资源汇总 ![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)"],"sub_categories":["WePY开源项目"],"readme":"# wepy-one\n\n## install\n```bash\nnpm install wepy-cli -g\nnpm install cross-env -g # 正式环境编译用\ncd wepy-one\nnpm install\nwepy build --watch\n```\n\n#### 项目目录结构\n```\n├── dist                   微信开发者工具指定的目录\n├── node_modules           \n├── src                    代码编写的目录\n|   ├── components         组件文件夹（非完整页面）\n|   |   ├── com_a.wpy      可复用组件 a\n|   |   └── com_b.wpy      可复用组件 b\n|   ├── pages              页面文件夹（完整页面）\n|   |   ├── index.wpy      页面 index\n|   |   └── page.wpy       页面 page\n|   └── app.wpy            小程序配置项（全局样式配置、声明钩子等）\n└── package.json           package 配置\n```\n\n#### 开发使用说明\n1. 使用`微信开发者工具`新建项目，本地开发选择`dist`目录。\n2. `微信开发者工具` --\u003e 项目 --\u003e 关闭ES6转ES5。\n3. 本地项目根目录运行`wepy build --watch`，开启实时编译。\n\n###代码规范：\n1. 变量与方法使用尽量使用驼峰式命名，避免使用`$`开头。\n以`$`开头的方法或者属性为框架内建方法或者属性，可以被使用，使用前请[参考API文档](https://wepyjs.github.io/wepy/#/#api)。\n2. 入口，页面，组件的命名后缀为`.wpy`。外链的文件可以是其它后缀。\n请参考[wpy文件说明](https://wepyjs.github.io/wepy/#/#wpy文件说明)\n3. 使用ES6语法开发。\n框架在ES6下开发，因此也需要使用ES6开发小程序，ES6中有大量的语法糖可以让我们的代码更加简洁高效。\n4. 使用Promise\n框架默认对小程序提供的API全都进行了 Promise 处理，甚至可以直接使用`async/await`等新特性进行开发。\n\n## 感谢\n本程序是代码大量参考了[weapp-one](https://github.com/ahonn/weapp-one),特此声明,表示感谢   \n[ReactNativeOne](https://github.com/lipeiwei-szu/ReactNativeOne)  \n[wepy](https://github.com/wepyjs/wepy)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangang%2Fwepy-one","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuangang%2Fwepy-one","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangang%2Fwepy-one/lists"}