grunt-rsync
Version:
A Grunt task for accessing the file copying and syncing capabilities of the rsync command line utility. Uses the rsyncwrapper npm module for the core functionality.
74 lines (68 loc) • 1.71 kB
JavaScript
"use strict";
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
"node": true,
"globalstrict": true
},
files: {
src: [
"grunt.js",
"tests/*.js",
"tasks/*.js"
]
}
},
shell: {
tmpdir : {
command: "mkdir tmp"
}
},
clean: {
tmp: ["tmp"]
},
rsync: {
options: {
args: ["--verbose","--progress"]
},
single: {
options: {
src: "./tests/fixtures/test.txt",
dest: "./tmp/test.txt"
}
},
multiple: {
options: {
src: "./tests/fixtures/multiple/",
dest: "./tmp/multiple",
recursive: true
}
}
},
vows: {
all: {
src: ["tests/basic.js"],
options: {
reporter: "spec",
verbose: false,
silent: false,
colors: true
}
}
}
});
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-shell");
grunt.loadNpmTasks("grunt-vows");
grunt.loadTasks("tasks");
grunt.registerTask("test",[
"jshint",
"clean:tmp",
"shell:tmpdir",
"rsync",
"vows",
"clean:tmp"
]);
};