This commit is contained in:
oitsjustjose 2017-02-25 03:50:31 -05:00
commit 4e066bffc9
10017 changed files with 1322084 additions and 0 deletions

21
node_modules/gulp-flatten/index.js generated vendored Normal file
View file

@ -0,0 +1,21 @@
var path = require('path');
var through2 = require('through2');
var flattenPath = require('./lib/flatten-path');
var PluginError = require('gulp-util').PluginError;
module.exports = function(opts) {
opts = opts || {};
opts.newPath = opts.newPath || '';
return through2.obj(function(file, enc, next) {
if (!file.isDirectory()) {
try {
file.path = path.join(file.base, opts.newPath, flattenPath(file, opts));
this.push(file);
} catch (e) {
this.emit('error', new PluginError('gulp-flatten', e));
}
}
next();
});
};