wtl-cli
0.4.4 • Public • Published wtl-cli
Tools
- Tool for Extract Layer Images Form AI File 1
从AI文件中把每一图层批量生成png —— ai export png
CLI
AI & Template generate
- Generating Image Requirement Form a Template
根据给定的json模板文件,分析需要的图片资源,并生成requirements.txt
wtl gen_requirement --imgType preview --output ./requirement.txt ./template.json
- Create a Template
根据json模板和AI图层文件目录, 生成目标模板(加入zIndex),并构建图片目录
cd path/to/ai_imgs/
wtl gen_template .
- Packaging
把
design/
,decoration/
, template.json
打包成压缩包,压缩包名为模板的名称
cd path/to/ai_imgs/
wtl package .
Development
npm install
make test
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
0.4.4 | 1 | latest |
Version History
Package Sidebar
Install
Weekly Downloads