mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
test(dev): reorganize play (#3764)
This commit is contained in:
parent
3b9e63d587
commit
cced42def3
1
play/.gitignore
vendored
1
play/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.vue
|
@ -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
2
play/src/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user