Use grunt API for copying files

This commit is contained in:
Kevin Sawicki 2013-05-29 22:12:19 -07:00
parent 3a54d0b8a9
commit 11004c20e6

View File

@ -15,7 +15,7 @@ module.exports = (grunt) ->
if fs.statSync(source).isDirectory()
require('wrench').copyDirSyncRecursive(arguments...)
else
fs.writeFileSync(destination, fs.readFileSync(source))
grunt.file.copy(source, destination)
grunt.log.writeln("Copied #{source.cyan} to #{destination.cyan}.")
grunt.initConfig