grunt-sync
Advanced tools
Comparing version 0.1.0 to 0.1.1
/*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) { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14048
9
276
61
0