formatting
This commit is contained in:
parent
878186660b
commit
963ecc0d92
|
@ -111,13 +111,16 @@ class Pipeline {
|
|||
});
|
||||
},
|
||||
function assetFileWrite(next) {
|
||||
async.eachOf(self.assetFiles, function (files, targetFile, cb) {
|
||||
async.map(files,
|
||||
async.eachOf(
|
||||
self.assetFiles,
|
||||
function (files, targetFile, cb) {
|
||||
const isDir = targetFile.slice(-1) === '/' || targetFile.indexOf('.') === -1;
|
||||
// if it's not a directory
|
||||
if (!isDir) {
|
||||
self.logger.info(__("writing file") + " " + (self.buildDir + targetFile).bold.dim);
|
||||
}
|
||||
async.map(
|
||||
files,
|
||||
function (file, fileCb) {
|
||||
self.logger.trace("reading " + file.filename);
|
||||
|
||||
|
@ -192,7 +195,8 @@ class Pipeline {
|
|||
}
|
||||
);
|
||||
},
|
||||
next);
|
||||
next
|
||||
);
|
||||
},
|
||||
function removePlaceholderPage(next){
|
||||
let placeholderFile = self.buildDir + placeholderPage;
|
||||
|
@ -212,7 +216,8 @@ class Pipeline {
|
|||
if (self.pipelinePlugins.length <= 0) {
|
||||
return fileCb(null, {content: fileContent, filename: file.filename, path: file.path, basedir: file.basedir, modified: true});
|
||||
}
|
||||
async.eachSeries(self.pipelinePlugins,
|
||||
async.eachSeries(
|
||||
self.pipelinePlugins,
|
||||
function(plugin, pluginCB) {
|
||||
if (file.options && file.options.skipPipeline) {
|
||||
return pluginCB();
|
||||
|
|
Loading…
Reference in New Issue