Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-sync

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-sync - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc