From cced42def3d6d086f898449c1280d542e7bb1226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Wed, 6 Oct 2021 19:36:30 +0800 Subject: [PATCH] test(dev): reorganize play (#3764) --- play/.gitignore | 1 - play/{play.example => app.example} | 0 play/main.ts | 4 ++-- play/src/.gitignore | 2 ++ play/vite.init.ts | 8 ++++---- 5 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 play/.gitignore rename play/{play.example => app.example} (100%) create mode 100644 play/src/.gitignore diff --git a/play/.gitignore b/play/.gitignore deleted file mode 100644 index 65a7d0588f..0000000000 --- a/play/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.vue diff --git a/play/play.example b/play/app.example similarity index 100% rename from play/play.example rename to play/app.example diff --git a/play/main.ts b/play/main.ts index 3e9bd52e6d..305d2f85bc 100644 --- a/play/main.ts +++ b/play/main.ts @@ -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') diff --git a/play/src/.gitignore b/play/src/.gitignore new file mode 100644 index 0000000000..d6b7ef32c8 --- /dev/null +++ b/play/src/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/play/vite.init.ts b/play/vite.init.ts index 4ee4d5fb79..9f313862d1 100644 --- a/play/vite.init.ts +++ b/play/vite.init.ts @@ -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)) }