详细说明: - 添加了V2版本的工作流页面和结果页面 - 更新了Serena记忆文件 - 添加了详细实施计划文档 - 优化了Vite配置 - 更新了项目文档CLAUDE.md - 构建了演示系统的dist版本 - 包含了exhibition-demo的完整依赖
14 lines
292 B
JavaScript
14 lines
292 B
JavaScript
var rimraf = require('rimraf').sync;
|
|
var fs = require('fs');
|
|
|
|
module.exports = function del(file) {
|
|
if (fs.existsSync(file)) {
|
|
//if rimraf doesn't throw then the file has been deleted or didn't exist
|
|
rimraf(file, {
|
|
glob: false,
|
|
});
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|