0.0.2 • Published 5 years ago

generator-files v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago
npm install -g generate_files

根据指定的 JSON 结构生成目录文件

generate_files [args]

Options:
  --version   Show version number                                      [boolean]
  --files     file JSON path
  --basepath  generated file path
  -h          Show help                                                [boolean]

File JSON

JSON 格式如下

{
    "src": {
        "test": {},
        "files": ["app"]
    },
    "files": ["README.md"]
}

除去 files 对象表示文件夹,key 将作为文件名。files 的值为数组,数组内部的是文件名

0.0.2

5 years ago

0.0.1

5 years ago