From 2f37f620fccf5f84c38241cac39c83a9a410b81b Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Mon, 31 Oct 2022 16:16:21 +0330 Subject: [PATCH] fix: theme clean command loop --- packages/logos-docusaurus-theme/gulpfile.js | 6 +++--- packages/logos-docusaurus-theme/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/logos-docusaurus-theme/gulpfile.js b/packages/logos-docusaurus-theme/gulpfile.js index 99b527c..1876390 100644 --- a/packages/logos-docusaurus-theme/gulpfile.js +++ b/packages/logos-docusaurus-theme/gulpfile.js @@ -32,12 +32,12 @@ const sourceStaticDir = path.join(sourceClientDir, STATIC_DIR) const outClientDir = path.join(outDir, CLIENT_DIR) const outStaticDir = path.join(outClientDir, STATIC_DIR) -const cleanup = async (cb) => { +const clean = async (cb) => { rimraf(outDir, cb) } const build = (cb) => { - return gulp.series(cleanup, buildClient, clientPostBuild, buildServer)(cb) + return gulp.series(clean, buildClient, clientPostBuild, buildServer)(cb) } const buildClient = () => { @@ -116,7 +116,7 @@ const watch = async () => { gulp.task('build', build) gulp.task('watch', watch) -gulp.task('cleanup', cleanup) +gulp.task('clean', clean) gulp.task('build-server', buildServer) gulp.task('build-client', buildClient) gulp.task('client-post-build', clientPostBuild) diff --git a/packages/logos-docusaurus-theme/package.json b/packages/logos-docusaurus-theme/package.json index 9fcc3d7..5392a89 100644 --- a/packages/logos-docusaurus-theme/package.json +++ b/packages/logos-docusaurus-theme/package.json @@ -11,7 +11,7 @@ }, "license": "MIT", "scripts": { - "clean": "yarn clean", + "clean": "yarn gulp clean", "build": "yarn gulp build", "watch": "yarn gulp watch --command 'yarn build'", "build:client": "yarn gulp build-client && yarn gulp client-post-build",