mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
fix: theme clean command loop
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user