grunt-sync
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "grunt-sync", | ||
"description": "Task to synchronize two directories. Similar to grunt-copy but updates only files that have been changed.", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/tomusdrw/grunt-sync.git", | ||
@@ -39,3 +39,3 @@ "author": { | ||
"grunt": "0.4.x", | ||
"grunt-complexity": "0.1.x", | ||
"grunt-complexity": "git+ssh://git@github.com:tomusdrw/grunt-complexity.git", | ||
"grunt-simple-mocha": "0.3.x", | ||
@@ -42,0 +42,0 @@ "grunt-contrib-jshint": "0.1.x" |
@@ -8,3 +8,3 @@ var fs = require('promised-io/fs'); | ||
var overwriteDest = function(src, dest) { | ||
grunt.log.writeln('Overwriting ' + dest.cyan + 'because type differs.'); | ||
grunt.verbose.writeln('Overwriting ' + dest.cyan + 'because type differs.'); | ||
grunt.file['delete'](dest); | ||
@@ -16,3 +16,3 @@ grunt.file.copy(src, dest); | ||
if(srcStat.mtime.getTime() > destStat.mtime.getTime()) { | ||
grunt.log.writeln('Updating file ' + dest.cyan); | ||
grunt.verbose.writeln('Updating file ' + dest.cyan); | ||
// and just update destination | ||
@@ -19,0 +19,0 @@ grunt.file.copy(src, dest); |
5466