输入wepy项目路径,输出uni-app项目。
注意:本工具基于语法转换,对于wepy自带的方法暂不支持转换,又如引用了redux也暂不支持,牵扯太多。转换项目仅供参考。
$ npm install wepy-to-uniapp -g
$ npm update wepy-to-uniapp -g
Usage: etu [options]
Options:
-V, --version output the version number [版本信息]
-i, --input the input path for wepy project [输入目录]
-o, --output the output path for uni-app project, which default value is process.cwd() [输出目录]
-h, --help output usage information [帮助信息]
Examples:
$ etu -i wepyProject
uni-app里并不支持wepy,需要手动替换所使用的wepy.xxx()方法,工具现在还不支持wepy方法转换
导入的less或scss文件需要写明后缀名,否则查找不到
直接忽略,不影响转换
This repo is released under the MIT.