element-plus/play/vite.init.ts

9 lines
189 B
TypeScript
Raw Normal View History

import { existsSync, writeFileSync, readFileSync } from 'fs'
2021-10-06 19:36:30 +08:00
const app = 'src/App.vue'
const example = 'app.example'
2021-10-06 19:36:30 +08:00
if (!existsSync(app)) {
writeFileSync(app, readFileSync(example))
}