From d7b1e062f035f2e4a6f8a2cc1957c07250040e92 Mon Sep 17 00:00:00 2001 From: huqi Date: Thu, 18 Nov 2021 22:19:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=94=AF=E6=8C=81vue=E5=92=8Creact=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E7=9A=84component=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 4 ++-- o2web/gulpfile.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2d539d611e..55db113d54 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -348,7 +348,7 @@ async function build_web_module() { var pkgPath = path.resolve(srcPath, p, 'package.json'); if (fs.existsSync(pkgPath)){ var pkg = require(pkgPath); - if (pkg.scripts['o2-deploy']){ + if (pkg.scripts['o2-build']){ moduleFolder.push(file); } } @@ -360,7 +360,7 @@ async function build_web_module() { // var tasks = []; moduleFolder.forEach((f)=>{ shelljs.config.verbose = true; - shelljs.exec('npm run o2-deploy -- --dest ../../../'+dest+f, {cwd: path.resolve(srcPath, f)}); + shelljs.exec('npm run o2-build', {cwd: path.resolve(srcPath, f)}); }); }); }); diff --git a/o2web/gulpfile.js b/o2web/gulpfile.js index 1ddebb9edd..36809067fc 100644 --- a/o2web/gulpfile.js +++ b/o2web/gulpfile.js @@ -83,7 +83,7 @@ function createDefaultTask(path, isMin, thisOptions) { if (fs.existsSync(pkgPath)){ var pkg = require(pkgPath); if (pkg.scripts['o2-deploy']){ - gulp.task(path, gulp.series(shell.task('npm run o2-deploy -- --dest ../../dest/'+path, {cwd: nodePath.resolve('source', path), verbose:true}), function(cb){ + gulp.task(path, gulp.series(shell.task('npm run o2-deploy', {cwd: nodePath.resolve('source', path), verbose:true}), function(cb){ var option = thisOptions || options; var dest = ['dest/' + path + '/**/*']; return gulp.src(dest) -- GitLab