├── img ├── 01.gif ├── 02.gif ├── 03.gif ├── 04.gif ├── 05.png ├── 06.png ├── 07.png ├── zs.jpg ├── 27-1.png └── 27-2.png ├── .github └── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md ├── LICENSE └── README.md /img/01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lqc520/uniapp-plugin/HEAD/img/01.gif -------------------------------------------------------------------------------- /img/02.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lqc520/uniapp-plugin/HEAD/img/02.gif -------------------------------------------------------------------------------- /img/03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lqc520/uniapp-plugin/HEAD/img/03.gif -------------------------------------------------------------------------------- /img/04.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lqc520/uniapp-plugin/HEAD/img/04.gif -------------------------------------------------------------------------------- /img/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lqc520/uniapp-plugin/HEAD/img/05.png -------------------------------------------------------------------------------- /img/06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lqc520/uniapp-plugin/HEAD/img/06.png -------------------------------------------------------------------------------- /img/07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lqc520/uniapp-plugin/HEAD/img/07.png -------------------------------------------------------------------------------- /img/zs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lqc520/uniapp-plugin/HEAD/img/zs.jpg -------------------------------------------------------------------------------- /img/27-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lqc520/uniapp-plugin/HEAD/img/27-1.png -------------------------------------------------------------------------------- /img/27-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lqc520/uniapp-plugin/HEAD/img/27-2.png -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature Request 3 | about: 有个好主意吗?请毫不犹豫地写下来,描述一下新功能. 4 | --- 5 | 6 | 14 | 15 | **是关于什么的?** 16 | 19 | 20 | **我们需要它的原因是什么?** 21 | 26 | 27 | 我相信这是Uniapp Tool的一个重要功能。 有一些用例: 28 | 29 | * 案例一 30 | * 案例二 31 | * ... 32 | 33 | 如果有人同意我的观点,请在下面留下你的评论。或者只是竖起大拇指。 34 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: 创建报告以帮助我们改进 4 | --- 5 | 6 | 13 | 14 | **描述错误** 15 | 对bug的简明描述. 16 | 17 | 还请添加显示问题的屏幕截图. 18 | 19 | **使用的插件版本** 20 | Uniapp Tool: x.x.x 21 | vue: 2/3 22 | project: cli-js/cli-ts/hbx 23 | ide: WebStorm 202x.x.x 24 | 25 | **环境** 26 | 提供更多的信息: 27 | 比如: win11/macOS 28 | (欢迎其他信息帮助我们调试) 29 | 30 | **如何重现** 31 | 重现行为的步骤: 32 | 1. Go to '...' 33 | 2. Click on '....' 34 | 3. Scroll down to '....' 35 | 4. See error 36 | 37 | **预期行为** 38 | 对你期望发生的事情进行清晰简洁的描述. 39 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | End-User License Agreement (EULA) of Uniapp Tool 2 | This End-User License Agreement ("EULA") is a legal agreement between you and fjdmy. Our EULA was created by using the EULA Template for Uniapp Tool. 3 | 4 | This EULA agreement governs your acquisition and use of our Uniapp Tool software ("Software") directly from fjdmy or indirectly through a fjdmy authorized reseller or distributor (a "Reseller"). 5 | 6 | Please read this EULA agreement carefully before completing the installation process and using the Uniapp Tool software. It provides a license to use the Uniapp Tool software and contains warranty information and liability disclaimers. 7 | 8 | If you register for a free trial of the Uniapp Tool software, this EULA agreement will also govern that trial. By clicking "accept" or installing and/or using the Uniapp Tool software, you are confirming your acceptance of the Software and agreeing to become bound by the terms of this EULA agreement. 9 | 10 | If you are entering into this EULA agreement on behalf of a company or other legal entity, you represent that you have the authority to bind such entity and its affiliates to these terms and conditions. If you do not have such authority or if you do not agree with the terms and conditions of this EULA agreement, do not install or use the Software, and you must not accept this EULA agreement. 11 | 12 | This EULA agreement shall apply only to the Software supplied by fjdmy herewith regardless of whether other software is referred to or described herein. The terms also apply to any fjdmy updates, supplements, Internet-based services, and support services for the Software, unless other terms accompany those items on delivery. If so, those terms apply. 13 | 14 | License Grant 15 | fjdmy hereby grants you a personal, non-transferable, non-exclusive licence to use the Uniapp Tool software on your devices in accordance with the terms of this EULA agreement. 16 | 17 | You are permitted to load the Uniapp Tool software (for example a PC, laptop, mobile or tablet) under your control. You are responsible for ensuring your device meets the minimum requirements of the Uniapp Tool software. 18 | 19 | You are not permitted to: 20 | 21 | Edit, alter, modify, adapt, translate or otherwise change the whole or any part of the Software nor permit the whole or any part of the Software to be combined with or become incorporated in any other software, nor decompile, disassemble or reverse engineer the Software or attempt to do any such things 22 | Reproduce, copy, distribute, resell or otherwise use the Software for any commercial purpose 23 | Allow any third party to use the Software on behalf of or for the benefit of any third party 24 | Use the Software in any way which breaches any applicable local, national or international law 25 | use the Software for any purpose that fjdmy considers is a breach of this EULA agreement 26 | Intellectual Property and Ownership 27 | fjdmy shall at all times retain ownership of the Software as originally downloaded by you and all subsequent downloads of the Software by you. The Software (and the copyright, and other intellectual property rights of whatever nature in the Software, including any modifications made thereto) are and shall remain the property of fjdmy. 28 | 29 | fjdmy reserves the right to grant licences to use the Software to third parties. 30 | 31 | Termination 32 | This EULA agreement is effective from the date you first use the Software and shall continue until terminated. You may terminate it at any time upon written notice to fjdmy. 33 | 34 | It will also terminate immediately if you fail to comply with any term of this EULA agreement. Upon such termination, the licenses granted by this EULA agreement will immediately terminate and you agree to stop all access and use of the Software. The provisions that by their nature continue and survive will survive any termination of this EULA agreement. 35 | 36 | Governing Law 37 | This EULA agreement, and any dispute arising out of or in connection with this EULA agreement, shall be governed by and construed in accordance with the laws of cn. 38 | 39 | Generated using EULA Template 40 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Uniapp插件开发 2 | 3 | 4 | 5 | > 感谢您的关注和支持!如果您喜欢我的插件并想要支持我,可以通过微信赞赏码进行赞赏。您的每一份赞赏都是我更新更好内容的动力。也可以通过[好评](https://plugins.jetbrains.com/plugin/21470-uniapp-tool/reviews)来激励我! 6 | 7 | > 个人能力和精力有限 不是每一个需求都能解决 会优先处理赞赏用户的需求 优先处理bug 提issues请按模板提问 不按模板提问有可能会直接被我关闭 谢谢! 8 | 9 | 10 | ## 最新版下载 11 | 12 | [Uniapp插件下载](https://ghproxy.com/https://github.com/lqc520/uniapp-plugin/releases/download/v1.0.9-231.2/Uniapp-1.0.9-231.2.zip) 13 | 14 | ## 插件介绍 15 | 16 | ### 正式版 17 | [![插件版本](https://img.shields.io/jetbrains/plugin/v/21470.svg)![插件版本](https://img.shields.io/jetbrains/plugin/d/21470.svg)](https://plugins.jetbrains.com/plugin/21470-uniapp-tool/versions) 18 | 19 | ### 功能 20 | 21 | * 最新版本下载[ releases](https://github.com/lqc520/uniapp-plugin/releases) 22 | * 插件市场下载 [uniapp tool](https://plugins.jetbrains.com/plugin/21470-uniapp-tool) 23 | * [使用说明](https://plugins.jetbrains.com/plugin/21470-uniapp-tool/readme) 24 | * Bug[ 提交](https://github.com/lqc520/uniapp-plugin/issues) 25 | * 一款免费的 Uniapp插件 可以编译运行HbuildrX创建的uniapp项目 26 | * 启动项目需要再后台 设置->工具->Uniapp->设置HbuilderX安装根目录 27 | * 如需启动小程序 设置->工具->Uniapp->设置微信开发者工具安装根目录 28 | * 支持编译运行vue2/vue3项目 29 | * 支持rpx、upx、easycom 组件 30 | * 支持uniapp的内置组件语法提示 31 | * 支持对非cli项目的@/~路径识别、cli项目可以自行配置 32 | * 支持创建页面、包路径自动注册、支持分包路径 33 | * 支持发行微信小程序到官方后台 34 | * 支持uniapp的条件编译、代码块折叠、高亮 35 | * 支持文件androidPrivacy.json、manifest.json、pages.json 语法提示 36 | * 支持创建uniapp cli项目 支持创建vue2项目\vue3项目\vue3-ts项目 37 | * 支持运行uniapp子项目\子项目代码提示 38 | * 支持分包路径跳转\代码提示\跳转 39 | 40 | ## 常见问题 41 | 42 | ### 如何配置路径 43 | 44 | #### win配置 45 | 46 | ![win](https://plugins.jetbrains.com/files/21470/2121-page/dc681f77-fb9f-4e56-9015-f03f308d475b) 47 | 48 | #### mac配置 49 | 50 | /Applications/HBuilderX.app/ 51 | 52 | >要配置自己的项目的实际路径 53 | 54 | ### 如何使用插件创建创建cli项目 55 | 56 | #### 创建vue3项目 57 | 58 | ![image-20230827213525022](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/27-1.png) 59 | 60 | > degit和克隆差不多 如果使用有问题可能是github访问受限制、和插件无关 [官网文档](https://uniapp.dcloud.net.cn/quickstart-cli.html) 61 | 62 | #### 创建vue2项目 63 | 64 | ![image-20230827213850706](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/27-2.png) 65 | 66 | > 选中第二个cli就行 不用管理下方的vue3选项 并且会提示选择项目模板 [官网文档](https://uniapp.dcloud.net.cn/quickstart-cli.html) 67 | 68 | ### 如何使用分包功能 69 | 70 | ``` 71 | #pages.json添加以下结构 root路径可以自定义 在项目那边新建页面可以识别到subPackages参数 可以新建分包页面并且注册到pages.json 72 | "subPackages": [ 73 | { 74 | "root": "pages/xxx", 75 | "pages": [] 76 | } 77 | ] 78 | ``` 79 | 80 | ### 如何使用微信发行到官方后台功能 81 | 82 | 先使用hbx执行一遍 [使用教程](https://hx.dcloud.net.cn/cli/publish-mp-weixin?id=uploadPrivateKey) 后续可在webstorm配置参数 直接发行 83 | 84 | ### 插件支不支持子模块 85 | 86 | 目前插件支持子模块功能 目前仅支持一个子项目 有多个子项目的需求提issues 87 | 88 | ### 插件支不支持编译其他类型项目 比方说快手啥的 89 | 90 | 可以支持 有需要提issues 91 | 92 | 93 | 94 | ## 版本变动 95 | 96 | ### v1.0.10 97 | 98 | - 支持nvue uvue类型 99 | - 修复bug 100 | 101 | ### v1.0.9 102 | 103 | - 支持css emmet 104 | - 优化解析manifest文件 105 | - 优化创建页面添加记忆功能 106 | - 优化rpx支持(ws2023.2.2版本官方已经支持rpx/upx 低版本继续支持,高版本使用官方支持) 107 | 108 | ### v1.0.8 109 | 110 | - 创建cli项目 111 | - 支持运行子项目\子项目代码提示 112 | - 支持分包路径跳转\代码提示 113 | - 支持微信小程序上传查看日志 114 | - 支持动态配置插件部分功能 兼容一些性能较差的设备 115 | - 分包页面创建优化 微信小程序配置key路径优化 116 | - 整体代码提示功能优化 页面路径跳转优化 支持在pages.json 点击分包root 选中目录等 117 | 118 | ### v1.0.7 119 | 120 | - 生命周期函数优化 121 | - 路径跳转优化 122 | - 支持xml emmet 123 | 124 | ### v1.0.6 125 | 126 | - 支持生命周期函数提示 127 | - 优化cli项目取消路径识别(自行配置路径别名) 128 | - 支持条件编译高亮 129 | - 支持小程序编译时压缩代码 130 | 131 | ### v1.0.5 132 | 133 | - 分包问题修复 134 | - 条件编译折叠 135 | - 支付宝、抖音编译发行(不自动打开工具、因为还是需要手动导入项目) 136 | - image属性src添加jpg、png文件路径提示(后续改成和img提示一样) 137 | 138 | ### v1.0.4 139 | 140 | - vue3项目运行 141 | 142 | - 条件编译 143 | 144 | - 页面url路径识别 145 | 146 | - 分包注册 147 | 148 | - rpx upx 全局支持 149 | 150 | 151 | ### v1.0.3 152 | 153 | - [#4](https://github.com/lqc520/uniapp-plugin/issues/4) 154 | - 借助uni-helper对androidPrivacy.json、manifest.json、pages.json 文件语法支持和提示 155 | - 新建页面注册到pages.json 目前仅支持主包 156 | - pages.json 中的路径识别 157 | - 微信小程序发行到微信官方后台(请先用hx走一遍) 158 | - 语法支持加强 159 | 160 | ### v1.0.2 161 | 162 | - 适配mac适配 163 | 164 | ### v1.0.1 165 | 166 | - 支持easycom 167 | 168 | ### v1.0.0 169 | 170 | - 支持运行网页、微信小程序 171 | - 支持发行网页、小程序 172 | - 支持启动微信小程序 173 | - sass、less环境下支持rpx upx 174 | - ~/@ 识别为项目路径 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | ## 使用教程 183 | 184 | 本工具依赖于hx需要配置安装的根目录 185 | 186 | ![image-20230408181904355](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/image-20230408181904355.png) 187 | 188 | 启动项目 189 | 190 | ![1681358169857](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/1681358169857.png) 191 | 192 | 193 | 194 | 语法提示 路径识别 195 | 196 | ![01](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/01.gif) 197 | 198 | 199 | 200 | 注册页面 201 | 202 | ![02](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/02.gif) 203 | 204 | 内置组件支持加强 205 | 206 | ![03](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/03.gif) 207 | 208 | 路径提示 209 | 210 | ![04](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/04.gif) 211 | 212 | 上传到微信官方后台 213 | 214 | ![05](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/05.png) 215 | 216 | emmet 217 | 218 | ![emmet](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/50.gif) 219 | 220 | 221 | 222 | ## 感谢 223 | 224 | 插件开发借鉴了不少开源项目比如wechat-mini-program-support elemen 插件官方项目、uni-helper等 225 | 226 | 227 | 228 | ## 支持 229 | 230 | ![1681358169857](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/zs.jpg) 231 | 232 | 感谢您的关注和支持!如果您喜欢我的插件并想要支持我,可以通过微信赞赏码进行赞赏。您的每一份赞赏都是我更新更好内容的动力。谢谢您的支持! 233 | 234 | ## 联系 235 | 236 | > 加我微信注明来意 群二维码失效可以关注公众号 会自动发送群二维码 237 | 238 | ![联系我](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/user.jpg?x-oss-process=image/resize,w_300,limit_0) ![群聊](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/group.jpg?x-oss-process=image/resize,w_300,limit_0) 239 | 240 | ![公众号](https://wldmy.oss-cn-shenzhen.aliyuncs.com/fjdmy/img/qrcode.jpg?x-oss-process=image/resize,w_300,limit_0) 241 | --------------------------------------------------------------------------------