mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +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 { createApp } from 'vue'
|
||||||
import Play from './play.vue'
|
import App from './src/App.vue'
|
||||||
|
|
||||||
import '@element-plus/theme-chalk/src/index.scss'
|
import '@element-plus/theme-chalk/src/index.scss'
|
||||||
|
|
||||||
const app = createApp(Play)
|
const app = createApp(App)
|
||||||
|
|
||||||
app.mount('#play')
|
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'
|
import { existsSync, writeFileSync, readFileSync } from 'fs'
|
||||||
|
|
||||||
const play = 'play.vue'
|
const app = 'src/App.vue'
|
||||||
const example = 'play.example'
|
const example = 'app.example'
|
||||||
|
|
||||||
if (!existsSync(play)) {
|
if (!existsSync(app)) {
|
||||||
writeFileSync(play, readFileSync(example))
|
writeFileSync(app, readFileSync(example))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user