@0x77/ccpack 中文文档教程
ccpack
CC:提供 Live-Reload 和可选 TypeScript 的调整工具
https://www.youtube.com/watch?v=hCnWti7NHdg
Starting lua project
ccpack --id fillwithyouranyvalue -a entrypoint.lua -s path/to/your/code/folder
Usage
$ npm install -g @0x77/ccpack
$ ccpack COMMAND
running command...
$ ccpack (-v|--version|version)
@0x77/ccpack/0.1.4 darwin-x64 node-v16.13.1
$ ccpack --help [COMMAND]
USAGE
$ ccpack COMMAND
...
Commands
ccpack dev
以开发模式启动ccpack项目
USAGE
$ ccpack dev
OPTIONS
-a, --autostart=autostart autostart filename
-h, --help show CLI help
-i, --id=id (required)
-s, --source=source [default: dist]
EXAMPLES
$ ccpack dev -id idflag
execute following to run project:
wget run https://idflag.loca.lt/loader <filename>
$ ccpack dev -a index.lua
execute following to run project:
wget run https://<idflag>.loca.lt/loader index.lua
ccpack help [COMMAND]
显示 ccpack 的帮助
USAGE
$ ccpack help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
参见代码:@oclif/plugin-help
ccpack init FOLDER
初始化ccpack项目
USAGE
$ ccpack init FOLDER
OPTIONS
-h, --help show CLI help
EXAMPLE
$ ccpack init
更多