{"id":19442048,"url":"https://github.com/codertonychan/wepy-tony-native","last_synced_at":"2026-06-12T06:05:30.887Z","repository":{"id":128412354,"uuid":"117185393","full_name":"CoderTonyChan/wepy-tony-native","owner":"CoderTonyChan","description":"https://mp.weixin.qq.com/debug/wxadoc/dev/quickstart/basic/getting-started.html","archived":false,"fork":false,"pushed_at":"2018-01-12T06:54:36.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T07:46:57.332Z","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/CoderTonyChan.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-12T03:07:43.000Z","updated_at":"2018-01-12T03:15:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"a43aa39b-a99d-4a75-a62a-53365f026f69","html_url":"https://github.com/CoderTonyChan/wepy-tony-native","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CoderTonyChan/wepy-tony-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderTonyChan%2Fwepy-tony-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderTonyChan%2Fwepy-tony-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderTonyChan%2Fwepy-tony-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderTonyChan%2Fwepy-tony-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoderTonyChan","download_url":"https://codeload.github.com/CoderTonyChan/wepy-tony-native/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderTonyChan%2Fwepy-tony-native/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34231237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-10T15:38:02.996Z","updated_at":"2026-06-12T06:05:30.871Z","avatar_url":"https://github.com/CoderTonyChan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wepy-tony-native\nhttps://mp.weixin.qq.com/debug/wxadoc/dev/quickstart/basic/getting-started.html\n\n### 项目构建\n- 小程序官方程序的默认模板\n\n\n### 代码高亮\n- 文件后缀为.WXML，可共用HTML的高亮规则\n- 文件后缀为.WXSS，可共用CSS的高亮规则\n\n- 下面提供一些常见IDE或编辑器中实现代码高亮的相关设置步骤以供参考(也可通过更改文件后缀名的方式来实现高亮，详见后文相关介绍)。\n- Sublime\n    - 1. 打开Sublime-\u003ePreferences-\u003eBrowse Packages..进入用户包文件夹。\n\n    - 2. 在此文件夹下打开cmd，运行git clone git@github.com:vuejs/vue-syntax-highlight.git，无GIT用户可以直接下载zip包解压至当前文件夹。\n\n    - 3. 关闭.wpy文件重新打开即可高亮。\n\n- WebStorm/PhpStorm\n    - 1. 打开Settings，搜索Plugins，搜索Vue.js插件并安装。\n\n    - 2. 打开Settings，搜索File Types，找到Vue.js Template，在Registered Patterns添加*.wpy，即可高亮。\n\n- Atom\n    - 1. 在Atom里先安装Vue的语法高亮 - language-vue，如果装过了就忽略这一步。\n\n    - 2. 打开Atom -\u003e Config菜单。在core键下添加：\n\n\n```Atom\ncustomFileTypes:\n   \"text.html.vue\": [\n      \"wpy\"\n   ]\n```\n\n- VS Code\n    - 1. 在 Code 里先安装 Vue 的语法高亮插件 Vetur。\n\n    - 2. 打开任意 .wpy 文件。\n\n    - 3. 点击右下角的选择语言模式，默认为纯文本。\n\n    - 4. 在弹出的窗口中选择 .wpy 的配置文件关联...。\n\n    - 5. 在选择要与 .wpy 关联的语言模式 中选择 Vue。\n\n- VIM\n    - 1. 安装 Vue 的 VIM 高亮插件，例如 posva/vim-vue。\n\n    - 2. 配置 .wpy 后缀名的文件使用 Vue 语法高亮。\n\n```vim\nau BufRead,BufNewFile *.wpy setlocal filetype=vue.html.javascript.css\n```\n\n### app.json\n文件名不需要写文件后缀，因为框架会自动去寻找路径下 .json, .js, .wxml, .wxss 四个文件进行整合。\n\n```文件名不需要写文件后缀，因为框架会自动去寻找路径下 .json, .js, .wxml, .wxss 四个文件进行整合。\nhttps://mp.weixin.qq.com/debug/wxadoc/dev/framework/config.html\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodertonychan%2Fwepy-tony-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodertonychan%2Fwepy-tony-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodertonychan%2Fwepy-tony-native/lists"}