From b201dbb698583b8d4d06c6cb0b63e1d9456bc9d1 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 29 May 2013 22:33:35 -0700 Subject: [PATCH] Use grunt API for copying folders --- Gruntfile.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 925b206e8..715517cfd 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -13,7 +13,9 @@ INSTALL_DIR = path.join('/Applications', APP_NAME) module.exports = (grunt) -> cp = (source, destination) -> if fs.statSync(source).isDirectory() - require('wrench').copyDirSyncRecursive(arguments...) + grunt.file.recurse source, (sourcePath, rootDirectory, subDirectory='', filename) -> + destinationPath = path.join(destination, subDirectory, filename) + grunt.file.copy(sourcePath, destinationPath) else grunt.file.copy(source, destination) grunt.log.writeln("Copied #{source.cyan} to #{destination.cyan}.")