查看命令
thinkjs -h
查看命令幫助
thinkjs help [cmd]
創(chuàng)建多模塊項目
thinkjs new project_name -m
或 thinkjs new project_name --module
添加 controller(通過指定模塊創(chuàng)建)
thinkjs controller <controller-name> [module-name]
添加模塊(項目需為多模塊項目)
thinkjs module module_name
創(chuàng)建控制器時候報錯:檢查package.json
文件
"cacheTemplatePath":
對應(yīng)路徑與本機路徑不同纪蜒,修正即可