Skip to content

Commit

Permalink
test(dev): reorganize play (element-plus#3764)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Oct 6, 2021
1 parent 3b9e63d commit cced42d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion play/.gitignore

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions play/main.ts
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions play/src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
8 changes: 4 additions & 4 deletions play/vite.init.ts
Original file line number Diff line number Diff line change
@@ -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))
}

0 comments on commit cced42d

Please sign in to comment.