forked from element-plus/element-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(dev): reorganize play (element-plus#3764)
- Loading branch information
Showing
5 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
} |