diff --git a/deploy_utils/list_images.js b/deploy_utils/list_images.js index f633323..5bca10a 100644 --- a/deploy_utils/list_images.js +++ b/deploy_utils/list_images.js @@ -48,5 +48,5 @@ function readDirSync(imageFolderPath, images, rootPath, callback, count={fileCou } module.exports = function (rootPath, imageFloder, callback) { - return readDirSync(path.resolve(rootPath, imageFloder), [], rootPath, callback) + readDirSync(path.resolve(rootPath, imageFloder), [], rootPath, callback) } diff --git a/gulpfile.js b/gulpfile.js index 7257ffb..2c6760d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -57,7 +57,7 @@ gulp.task('syncImages', () => { return Promise.resolve('未获得accessKey以及accessSecret, 跳过图片同步').then(console.log) } // 同步当前本地存在的所有图片 - return new Promise((resolve)=>{ + return new Promise(resolve => { listImages(`${process.cwd()}/source/`, 'images/', resolve) }).then(imagesList => { const ImageSynchronizer = require('./deploy_utils/image_synchronize')