0.0.2 • Published 6 years ago
generate-project-files v0.0.2
npm install -g generate-project-files根据指定的 JSON 结构生成目录文件
gpf [args]
Options:
--version Show version number [boolean]
--files file JSON path
--basepath generated file path
-h Show help [boolean]
example:
gpg --files=[File JSON Path] --basepath=[Generated File Path]File JSON
JSON 格式如下
{
"src": {
"test": {},
"files": ["app"]
},
"files": ["README.md"]
}除去 files 对象表示文件夹,key 将作为文件名。files 的值为数组,数组内部的是文件名