shoot-generator
自用偷懒工具,搭配Bandix使用(但是现在没有)
npm install -g shoot-generator
Usage: shoot <command>
Commands:
init init your ApiManaer (with Bandix or vue program).
keep Keep Shoot! press "exit" and stop!
Shoot your API in Manager! Also with Bandix! NOW HERE WE GO!
Options:
-h, --help output usage information
-V, --version output the version number
-a, --add <file> Add a api file into api folder.
-i, --import import a api json into Manager.
通过shoot init
初始化
shoot init
通过shoot keep
持续输入要生成的请求方法
shoot keep # > <url> <name> <path> <method> <data> # 按顺序输入
通过shoot -a
添加api模块文件
shoot -a <file># shoot -a defaultApi.js