grunt-sync
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "grunt-sync", | ||
"description": "Task to synchronize two directories. Similar to grunt-copy but updates only files that have been changed.", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/tomusdrw/grunt-sync.git", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -62,2 +62,3 @@ # Grunt-sync | ||
## Changelog | ||
* 0.2.1 - Fixed grunt Compact Format. | ||
* 0.2.0 - Default configuration will not remove any files any more. You have to specify `updateAndDelete` option to remove any files from destination. | ||
@@ -64,0 +65,0 @@ * 0.1.2 - Deleting all files in destination on Windows solved. |
@@ -13,4 +13,7 @@ { | ||
"pretend": true | ||
}, | ||
"rename": { | ||
"src": "bin/somefile.txt", | ||
"dest": "bin/somefile2.txt" | ||
} | ||
} | ||
} |
@@ -180,2 +180,3 @@ var fs = require('promised-io/fs'), | ||
promise.all(this.files.map(function(fileDef) { | ||
var isCompactForm = this.data.src && this.data.dest; | ||
var cwd = fileDef.cwd ? fileDef.cwd : '.'; | ||
@@ -191,3 +192,3 @@ var isExpanded = fileDef.orig.expand; | ||
// not the destination folder | ||
if (isExpanded) { | ||
if (isExpanded || isCompactForm) { | ||
dest = fileDef.dest; | ||
@@ -201,3 +202,3 @@ } else { | ||
})).then(function() { | ||
}, this)).then(function() { | ||
if (updateOnly) { | ||
@@ -204,0 +205,0 @@ return; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15748
293
75