feat(cli): clean site dir

This commit is contained in:
陈嘉涵 2019-12-05 19:47:11 +08:00
parent f7ef1845e8
commit 344c40c3d1

View File

@ -1,10 +1,11 @@
import { emptyDir } from 'fs-extra'; import { emptyDir } from 'fs-extra';
import { ES_DIR, LIB_DIR, DIST_DIR } from '../common/constant'; import { ES_DIR, LIB_DIR, DIST_DIR, SITE_DIST_DIR } from '../common/constant';
export async function clean() { export async function clean() {
await Promise.all([ await Promise.all([
emptyDir(ES_DIR), emptyDir(ES_DIR),
emptyDir(LIB_DIR), emptyDir(LIB_DIR),
emptyDir(DIST_DIR) emptyDir(DIST_DIR),
emptyDir(SITE_DIST_DIR)
]); ]);
} }