]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore: regenerate playground snapshot
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 18 Nov 2021 11:20:17 +0000 (19:20 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 18 Nov 2021 11:20:17 +0000 (19:20 +0800)
156 files changed:
playground/default/package.json
playground/default/src/App.vue
playground/default/src/components/TheWelcome.vue [moved from playground/default/src/components/Welcome.vue with 100% similarity]
playground/jsx-router-vuex-with-tests/README.md
playground/jsx-router-vuex-with-tests/package.json
playground/jsx-router-vuex-with-tests/src/components/TheWelcome.vue [moved from playground/jsx-router-vuex-with-tests/src/components/Welcome.vue with 100% similarity]
playground/jsx-router-vuex-with-tests/src/router/index.js
playground/jsx-router-vuex-with-tests/src/views/AboutView.vue [moved from playground/jsx-router-vuex-with-tests/src/views/About.vue with 100% similarity]
playground/jsx-router-vuex-with-tests/src/views/HomeView.vue [moved from playground/jsx-router-vuex-with-tests/src/views/Home.vue with 52% similarity]
playground/jsx-router-vuex/package.json
playground/jsx-router-vuex/src/components/TheWelcome.vue [moved from playground/jsx-router-vuex/src/components/Welcome.vue with 100% similarity]
playground/jsx-router-vuex/src/router/index.js
playground/jsx-router-vuex/src/views/AboutView.vue [moved from playground/jsx-router-vuex/src/views/About.vue with 100% similarity]
playground/jsx-router-vuex/src/views/HomeView.vue [moved from playground/jsx-router-vuex/src/views/Home.vue with 52% similarity]
playground/jsx-router-with-tests/README.md
playground/jsx-router-with-tests/package.json
playground/jsx-router-with-tests/src/components/TheWelcome.vue [moved from playground/jsx-router-with-tests/src/components/Welcome.vue with 100% similarity]
playground/jsx-router-with-tests/src/router/index.js
playground/jsx-router-with-tests/src/views/AboutView.vue [moved from playground/jsx-router-with-tests/src/views/About.vue with 100% similarity]
playground/jsx-router-with-tests/src/views/HomeView.vue [moved from playground/jsx-router-with-tests/src/views/Home.vue with 52% similarity]
playground/jsx-router/package.json
playground/jsx-router/src/components/TheWelcome.vue [moved from playground/jsx-router/src/components/Welcome.vue with 100% similarity]
playground/jsx-router/src/router/index.js
playground/jsx-router/src/views/AboutView.vue [moved from playground/jsx-router/src/views/About.vue with 100% similarity]
playground/jsx-router/src/views/HomeView.vue [moved from playground/jsx-router/src/views/Home.vue with 52% similarity]
playground/jsx-vuex-with-tests/README.md
playground/jsx-vuex-with-tests/package.json
playground/jsx-vuex-with-tests/src/App.vue
playground/jsx-vuex-with-tests/src/components/TheWelcome.vue [moved from playground/jsx-vuex-with-tests/src/components/Welcome.vue with 100% similarity]
playground/jsx-vuex/package.json
playground/jsx-vuex/src/App.vue
playground/jsx-vuex/src/components/TheWelcome.vue [moved from playground/jsx-vuex/src/components/Welcome.vue with 100% similarity]
playground/jsx-with-tests/README.md
playground/jsx-with-tests/package.json
playground/jsx-with-tests/src/App.vue
playground/jsx-with-tests/src/components/TheWelcome.vue [moved from playground/jsx-with-tests/src/components/Welcome.vue with 100% similarity]
playground/jsx/package.json
playground/jsx/src/App.vue
playground/jsx/src/components/TheWelcome.vue [moved from playground/jsx/src/components/Welcome.vue with 100% similarity]
playground/router-vuex-with-tests/README.md
playground/router-vuex-with-tests/package.json
playground/router-vuex-with-tests/src/components/TheWelcome.vue [moved from playground/router-vuex-with-tests/src/components/Welcome.vue with 100% similarity]
playground/router-vuex-with-tests/src/router/index.js
playground/router-vuex-with-tests/src/views/AboutView.vue [moved from playground/router-vuex-with-tests/src/views/About.vue with 100% similarity]
playground/router-vuex-with-tests/src/views/Home.vue [deleted file]
playground/router-vuex-with-tests/src/views/HomeView.vue [new file with mode: 0644]
playground/router-vuex/package.json
playground/router-vuex/src/components/TheWelcome.vue [moved from playground/router-vuex/src/components/Welcome.vue with 100% similarity]
playground/router-vuex/src/router/index.js
playground/router-vuex/src/views/AboutView.vue [moved from playground/router-vuex/src/views/About.vue with 100% similarity]
playground/router-vuex/src/views/Home.vue [deleted file]
playground/router-vuex/src/views/HomeView.vue [new file with mode: 0644]
playground/router-with-tests/README.md
playground/router-with-tests/package.json
playground/router-with-tests/src/components/TheWelcome.vue [moved from playground/router-with-tests/src/components/Welcome.vue with 100% similarity]
playground/router-with-tests/src/router/index.js
playground/router-with-tests/src/views/AboutView.vue [moved from playground/router-with-tests/src/views/About.vue with 100% similarity]
playground/router-with-tests/src/views/Home.vue [deleted file]
playground/router-with-tests/src/views/HomeView.vue [new file with mode: 0644]
playground/router/package.json
playground/router/src/components/TheWelcome.vue [moved from playground/router/src/components/Welcome.vue with 100% similarity]
playground/router/src/router/index.js
playground/router/src/views/AboutView.vue [moved from playground/router/src/views/About.vue with 100% similarity]
playground/router/src/views/Home.vue [deleted file]
playground/router/src/views/HomeView.vue [new file with mode: 0644]
playground/typescript-jsx-router-vuex-with-tests/README.md
playground/typescript-jsx-router-vuex-with-tests/package.json
playground/typescript-jsx-router-vuex-with-tests/src/components/TheWelcome.vue [moved from playground/typescript-jsx-router-vuex-with-tests/src/components/Welcome.vue with 100% similarity]
playground/typescript-jsx-router-vuex-with-tests/src/router/index.ts
playground/typescript-jsx-router-vuex-with-tests/src/views/AboutView.vue [moved from playground/typescript-jsx-router-vuex-with-tests/src/views/About.vue with 100% similarity]
playground/typescript-jsx-router-vuex-with-tests/src/views/Home.vue [deleted file]
playground/typescript-jsx-router-vuex-with-tests/src/views/HomeView.vue [new file with mode: 0644]
playground/typescript-jsx-router-vuex/package.json
playground/typescript-jsx-router-vuex/src/components/TheWelcome.vue [moved from playground/typescript-jsx-router-vuex/src/components/Welcome.vue with 100% similarity]
playground/typescript-jsx-router-vuex/src/router/index.ts
playground/typescript-jsx-router-vuex/src/views/AboutView.vue [moved from playground/typescript-jsx-router-vuex/src/views/About.vue with 100% similarity]
playground/typescript-jsx-router-vuex/src/views/Home.vue [deleted file]
playground/typescript-jsx-router-vuex/src/views/HomeView.vue [new file with mode: 0644]
playground/typescript-jsx-router-with-tests/README.md
playground/typescript-jsx-router-with-tests/package.json
playground/typescript-jsx-router-with-tests/src/components/TheWelcome.vue [moved from playground/typescript-jsx-router-with-tests/src/components/Welcome.vue with 100% similarity]
playground/typescript-jsx-router-with-tests/src/router/index.ts
playground/typescript-jsx-router-with-tests/src/views/AboutView.vue [moved from playground/typescript-jsx-router-with-tests/src/views/About.vue with 100% similarity]
playground/typescript-jsx-router-with-tests/src/views/Home.vue [deleted file]
playground/typescript-jsx-router-with-tests/src/views/HomeView.vue [new file with mode: 0644]
playground/typescript-jsx-router/package.json
playground/typescript-jsx-router/src/components/TheWelcome.vue [moved from playground/typescript-jsx-router/src/components/Welcome.vue with 100% similarity]
playground/typescript-jsx-router/src/router/index.ts
playground/typescript-jsx-router/src/views/AboutView.vue [moved from playground/typescript-jsx-router/src/views/About.vue with 100% similarity]
playground/typescript-jsx-router/src/views/Home.vue [deleted file]
playground/typescript-jsx-router/src/views/HomeView.vue [new file with mode: 0644]
playground/typescript-jsx-vuex-with-tests/README.md
playground/typescript-jsx-vuex-with-tests/package.json
playground/typescript-jsx-vuex-with-tests/src/App.vue
playground/typescript-jsx-vuex-with-tests/src/components/TheWelcome.vue [moved from playground/typescript-jsx-vuex-with-tests/src/components/Welcome.vue with 100% similarity]
playground/typescript-jsx-vuex/package.json
playground/typescript-jsx-vuex/src/App.vue
playground/typescript-jsx-vuex/src/components/TheWelcome.vue [moved from playground/typescript-jsx-vuex/src/components/Welcome.vue with 100% similarity]
playground/typescript-jsx-with-tests/README.md
playground/typescript-jsx-with-tests/package.json
playground/typescript-jsx-with-tests/src/App.vue
playground/typescript-jsx-with-tests/src/components/TheWelcome.vue [moved from playground/typescript-jsx-with-tests/src/components/Welcome.vue with 100% similarity]
playground/typescript-jsx/package.json
playground/typescript-jsx/src/App.vue
playground/typescript-jsx/src/components/TheWelcome.vue [moved from playground/typescript-jsx/src/components/Welcome.vue with 100% similarity]
playground/typescript-router-vuex-with-tests/README.md
playground/typescript-router-vuex-with-tests/package.json
playground/typescript-router-vuex-with-tests/src/components/TheWelcome.vue [moved from playground/typescript-router-vuex-with-tests/src/components/Welcome.vue with 100% similarity]
playground/typescript-router-vuex-with-tests/src/router/index.ts
playground/typescript-router-vuex-with-tests/src/views/AboutView.vue [moved from playground/typescript-router-vuex-with-tests/src/views/About.vue with 100% similarity]
playground/typescript-router-vuex-with-tests/src/views/Home.vue [deleted file]
playground/typescript-router-vuex-with-tests/src/views/HomeView.vue [new file with mode: 0644]
playground/typescript-router-vuex/package.json
playground/typescript-router-vuex/src/components/TheWelcome.vue [moved from playground/typescript-router-vuex/src/components/Welcome.vue with 100% similarity]
playground/typescript-router-vuex/src/router/index.ts
playground/typescript-router-vuex/src/views/AboutView.vue [moved from playground/typescript-router-vuex/src/views/About.vue with 100% similarity]
playground/typescript-router-vuex/src/views/Home.vue [deleted file]
playground/typescript-router-vuex/src/views/HomeView.vue [new file with mode: 0644]
playground/typescript-router-with-tests/README.md
playground/typescript-router-with-tests/package.json
playground/typescript-router-with-tests/src/components/TheWelcome.vue [moved from playground/typescript-router-with-tests/src/components/Welcome.vue with 100% similarity]
playground/typescript-router-with-tests/src/router/index.ts
playground/typescript-router-with-tests/src/views/AboutView.vue [moved from playground/typescript-router-with-tests/src/views/About.vue with 100% similarity]
playground/typescript-router-with-tests/src/views/Home.vue [deleted file]
playground/typescript-router-with-tests/src/views/HomeView.vue [new file with mode: 0644]
playground/typescript-router/package.json
playground/typescript-router/src/components/TheWelcome.vue [moved from playground/typescript-router/src/components/Welcome.vue with 100% similarity]
playground/typescript-router/src/router/index.ts
playground/typescript-router/src/views/AboutView.vue [moved from playground/typescript-router/src/views/About.vue with 100% similarity]
playground/typescript-router/src/views/Home.vue [deleted file]
playground/typescript-router/src/views/HomeView.vue [new file with mode: 0644]
playground/typescript-vuex-with-tests/README.md
playground/typescript-vuex-with-tests/package.json
playground/typescript-vuex-with-tests/src/App.vue
playground/typescript-vuex-with-tests/src/components/TheWelcome.vue [moved from playground/typescript-vuex-with-tests/src/components/Welcome.vue with 100% similarity]
playground/typescript-vuex/package.json
playground/typescript-vuex/src/App.vue
playground/typescript-vuex/src/components/TheWelcome.vue [moved from playground/typescript-vuex/src/components/Welcome.vue with 100% similarity]
playground/typescript-with-tests/README.md
playground/typescript-with-tests/package.json
playground/typescript-with-tests/src/App.vue
playground/typescript-with-tests/src/components/TheWelcome.vue [moved from playground/typescript-with-tests/src/components/Welcome.vue with 100% similarity]
playground/typescript/package.json
playground/typescript/src/App.vue
playground/typescript/src/components/TheWelcome.vue [moved from playground/typescript/src/components/Welcome.vue with 100% similarity]
playground/vuex-with-tests/README.md
playground/vuex-with-tests/package.json
playground/vuex-with-tests/src/App.vue
playground/vuex-with-tests/src/components/TheWelcome.vue [moved from playground/vuex-with-tests/src/components/Welcome.vue with 100% similarity]
playground/vuex/package.json
playground/vuex/src/App.vue
playground/vuex/src/components/TheWelcome.vue [moved from playground/vuex/src/components/Welcome.vue with 100% similarity]
playground/with-tests/README.md
playground/with-tests/package.json
playground/with-tests/src/App.vue
playground/with-tests/src/components/TheWelcome.vue [moved from playground/with-tests/src/components/Welcome.vue with 100% similarity]

index a8611d956641c31b5043df15f6ab87ead734445d..16efc3b9948ba35eaf30218993d5e3ae9c8b8f36 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050"
+    "preview": "vite preview --port 5050"
   },
   "dependencies": {
     "vue": "^3.2.22"
index 945ae423764811e1eab2e36681859a09e7b3ebe3..b0b6901bf5d8bd252c01b735605f50569c258095 100644 (file)
@@ -1,6 +1,6 @@
 <script setup>
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index d7b6cfcf6a2c5a25b4408bc810bf270d69f924d0..1a1978e34e3a2866974bc863f18f8ade380aa338 100644 (file)
@@ -37,5 +37,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 1d15e04272cae1561f97a7bd36eb9bc7946f2218..d054ab7009a6b6f11cdb170b2e7f669efdc7df6a 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'"
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
   },
   "dependencies": {
     "vue": "^3.2.22",
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
similarity index 52%
rename from playground/jsx-router-vuex-with-tests/src/views/Home.vue
rename to playground/jsx-router-vuex-with-tests/src/views/HomeView.vue
index ba9b6dc3de3f8b7df49f87b0b801c6d77f8dd673..6555a646b89847dcefe8d4a0bcb3831898e800dc 100644 (file)
@@ -1,9 +1,9 @@
 <script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
+import TheWelcome from '@/components/TheWelcome.vue'
 </script>
 
 <template>
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
index 0346060b2128c6ad6ca9adcee714af702ea30457..7e47fd0226a972a724c81becd52fb17b0ca078f4 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050"
+    "preview": "vite preview --port 5050"
   },
   "dependencies": {
     "vue": "^3.2.22",
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
similarity index 52%
rename from playground/jsx-router-vuex/src/views/Home.vue
rename to playground/jsx-router-vuex/src/views/HomeView.vue
index ba9b6dc3de3f8b7df49f87b0b801c6d77f8dd673..6555a646b89847dcefe8d4a0bcb3831898e800dc 100644 (file)
@@ -1,9 +1,9 @@
 <script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
+import TheWelcome from '@/components/TheWelcome.vue'
 </script>
 
 <template>
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
index c039e60728a73175409ccdf19088c7fb117f0cfb..45cc392bc557674985fc1b42cae24c24462bffd2 100644 (file)
@@ -37,5 +37,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 015debe02e86a4806c549435768ccdaca013f5c7..a09c3627398c7cdf081763c90c831951efab9822 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'"
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
   },
   "dependencies": {
     "vue": "^3.2.22",
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
similarity index 52%
rename from playground/jsx-router-with-tests/src/views/Home.vue
rename to playground/jsx-router-with-tests/src/views/HomeView.vue
index ba9b6dc3de3f8b7df49f87b0b801c6d77f8dd673..6555a646b89847dcefe8d4a0bcb3831898e800dc 100644 (file)
@@ -1,9 +1,9 @@
 <script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
+import TheWelcome from '@/components/TheWelcome.vue'
 </script>
 
 <template>
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
index 1ac86580bfd405b8e8873368cde9f4cbfb506517..4278d45ef5cbedbf6fc7bf017b8ecdff5145ccc5 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050"
+    "preview": "vite preview --port 5050"
   },
   "dependencies": {
     "vue": "^3.2.22",
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
similarity index 52%
rename from playground/jsx-router/src/views/Home.vue
rename to playground/jsx-router/src/views/HomeView.vue
index ba9b6dc3de3f8b7df49f87b0b801c6d77f8dd673..6555a646b89847dcefe8d4a0bcb3831898e800dc 100644 (file)
@@ -1,9 +1,9 @@
 <script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
+import TheWelcome from '@/components/TheWelcome.vue'
 </script>
 
 <template>
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
index b1e0697fb28233fe13d69c50a843accb57754b84..43965425909a35c666c7243fff3e64b6db6ef64b 100644 (file)
@@ -37,5 +37,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 0fa47b67e7b8140239fb5ec55f4ab33322ae01f1..17936ab594ef8034d501d6ade6d77cddd14bd6fc 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'"
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
   },
   "dependencies": {
     "vue": "^3.2.22",
index 945ae423764811e1eab2e36681859a09e7b3ebe3..b0b6901bf5d8bd252c01b735605f50569c258095 100644 (file)
@@ -1,6 +1,6 @@
 <script setup>
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 347c934c5cf250e50fc9aaf6da41387dc583992b..c1cbe4e9e094b2672ff30c069680227b9c98e856 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050"
+    "preview": "vite preview --port 5050"
   },
   "dependencies": {
     "vue": "^3.2.22",
index 945ae423764811e1eab2e36681859a09e7b3ebe3..b0b6901bf5d8bd252c01b735605f50569c258095 100644 (file)
@@ -1,6 +1,6 @@
 <script setup>
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 9229e75eeb7189f410896ba34264667692a5fd55..336d942c02841367834b3a771dd2a07fb27afaea 100644 (file)
@@ -37,5 +37,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 6474d6d60459b153880e65a853b6c5d23143896c..074f33425b3cc3125abd1210dab9696ca1099a35 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'"
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
   },
   "dependencies": {
     "vue": "^3.2.22"
index 945ae423764811e1eab2e36681859a09e7b3ebe3..b0b6901bf5d8bd252c01b735605f50569c258095 100644 (file)
@@ -1,6 +1,6 @@
 <script setup>
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 8eca6b9edc71e18982b1a5a3392df5b56d4d797b..67c863a37203904cfa26fc0179cda7cdda626c0a 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050"
+    "preview": "vite preview --port 5050"
   },
   "dependencies": {
     "vue": "^3.2.22"
index 945ae423764811e1eab2e36681859a09e7b3ebe3..b0b6901bf5d8bd252c01b735605f50569c258095 100644 (file)
@@ -1,6 +1,6 @@
 <script setup>
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index c25aa93004d79057a31814273cf337a577961dbf..047e0f3cccaf36a558a33a717c3b73c800c1d1ab 100644 (file)
@@ -37,5 +37,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 4b7f70fd26fde7e0b177a8aca5c170def494f61b..7dc3e4eb60dfb2ae03a739c1a6c095179ac11262 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'"
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
   },
   "dependencies": {
     "vue": "^3.2.22",
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/router-vuex-with-tests/src/views/Home.vue b/playground/router-vuex-with-tests/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/router-vuex-with-tests/src/views/HomeView.vue b/playground/router-vuex-with-tests/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index f2bfb109d9f2510cc77e5f326065499655b44305..05978c8e359088643fa7b06a05fb38038e9c4bf5 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050"
+    "preview": "vite preview --port 5050"
   },
   "dependencies": {
     "vue": "^3.2.22",
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/router-vuex/src/views/Home.vue b/playground/router-vuex/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/router-vuex/src/views/HomeView.vue b/playground/router-vuex/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index 6ea5d737fbfc405ae2fc4826287b845dfd39321c..4a91f41fcc4f3babeab12e66ce7365a0db01fd09 100644 (file)
@@ -37,5 +37,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index a01230edca8201c1aa34da18b44a5177dadc82df..251bb88c6ad52fcce9e169d43bdc8caa52e629ed 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'"
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
   },
   "dependencies": {
     "vue": "^3.2.22",
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/router-with-tests/src/views/Home.vue b/playground/router-with-tests/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/router-with-tests/src/views/HomeView.vue b/playground/router-with-tests/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index f5f35ed9a4444d8beb881f656376de2f8aaa3d3a..c83d0c66bc88611b0905cf3ab2693426f0bb6c60 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050"
+    "preview": "vite preview --port 5050"
   },
   "dependencies": {
     "vue": "^3.2.22",
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/router/src/views/Home.vue b/playground/router/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/router/src/views/HomeView.vue b/playground/router/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index 4d454b482c7c1f1009cd5f3de4f8474ecc7868db..82f80ae3db07b6ffac20f0ff29ab59b5507c858a 100644 (file)
@@ -43,5 +43,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 5fb67c893b293cfa9b130fe5af3847e54f9c63b4..bfc33e5687174585acdc1fe548ae497f5c5a508b 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'",
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/typescript-jsx-router-vuex-with-tests/src/views/Home.vue b/playground/typescript-jsx-router-vuex-with-tests/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/typescript-jsx-router-vuex-with-tests/src/views/HomeView.vue b/playground/typescript-jsx-router-vuex-with-tests/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index b7d53631c5e7425f5ac309eb506c047904a754d0..b19753c100909c13cdb2e058329f42629db1d984 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/typescript-jsx-router-vuex/src/views/Home.vue b/playground/typescript-jsx-router-vuex/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/typescript-jsx-router-vuex/src/views/HomeView.vue b/playground/typescript-jsx-router-vuex/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index 4fea1ef9bba4139a8e1e9797fe0851aeb8be1bc7..d75a9773c7fc50f2440c1eeeb8544a31e47368af 100644 (file)
@@ -43,5 +43,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 343f68d6a4481469fd253e5c720e9734d83c229d..9658830bdb3504a124d12f3168ffce27cf32744c 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'",
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/typescript-jsx-router-with-tests/src/views/Home.vue b/playground/typescript-jsx-router-with-tests/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/typescript-jsx-router-with-tests/src/views/HomeView.vue b/playground/typescript-jsx-router-with-tests/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index 360bb676ea45b823a190356179cef374da2ba7e7..bfb38519cb5f4507a73aaa3ac96a225fa3ab9e3d 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/typescript-jsx-router/src/views/Home.vue b/playground/typescript-jsx-router/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/typescript-jsx-router/src/views/HomeView.vue b/playground/typescript-jsx-router/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index 02efe211765bc4ba0cb7c0c1278080057fbbe03b..b8cdcc0176ad05fbd54a529f702f623a1d9c48d7 100644 (file)
@@ -43,5 +43,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 941a2d2b8ab752db291e2ae169f6b84cac494409..1f069733efdfc4932f9bf205b4259375aa935a63 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'",
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index adcd6fe7c1c47936b14fe1d19c3e837b3931f780..d91eefc43298580190dd4bd28b96ae9009c540e2 100644 (file)
@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 9327d7ae26a8ac57eb5e769c1df47b2e3428b2dc..d25d0f7b3e56b77c7b2e4f8b8f139a192bb53683 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index adcd6fe7c1c47936b14fe1d19c3e837b3931f780..d91eefc43298580190dd4bd28b96ae9009c540e2 100644 (file)
@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 665d4101585bb6c65913c5571c7098a2beeb01f1..d6d8250f8dceb50a406613dcc6a0ffa832c3ccb7 100644 (file)
@@ -43,5 +43,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 2dd4416033cd999d1e0d6253a6f3bbb1f0cd6585..3eb42fa7de060cffadd7f6b0ff3a58c448671146 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'",
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index adcd6fe7c1c47936b14fe1d19c3e837b3931f780..d91eefc43298580190dd4bd28b96ae9009c540e2 100644 (file)
@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index d6c73212cb7abe7628d3487b3202c1656a5c299a..32fb6716aae7b61f55f75831a3dd4924ce382f62 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index adcd6fe7c1c47936b14fe1d19c3e837b3931f780..d91eefc43298580190dd4bd28b96ae9009c540e2 100644 (file)
@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 71172185c707e97c78507e3441fe3d09215d0e5c..f7f12af8c6df227779f68127bd9d5e01376db741 100644 (file)
@@ -43,5 +43,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 733c8d1408dac03897eee951e840df121253bddd..f809a7d5c9dc6df798dc482ce4710c9f60b5b1bd 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'",
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/typescript-router-vuex-with-tests/src/views/Home.vue b/playground/typescript-router-vuex-with-tests/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/typescript-router-vuex-with-tests/src/views/HomeView.vue b/playground/typescript-router-vuex-with-tests/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index eae404f9f243d83ea68371ac616abf9c986ac4df..9d9170a53b56ebc0165a94b30a800d843bc40d16 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/typescript-router-vuex/src/views/Home.vue b/playground/typescript-router-vuex/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/typescript-router-vuex/src/views/HomeView.vue b/playground/typescript-router-vuex/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index 0c88e38c65b31f698d5306821849738eec490af1..17ca12449c6eb83630def6c99297519e0fdfbd79 100644 (file)
@@ -43,5 +43,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index c6aa0368edc72d818093f5142461de2f2347c1e0..91d7c6cb86caba96240a46542daeed0aa10d7090 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'",
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/typescript-router-with-tests/src/views/Home.vue b/playground/typescript-router-with-tests/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/typescript-router-with-tests/src/views/HomeView.vue b/playground/typescript-router-with-tests/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index 0e7efb243d22fb6f17fc6c9df55491d89100d798..ea86c30db31692e93e68092d5ebb1661ca869cbe 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index e0434fd07b98c4031e12830fb0b0c087723f8cf0..a49ae507f39bdb792025d7c4bd1573b876e8cc96 100644 (file)
@@ -1,21 +1,21 @@
 import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
+import HomeView from '../views/HomeView.vue'
 
 const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
-      name: 'Home',
-      component: Home
+      name: 'home',
+      component: HomeView
     },
     {
       path: '/about',
-      name: 'About',
+      name: 'about',
       // route level code-splitting
       // this generates a separate chunk (About.[hash].js) for this route
       // which is lazy-loaded when the route is visited.
-      component: () => import('../views/About.vue')
+      component: () => import('../views/AboutView.vue')
     }
   ]
 })
diff --git a/playground/typescript-router/src/views/Home.vue b/playground/typescript-router/src/views/Home.vue
deleted file mode 100644 (file)
index ba9b6dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<script setup lang="ts">
-import Welcome from '@/components/Welcome.vue'
-</script>
-
-<template>
-  <main>
-    <Welcome />
-  </main>
-</template>
diff --git a/playground/typescript-router/src/views/HomeView.vue b/playground/typescript-router/src/views/HomeView.vue
new file mode 100644 (file)
index 0000000..6555a64
--- /dev/null
@@ -0,0 +1,9 @@
+<script setup lang="ts">
+import TheWelcome from '@/components/TheWelcome.vue'
+</script>
+
+<template>
+  <main>
+    <TheWelcome />
+  </main>
+</template>
index f5404434685bf79f81ce72d18407fb0ca47b1a5e..585971145e60feeaf62fd141f2063ca5a5cf8098 100644 (file)
@@ -43,5 +43,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index 6a8ca65b5df37fe97f7b0eef8b9c4bd40f46842f..a49fcdfbccb49694ee42e12a4068ff1ab4accea8 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'",
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index adcd6fe7c1c47936b14fe1d19c3e837b3931f780..d91eefc43298580190dd4bd28b96ae9009c540e2 100644 (file)
@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 3a87736eca334f6d1b71ff222efede6f5909f20b..2a21dd747f4da4c703cba4eada1e49aae18b7354 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index adcd6fe7c1c47936b14fe1d19c3e837b3931f780..d91eefc43298580190dd4bd28b96ae9009c540e2 100644 (file)
@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 5f4f103a9a8b64f3145f44148dbde542b3595b54..b4972f0f2cd3d7659be96f1ad67d8c8f8849df9a 100644 (file)
@@ -43,5 +43,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index fb7ed21e241f0c1579ad2978b8d02cf67df0f036..d2b7e29c9b927ca4937c2d6bba2f3fa9d78878d6 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'",
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index adcd6fe7c1c47936b14fe1d19c3e837b3931f780..d91eefc43298580190dd4bd28b96ae9009c540e2 100644 (file)
@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 90c57ae00f4de1ef66504df41675d5f642b46ff3..33374b2f3d71f3997aef5ab9cc229c0e681f4398 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vue-tsc --noEmit && vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "typecheck": "vue-tsc --noEmit"
   },
   "dependencies": {
index adcd6fe7c1c47936b14fe1d19c3e837b3931f780..d91eefc43298580190dd4bd28b96ae9009c540e2 100644 (file)
@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 0134de2436df995a622971e0cf1179c7b02ca2da..4c36c06736c2db18740eafb506b60e6b0252dfbf 100644 (file)
@@ -37,5 +37,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index d1be246ed5b2cb53ac532c4b8e4f807a7ad0120c..4214f6bec00433691c2078852911fbd5c21da177 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'"
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
   },
   "dependencies": {
     "vue": "^3.2.22",
index 945ae423764811e1eab2e36681859a09e7b3ebe3..b0b6901bf5d8bd252c01b735605f50569c258095 100644 (file)
@@ -1,6 +1,6 @@
 <script setup>
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index adfc46a4d3b0f998bdc644a7747274fdf4094b51..713fd87982701907e2719a2676c3895210f61614 100644 (file)
@@ -4,8 +4,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050"
+    "preview": "vite preview --port 5050"
   },
   "dependencies": {
     "vue": "^3.2.22",
index 945ae423764811e1eab2e36681859a09e7b3ebe3..b0b6901bf5d8bd252c01b735605f50569c258095 100644 (file)
@@ -1,6 +1,6 @@
 <script setup>
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>
 
index 978d67872ecbfd83f22490c3afe09968dff2e17b..ea2966b74a4bc309c5f4b9be81232957cf8121ba 100644 (file)
@@ -37,5 +37,6 @@ pnpm test:unit # or `pnpm test:unit:ci` for headless testing
 ### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
 
 ```sh
+pnpm build
 pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
 ```
index eec678648a4bd8e7db68de8c20e6674d3114ab8f..14ad3abb43e46e90b3c873dfea231ff53f1ef930 100644 (file)
@@ -4,12 +4,11 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
-    "preserve": "vite build",
-    "serve": "vite preview --port 5050",
+    "preview": "vite preview --port 5050",
     "test:unit": "cypress open-ct",
     "test:unit:ci": "cypress run-ct --quiet --reporter spec",
-    "test:e2e": "start-server-and-test serve 5050 'cypress open'",
-    "test:e2e:ci": "start-server-and-test serve 5050 'cypress run'"
+    "test:e2e": "start-server-and-test preview 5050 'cypress open'",
+    "test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
   },
   "dependencies": {
     "vue": "^3.2.22"
index 945ae423764811e1eab2e36681859a09e7b3ebe3..b0b6901bf5d8bd252c01b735605f50569c258095 100644 (file)
@@ -1,6 +1,6 @@
 <script setup>
 import HelloWorld from './components/HelloWorld.vue'
-import Welcome from './components/Welcome.vue'
+import TheWelcome from './components/TheWelcome.vue'
 </script>
 
 <template>
@@ -13,7 +13,7 @@ import Welcome from './components/Welcome.vue'
   </header>
 
   <main>
-    <Welcome />
+    <TheWelcome />
   </main>
 </template>