Codebase list node-grunt-contrib-copy / 6d74dc3
Minor lint tweaks. XhmikosR 8 years ago
1 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
66 * https://github.com/gruntjs/grunt-contrib-copy/blob/master/LICENSE-MIT
77 */
88
9 'use strict';
10
911 module.exports = function(grunt) {
10 'use strict';
11
1212 var path = require('path');
1313 var fs = require('fs');
1414 var chalk = require('chalk');
2222 processContent: false,
2323 processContentExclude: [],
2424 timestamp: false,
25 mode: false,
25 mode: false
2626 });
2727
2828 var copyOptions = {
2929 encoding: options.encoding,
3030 process: options.process || options.processContent,
31 noProcess: options.noProcess || options.processContentExclude,
31 noProcess: options.noProcess || options.processContentExclude
3232 };
3333
3434 var isExpandedPair;
3535 var dirs = {};
3636 var tally = {
3737 dirs: 0,
38 files: 0,
38 files: 0
3939 };
4040
4141 this.files.forEach(function(filePair) {
4646 var dest = unixifyPath(filePair.dest);
4747
4848 if (detectDestType(dest) === 'directory') {
49 dest = (isExpandedPair) ? dest : path.join(dest, src);
49 dest = isExpandedPair ? dest : path.join(dest, src);
5050 }
5151
5252 if (grunt.file.isDir(src)) {