--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
31
node_modules/gulp-print/lib/gulp-print.js
generated
vendored
Normal file
31
node_modules/gulp-print/lib/gulp-print.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// Generated by CoffeeScript 1.10.0
|
||||
var colors, green, log, magenta, map, path, print, ref;
|
||||
|
||||
map = require('map-stream');
|
||||
|
||||
path = require('path');
|
||||
|
||||
ref = require('gulp-util'), log = ref.log, colors = ref.colors;
|
||||
|
||||
green = colors.green, magenta = colors.magenta;
|
||||
|
||||
print = function(format) {
|
||||
if (format == null) {
|
||||
format = function(filepath) {
|
||||
return filepath;
|
||||
};
|
||||
}
|
||||
return map(function(file, cb) {
|
||||
var filepath, formatted;
|
||||
filepath = magenta(path.relative(process.cwd(), file.path));
|
||||
formatted = format(filepath);
|
||||
if (formatted) {
|
||||
print.log(formatted);
|
||||
}
|
||||
return cb(null, file);
|
||||
});
|
||||
};
|
||||
|
||||
print.log = log;
|
||||
|
||||
module.exports = print;
|
||||
Loading…
Reference in a new issue