test(dev): reorganize play (#3764)

This commit is contained in:
三咲智子 2021-10-06 19:36:30 +08:00 committed by GitHub
parent 3b9e63d587
commit cced42def3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 7 deletions

1
play/.gitignore vendored
View File

@ -1 +0,0 @@
*.vue

View File

@ -1,8 +1,8 @@
import { createApp } from 'vue'
import Play from './play.vue'
import App from './src/App.vue'
import '@element-plus/theme-chalk/src/index.scss'
const app = createApp(Play)
const app = createApp(App)
app.mount('#play')

2
play/src/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

View File

@ -1,8 +1,8 @@
import { existsSync, writeFileSync, readFileSync } from 'fs'
const play = 'play.vue'
const example = 'play.example'
const app = 'src/App.vue'
const example = 'app.example'
if (!existsSync(play)) {
writeFileSync(play, readFileSync(example))
if (!existsSync(app)) {
writeFileSync(app, readFileSync(example))
}