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.1.0 to 0.1.1

sync.test.json

56

Gruntfile.js
/*global module:false*/
module.exports = function(grunt) {
require('time-grunt')(grunt);
// Project configuration.
grunt.initConfig({
require('time-grunt')(grunt);
files: ['Gruntfile.js', 'tasks/**/*.js', 'test/*.js'],
// Project configuration.
grunt.initConfig({
watch: {
all: {
files: '<%= files %>'
}
},
files: ['Gruntfile.js', 'tasks/**/*.js', 'test/*.js'],
simplemocha: {
all: {
src: 'test/*.js'
}
},
watch: {
all: {
files: '<%= files %>'
}
},
jshint: {
all: '<%= files %>'
},
sync: grunt.file.readJSON('sync.json'),
simplemocha: {
all: {
src: 'test/*.js'
}
},
complexity: grunt.file.readJSON('complexity.json')
});
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-complexity');
grunt.loadNpmTasks('grunt-contrib-jshint');
jshint: {
all: '<%= files %>'
},
grunt.registerTask('default', ['jshint', 'simplemocha', 'complexity']);
sync: grunt.file.readJSON('sync.json'),
// Used for testing only, you shouldn't add this to your code:
grunt.loadTasks('tasks');
complexity: grunt.file.readJSON('complexity.json')
});
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-complexity');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['jshint', 'simplemocha', 'complexity']);
// Used for testing only, you shouldn't add this to your code:
grunt.loadTasks('tasks');
};
{
"name": "grunt-sync",
"description": "Task to synchronize two directories. Similar to grunt-copy but updates only files that have been changed.",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/tomusdrw/grunt-sync.git",

@@ -6,0 +6,0 @@ "author": {

@@ -29,2 +29,3 @@ # Grunt-sync

ignoreInDest: "**/*.js", // Never remove js files from destination
pretend: true, // Don't do any IO. Before you run the task make sure it doesn't remove too much.
verbose: true // Display log messages when copying files

@@ -31,0 +32,0 @@ }

@@ -172,5 +172,7 @@ var fs = require('promised-io/fs'),

var isExpanded = fileDef.orig.expand;
var origDest = fileDef.orig.dest;
var origDest = path.join(fileDef.orig.dest, '');
var processedDestinations = getExpandedPaths(origDest);
// Always include destination as processed.
processedDestinations.push(origDest.substr(0, origDest.length - 1));

@@ -177,0 +179,0 @@ return promise.all(fileDef.src.map(function(src) {

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