1.0.1 • Published 4 years ago
yach.open.cli v1.0.1
Yach 前端 CLI 工具集
a cli tools
install
$ npm install yach.open.cli --save # yarn add yach.open.cli
usage
terminal 工具
yach-del
删除本地文件
$ yach-del ./somefile
yach-serve
在当前目录起一个静态服务
$ cd someDir
$ yach-serve
-> http://localhost:5000
yach-open
本地浏览器打开链接
$ yach-open https://baidu.com
yach-uuid
生成一个 uuid
$ yach-uuid
-> 75cb6b99-c257-41e6-b9f2-ae7ad1d31ce9
yach-start
在一个命令行同时运行多个命令
"scripts": {
// ...
"watch-js": "...",
"watch-less": "...",
"start": "yach-start \"npm:watch-js\" \"npm:watch-less\""
// ...
}
->
yach-shell
跨平台的 unix 脚本执行
$ yach-shell echo hello world
-> hello world
yach-cos
上传文件到腾讯云存储
# 上传文件
$ yach-cos fi z:/workspaces/qiao.ext.cos/test/config.json d:/test.js test.js
# 上传文件夹
$ yach-cos fo z:/workspaces/qiao.ext.cos/test/config.json d:/test/cocos test9 -i
# 帮助
$ yach-cos -h