Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/e282486518/wxapp
https://github.com/e282486518/wxapp
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/e282486518/wxapp
- Owner: e282486518
- License: gpl-3.0
- Created: 2023-03-10T01:34:39.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-10T01:45:28.000Z (almost 2 years ago)
- Last Synced: 2024-11-09T14:18:12.650Z (about 2 months ago)
- Language: JavaScript
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 安装
```
npm install
```# 安装依赖
```
npm install esprima
npm install css-tree
npm install cssbeautify
npm install vm2
npm install uglify-es
npm install js-beautify
```# 分包功能
当检测到 wxapkg 为子包时, 添加-s 参数指定主包源码路径即可自动将子包的 wxss,wxml,js 解析到主包的对应位置下. 完整流程大致如下:
1. 获取主包和若干子包
2. 解包主包
- windows系统使用: `./bingo.bat testpkg/master-xxx.wxapkg`
- Linux系统使用: `./bingo.sh testpkg/master-xxx.wxapkg`
3. 解包子包
- windows系统使用: `./bingo.bat testpkg/sub-1-xxx.wxapkg -s=../master-xxx`
- Linux系统使用: `./bingo.sh testpkg/sub-1-xxx.wxapkg -s=../master-xxx`觉得麻烦?可以使用[自助解包客户端](#自助解包客户端)
TIP
> -s 参数可为相对路径或绝对路径, 推荐使用绝对路径, 因为相对路径的起点不是当前目录 而是子包解包后的目录```
├── testpkg
│ ├── sub-1-xxx.wxapkg #被解析子包
│ └── sub-1-xxx #相对路径的起点
│ ├── app-service.js
│ ├── master-xxx.wxapkg
│ └── master-xxx # ../master-xxx 就是这个目录
│ ├── app.json
```