fix: theme clean command loop

This commit is contained in:
Hossein Mehrabi
2022-10-31 16:16:21 +03:30
parent 3170568b12
commit 2f37f620fc
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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)
+1 -1
View File
@@ -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",