科月语cli
icomoon-cli是一个跨平台命令行工具,可以帮助您上传您的新图标. 由于icomoon不提供任何公共API可以使用,你可能会发现将icomoon整合到您当前的工作流程中很困难. 科月克力是用来解决这个问题的.
cli使用量
如果您喜欢使用 icomoon- cli 作为 cli, 只需通过 npm 安装并使用以下命令
Install: npm i -g @axinvd/icomoon-cli
Usage: icomoon-cli [command]
Commands:
-V, --version output the version number
-s, --selection [string] path to icomoon selection file (default: "./icomoon.json")
-i, --icons <sting...> path to icons need to be imported
-f, --outputFont [string...] output font path with type, separated by coma
-l, --lock [string] path to lock file (default: "./icomoon-lock.json")
-o, --output [string] all icomoon generated files path (default: "tempDir/icomoon-cli")
-n, --outputNames [string] path to icons const
-v, --visible run a GUI chrome instead of headless mode (default: false)
-m, --mode [string] mode 'add' or 'repository' (default: "add")
-h, --help display help for command
Example Usages:
icomoon-cli -i test/*.svg -f ./test,ttf -s test/myfont -m repository
icomoon-cli -i test/add.svg test/alert.svg -o ./test
icomoon-cli -i test/*.svg -s ./test -f ./test,ttf -n test/iconNames.ts -l test/icomoon-lock.json