chore: update scripts.
This commit is contained in:
parent
4505675c8a
commit
84a545cbf6
@ -56,6 +56,7 @@ export async function createHTML(files = [], num = 0) {
|
||||
}
|
||||
|
||||
export async function run() {
|
||||
try {
|
||||
await fs.ensureDir(OUTOUT);
|
||||
await fs.emptyDir(OUTOUT);
|
||||
await fs.ensureDir(path.resolve(OUTOUT, 'style'));
|
||||
@ -69,4 +70,7 @@ export async function run() {
|
||||
filter: (item) => item.ext === 'md',
|
||||
});
|
||||
createHTML(files);
|
||||
} catch (error) {
|
||||
console.log('ERR:', error);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user