ルートフォルダから新しい初期化されたプロジェクトに空のディレクトリをコピーしたいと思います。これを実行して、新しいプロジェクトの初期ディレクトリ構造を提供します。
'my-template / root /'フォルダにそのような空のディレクトリがありますが、それは次の方法でコピーされません。
// Files to copy (and process).
var files = init.filesToCopy(props);
// Actually copy (and process) files.
init.copyAndProcess(files, props);
私はこれを試しました:
// to copy also the empty directories
init.copy('myDir1/');
init.copy('myDir2/');
しかし、grunt-initがクラッシュするよりも:
Error: Unable to read "grunt-init-example/root/myDir1/" file (Error code: EISDIR).
空のディレクトリを宛先フォルダに移動するには、どうすればよいですか?
私はgrunt@0.4.0とgrunt-init@0.2.0を使用しています。