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 --imgType preview --template ./example.json --output ./template.json . 
# 最简单 
wtl gen_template .
  • Packaging 把design/,decoration/, template.json打包成压缩包,压缩包名为模板的名称
cd path/to/ai_imgs/
wtl package .

Development

npm install
make test

Readme

Keywords

Package Sidebar

Install

npm i wtl-cli

Weekly Downloads

3

Version

0.4.4

License

MIT

Last publish

Collaborators

  • jayinton