* Copy multiple files from template directory.
(fromDir, toDir, nameGlob)
| 119 | */ |
| 120 | |
| 121 | function copyTemplateMulti (fromDir, toDir, nameGlob) { |
| 122 | fs.readdirSync(path.join(TEMPLATE_DIR, fromDir)) |
| 123 | .filter(minimatch.filter(nameGlob, { matchBase: true })) |
| 124 | .forEach(function (name) { |
| 125 | copyTemplate(path.join(fromDir, name), path.join(toDir, name)) |
| 126 | }) |
| 127 | } |
| 128 | |
| 129 | /** |
| 130 | * Create application at the given directory. |
no test coverage detected