From: Haoqun Jiang Date: Thu, 18 Nov 2021 11:20:17 +0000 (+0800) Subject: chore: regenerate playground snapshot X-Git-Tag: v3.0.0-beta.7~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1673711e94b26d59ece285759ae4564f27fd625d;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: regenerate playground snapshot --- diff --git a/playground/default/package.json b/playground/default/package.json index a8611d95..16efc3b9 100644 --- a/playground/default/package.json +++ b/playground/default/package.json @@ -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" diff --git a/playground/default/src/App.vue b/playground/default/src/App.vue index 945ae423..b0b6901b 100644 --- a/playground/default/src/App.vue +++ b/playground/default/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/default/src/components/Welcome.vue b/playground/default/src/components/TheWelcome.vue similarity index 100% rename from playground/default/src/components/Welcome.vue rename to playground/default/src/components/TheWelcome.vue diff --git a/playground/jsx-router-vuex-with-tests/README.md b/playground/jsx-router-vuex-with-tests/README.md index d7b6cfcf..1a1978e3 100644 --- a/playground/jsx-router-vuex-with-tests/README.md +++ b/playground/jsx-router-vuex-with-tests/README.md @@ -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 ``` diff --git a/playground/jsx-router-vuex-with-tests/package.json b/playground/jsx-router-vuex-with-tests/package.json index 1d15e042..d054ab70 100644 --- a/playground/jsx-router-vuex-with-tests/package.json +++ b/playground/jsx-router-vuex-with-tests/package.json @@ -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", diff --git a/playground/jsx-router-vuex-with-tests/src/components/Welcome.vue b/playground/jsx-router-vuex-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/jsx-router-vuex-with-tests/src/components/Welcome.vue rename to playground/jsx-router-vuex-with-tests/src/components/TheWelcome.vue diff --git a/playground/jsx-router-vuex-with-tests/src/router/index.js b/playground/jsx-router-vuex-with-tests/src/router/index.js index e0434fd0..a49ae507 100644 --- a/playground/jsx-router-vuex-with-tests/src/router/index.js +++ b/playground/jsx-router-vuex-with-tests/src/router/index.js @@ -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/jsx-router-vuex-with-tests/src/views/About.vue b/playground/jsx-router-vuex-with-tests/src/views/AboutView.vue similarity index 100% rename from playground/jsx-router-vuex-with-tests/src/views/About.vue rename to playground/jsx-router-vuex-with-tests/src/views/AboutView.vue diff --git a/playground/jsx-router-vuex-with-tests/src/views/Home.vue b/playground/jsx-router-vuex-with-tests/src/views/HomeView.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 ba9b6dc3..6555a646 100644 --- a/playground/jsx-router-vuex-with-tests/src/views/Home.vue +++ b/playground/jsx-router-vuex-with-tests/src/views/HomeView.vue @@ -1,9 +1,9 @@ diff --git a/playground/jsx-router-vuex/package.json b/playground/jsx-router-vuex/package.json index 0346060b..7e47fd02 100644 --- a/playground/jsx-router-vuex/package.json +++ b/playground/jsx-router-vuex/package.json @@ -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", diff --git a/playground/jsx-router-vuex/src/components/Welcome.vue b/playground/jsx-router-vuex/src/components/TheWelcome.vue similarity index 100% rename from playground/jsx-router-vuex/src/components/Welcome.vue rename to playground/jsx-router-vuex/src/components/TheWelcome.vue diff --git a/playground/jsx-router-vuex/src/router/index.js b/playground/jsx-router-vuex/src/router/index.js index e0434fd0..a49ae507 100644 --- a/playground/jsx-router-vuex/src/router/index.js +++ b/playground/jsx-router-vuex/src/router/index.js @@ -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/jsx-router-vuex/src/views/About.vue b/playground/jsx-router-vuex/src/views/AboutView.vue similarity index 100% rename from playground/jsx-router-vuex/src/views/About.vue rename to playground/jsx-router-vuex/src/views/AboutView.vue diff --git a/playground/jsx-router-vuex/src/views/Home.vue b/playground/jsx-router-vuex/src/views/HomeView.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 ba9b6dc3..6555a646 100644 --- a/playground/jsx-router-vuex/src/views/Home.vue +++ b/playground/jsx-router-vuex/src/views/HomeView.vue @@ -1,9 +1,9 @@ diff --git a/playground/jsx-router-with-tests/README.md b/playground/jsx-router-with-tests/README.md index c039e607..45cc392b 100644 --- a/playground/jsx-router-with-tests/README.md +++ b/playground/jsx-router-with-tests/README.md @@ -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 ``` diff --git a/playground/jsx-router-with-tests/package.json b/playground/jsx-router-with-tests/package.json index 015debe0..a09c3627 100644 --- a/playground/jsx-router-with-tests/package.json +++ b/playground/jsx-router-with-tests/package.json @@ -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", diff --git a/playground/jsx-router-with-tests/src/components/Welcome.vue b/playground/jsx-router-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/jsx-router-with-tests/src/components/Welcome.vue rename to playground/jsx-router-with-tests/src/components/TheWelcome.vue diff --git a/playground/jsx-router-with-tests/src/router/index.js b/playground/jsx-router-with-tests/src/router/index.js index e0434fd0..a49ae507 100644 --- a/playground/jsx-router-with-tests/src/router/index.js +++ b/playground/jsx-router-with-tests/src/router/index.js @@ -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/jsx-router-with-tests/src/views/About.vue b/playground/jsx-router-with-tests/src/views/AboutView.vue similarity index 100% rename from playground/jsx-router-with-tests/src/views/About.vue rename to playground/jsx-router-with-tests/src/views/AboutView.vue diff --git a/playground/jsx-router-with-tests/src/views/Home.vue b/playground/jsx-router-with-tests/src/views/HomeView.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 ba9b6dc3..6555a646 100644 --- a/playground/jsx-router-with-tests/src/views/Home.vue +++ b/playground/jsx-router-with-tests/src/views/HomeView.vue @@ -1,9 +1,9 @@ diff --git a/playground/jsx-router/package.json b/playground/jsx-router/package.json index 1ac86580..4278d45e 100644 --- a/playground/jsx-router/package.json +++ b/playground/jsx-router/package.json @@ -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", diff --git a/playground/jsx-router/src/components/Welcome.vue b/playground/jsx-router/src/components/TheWelcome.vue similarity index 100% rename from playground/jsx-router/src/components/Welcome.vue rename to playground/jsx-router/src/components/TheWelcome.vue diff --git a/playground/jsx-router/src/router/index.js b/playground/jsx-router/src/router/index.js index e0434fd0..a49ae507 100644 --- a/playground/jsx-router/src/router/index.js +++ b/playground/jsx-router/src/router/index.js @@ -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/jsx-router/src/views/About.vue b/playground/jsx-router/src/views/AboutView.vue similarity index 100% rename from playground/jsx-router/src/views/About.vue rename to playground/jsx-router/src/views/AboutView.vue diff --git a/playground/jsx-router/src/views/Home.vue b/playground/jsx-router/src/views/HomeView.vue similarity index 52% rename from playground/jsx-router/src/views/Home.vue rename to playground/jsx-router/src/views/HomeView.vue index ba9b6dc3..6555a646 100644 --- a/playground/jsx-router/src/views/Home.vue +++ b/playground/jsx-router/src/views/HomeView.vue @@ -1,9 +1,9 @@ diff --git a/playground/jsx-vuex-with-tests/README.md b/playground/jsx-vuex-with-tests/README.md index b1e0697f..43965425 100644 --- a/playground/jsx-vuex-with-tests/README.md +++ b/playground/jsx-vuex-with-tests/README.md @@ -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 ``` diff --git a/playground/jsx-vuex-with-tests/package.json b/playground/jsx-vuex-with-tests/package.json index 0fa47b67..17936ab5 100644 --- a/playground/jsx-vuex-with-tests/package.json +++ b/playground/jsx-vuex-with-tests/package.json @@ -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", diff --git a/playground/jsx-vuex-with-tests/src/App.vue b/playground/jsx-vuex-with-tests/src/App.vue index 945ae423..b0b6901b 100644 --- a/playground/jsx-vuex-with-tests/src/App.vue +++ b/playground/jsx-vuex-with-tests/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/jsx-vuex-with-tests/src/components/Welcome.vue b/playground/jsx-vuex-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/jsx-vuex-with-tests/src/components/Welcome.vue rename to playground/jsx-vuex-with-tests/src/components/TheWelcome.vue diff --git a/playground/jsx-vuex/package.json b/playground/jsx-vuex/package.json index 347c934c..c1cbe4e9 100644 --- a/playground/jsx-vuex/package.json +++ b/playground/jsx-vuex/package.json @@ -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", diff --git a/playground/jsx-vuex/src/App.vue b/playground/jsx-vuex/src/App.vue index 945ae423..b0b6901b 100644 --- a/playground/jsx-vuex/src/App.vue +++ b/playground/jsx-vuex/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/jsx-vuex/src/components/Welcome.vue b/playground/jsx-vuex/src/components/TheWelcome.vue similarity index 100% rename from playground/jsx-vuex/src/components/Welcome.vue rename to playground/jsx-vuex/src/components/TheWelcome.vue diff --git a/playground/jsx-with-tests/README.md b/playground/jsx-with-tests/README.md index 9229e75e..336d942c 100644 --- a/playground/jsx-with-tests/README.md +++ b/playground/jsx-with-tests/README.md @@ -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 ``` diff --git a/playground/jsx-with-tests/package.json b/playground/jsx-with-tests/package.json index 6474d6d6..074f3342 100644 --- a/playground/jsx-with-tests/package.json +++ b/playground/jsx-with-tests/package.json @@ -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" diff --git a/playground/jsx-with-tests/src/App.vue b/playground/jsx-with-tests/src/App.vue index 945ae423..b0b6901b 100644 --- a/playground/jsx-with-tests/src/App.vue +++ b/playground/jsx-with-tests/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/jsx-with-tests/src/components/Welcome.vue b/playground/jsx-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/jsx-with-tests/src/components/Welcome.vue rename to playground/jsx-with-tests/src/components/TheWelcome.vue diff --git a/playground/jsx/package.json b/playground/jsx/package.json index 8eca6b9e..67c863a3 100644 --- a/playground/jsx/package.json +++ b/playground/jsx/package.json @@ -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" diff --git a/playground/jsx/src/App.vue b/playground/jsx/src/App.vue index 945ae423..b0b6901b 100644 --- a/playground/jsx/src/App.vue +++ b/playground/jsx/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/jsx/src/components/Welcome.vue b/playground/jsx/src/components/TheWelcome.vue similarity index 100% rename from playground/jsx/src/components/Welcome.vue rename to playground/jsx/src/components/TheWelcome.vue diff --git a/playground/router-vuex-with-tests/README.md b/playground/router-vuex-with-tests/README.md index c25aa930..047e0f3c 100644 --- a/playground/router-vuex-with-tests/README.md +++ b/playground/router-vuex-with-tests/README.md @@ -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 ``` diff --git a/playground/router-vuex-with-tests/package.json b/playground/router-vuex-with-tests/package.json index 4b7f70fd..7dc3e4eb 100644 --- a/playground/router-vuex-with-tests/package.json +++ b/playground/router-vuex-with-tests/package.json @@ -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", diff --git a/playground/router-vuex-with-tests/src/components/Welcome.vue b/playground/router-vuex-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/router-vuex-with-tests/src/components/Welcome.vue rename to playground/router-vuex-with-tests/src/components/TheWelcome.vue diff --git a/playground/router-vuex-with-tests/src/router/index.js b/playground/router-vuex-with-tests/src/router/index.js index e0434fd0..a49ae507 100644 --- a/playground/router-vuex-with-tests/src/router/index.js +++ b/playground/router-vuex-with-tests/src/router/index.js @@ -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/About.vue b/playground/router-vuex-with-tests/src/views/AboutView.vue similarity index 100% rename from playground/router-vuex-with-tests/src/views/About.vue rename to playground/router-vuex-with-tests/src/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 index ba9b6dc3..00000000 --- a/playground/router-vuex-with-tests/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - 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 index 00000000..6555a646 --- /dev/null +++ b/playground/router-vuex-with-tests/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/router-vuex/package.json b/playground/router-vuex/package.json index f2bfb109..05978c8e 100644 --- a/playground/router-vuex/package.json +++ b/playground/router-vuex/package.json @@ -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", diff --git a/playground/router-vuex/src/components/Welcome.vue b/playground/router-vuex/src/components/TheWelcome.vue similarity index 100% rename from playground/router-vuex/src/components/Welcome.vue rename to playground/router-vuex/src/components/TheWelcome.vue diff --git a/playground/router-vuex/src/router/index.js b/playground/router-vuex/src/router/index.js index e0434fd0..a49ae507 100644 --- a/playground/router-vuex/src/router/index.js +++ b/playground/router-vuex/src/router/index.js @@ -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/About.vue b/playground/router-vuex/src/views/AboutView.vue similarity index 100% rename from playground/router-vuex/src/views/About.vue rename to playground/router-vuex/src/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 index ba9b6dc3..00000000 --- a/playground/router-vuex/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/router-vuex/src/views/HomeView.vue b/playground/router-vuex/src/views/HomeView.vue new file mode 100644 index 00000000..6555a646 --- /dev/null +++ b/playground/router-vuex/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/router-with-tests/README.md b/playground/router-with-tests/README.md index 6ea5d737..4a91f41f 100644 --- a/playground/router-with-tests/README.md +++ b/playground/router-with-tests/README.md @@ -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 ``` diff --git a/playground/router-with-tests/package.json b/playground/router-with-tests/package.json index a01230ed..251bb88c 100644 --- a/playground/router-with-tests/package.json +++ b/playground/router-with-tests/package.json @@ -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", diff --git a/playground/router-with-tests/src/components/Welcome.vue b/playground/router-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/router-with-tests/src/components/Welcome.vue rename to playground/router-with-tests/src/components/TheWelcome.vue diff --git a/playground/router-with-tests/src/router/index.js b/playground/router-with-tests/src/router/index.js index e0434fd0..a49ae507 100644 --- a/playground/router-with-tests/src/router/index.js +++ b/playground/router-with-tests/src/router/index.js @@ -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/About.vue b/playground/router-with-tests/src/views/AboutView.vue similarity index 100% rename from playground/router-with-tests/src/views/About.vue rename to playground/router-with-tests/src/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 index ba9b6dc3..00000000 --- a/playground/router-with-tests/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/router-with-tests/src/views/HomeView.vue b/playground/router-with-tests/src/views/HomeView.vue new file mode 100644 index 00000000..6555a646 --- /dev/null +++ b/playground/router-with-tests/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/router/package.json b/playground/router/package.json index f5f35ed9..c83d0c66 100644 --- a/playground/router/package.json +++ b/playground/router/package.json @@ -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", diff --git a/playground/router/src/components/Welcome.vue b/playground/router/src/components/TheWelcome.vue similarity index 100% rename from playground/router/src/components/Welcome.vue rename to playground/router/src/components/TheWelcome.vue diff --git a/playground/router/src/router/index.js b/playground/router/src/router/index.js index e0434fd0..a49ae507 100644 --- a/playground/router/src/router/index.js +++ b/playground/router/src/router/index.js @@ -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/About.vue b/playground/router/src/views/AboutView.vue similarity index 100% rename from playground/router/src/views/About.vue rename to playground/router/src/views/AboutView.vue diff --git a/playground/router/src/views/Home.vue b/playground/router/src/views/Home.vue deleted file mode 100644 index ba9b6dc3..00000000 --- a/playground/router/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/router/src/views/HomeView.vue b/playground/router/src/views/HomeView.vue new file mode 100644 index 00000000..6555a646 --- /dev/null +++ b/playground/router/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/typescript-jsx-router-vuex-with-tests/README.md b/playground/typescript-jsx-router-vuex-with-tests/README.md index 4d454b48..82f80ae3 100644 --- a/playground/typescript-jsx-router-vuex-with-tests/README.md +++ b/playground/typescript-jsx-router-vuex-with-tests/README.md @@ -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 ``` diff --git a/playground/typescript-jsx-router-vuex-with-tests/package.json b/playground/typescript-jsx-router-vuex-with-tests/package.json index 5fb67c89..bfc33e56 100644 --- a/playground/typescript-jsx-router-vuex-with-tests/package.json +++ b/playground/typescript-jsx-router-vuex-with-tests/package.json @@ -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": { diff --git a/playground/typescript-jsx-router-vuex-with-tests/src/components/Welcome.vue b/playground/typescript-jsx-router-vuex-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-jsx-router-vuex-with-tests/src/components/Welcome.vue rename to playground/typescript-jsx-router-vuex-with-tests/src/components/TheWelcome.vue diff --git a/playground/typescript-jsx-router-vuex-with-tests/src/router/index.ts b/playground/typescript-jsx-router-vuex-with-tests/src/router/index.ts index e0434fd0..a49ae507 100644 --- a/playground/typescript-jsx-router-vuex-with-tests/src/router/index.ts +++ b/playground/typescript-jsx-router-vuex-with-tests/src/router/index.ts @@ -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/About.vue b/playground/typescript-jsx-router-vuex-with-tests/src/views/AboutView.vue similarity index 100% rename from playground/typescript-jsx-router-vuex-with-tests/src/views/About.vue rename to playground/typescript-jsx-router-vuex-with-tests/src/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 index ba9b6dc3..00000000 --- a/playground/typescript-jsx-router-vuex-with-tests/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - 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 index 00000000..6555a646 --- /dev/null +++ b/playground/typescript-jsx-router-vuex-with-tests/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/typescript-jsx-router-vuex/package.json b/playground/typescript-jsx-router-vuex/package.json index b7d53631..b19753c1 100644 --- a/playground/typescript-jsx-router-vuex/package.json +++ b/playground/typescript-jsx-router-vuex/package.json @@ -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": { diff --git a/playground/typescript-jsx-router-vuex/src/components/Welcome.vue b/playground/typescript-jsx-router-vuex/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-jsx-router-vuex/src/components/Welcome.vue rename to playground/typescript-jsx-router-vuex/src/components/TheWelcome.vue diff --git a/playground/typescript-jsx-router-vuex/src/router/index.ts b/playground/typescript-jsx-router-vuex/src/router/index.ts index e0434fd0..a49ae507 100644 --- a/playground/typescript-jsx-router-vuex/src/router/index.ts +++ b/playground/typescript-jsx-router-vuex/src/router/index.ts @@ -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/About.vue b/playground/typescript-jsx-router-vuex/src/views/AboutView.vue similarity index 100% rename from playground/typescript-jsx-router-vuex/src/views/About.vue rename to playground/typescript-jsx-router-vuex/src/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 index ba9b6dc3..00000000 --- a/playground/typescript-jsx-router-vuex/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - 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 index 00000000..6555a646 --- /dev/null +++ b/playground/typescript-jsx-router-vuex/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/typescript-jsx-router-with-tests/README.md b/playground/typescript-jsx-router-with-tests/README.md index 4fea1ef9..d75a9773 100644 --- a/playground/typescript-jsx-router-with-tests/README.md +++ b/playground/typescript-jsx-router-with-tests/README.md @@ -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 ``` diff --git a/playground/typescript-jsx-router-with-tests/package.json b/playground/typescript-jsx-router-with-tests/package.json index 343f68d6..9658830b 100644 --- a/playground/typescript-jsx-router-with-tests/package.json +++ b/playground/typescript-jsx-router-with-tests/package.json @@ -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": { diff --git a/playground/typescript-jsx-router-with-tests/src/components/Welcome.vue b/playground/typescript-jsx-router-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-jsx-router-with-tests/src/components/Welcome.vue rename to playground/typescript-jsx-router-with-tests/src/components/TheWelcome.vue diff --git a/playground/typescript-jsx-router-with-tests/src/router/index.ts b/playground/typescript-jsx-router-with-tests/src/router/index.ts index e0434fd0..a49ae507 100644 --- a/playground/typescript-jsx-router-with-tests/src/router/index.ts +++ b/playground/typescript-jsx-router-with-tests/src/router/index.ts @@ -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/About.vue b/playground/typescript-jsx-router-with-tests/src/views/AboutView.vue similarity index 100% rename from playground/typescript-jsx-router-with-tests/src/views/About.vue rename to playground/typescript-jsx-router-with-tests/src/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 index ba9b6dc3..00000000 --- a/playground/typescript-jsx-router-with-tests/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - 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 index 00000000..6555a646 --- /dev/null +++ b/playground/typescript-jsx-router-with-tests/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/typescript-jsx-router/package.json b/playground/typescript-jsx-router/package.json index 360bb676..bfb38519 100644 --- a/playground/typescript-jsx-router/package.json +++ b/playground/typescript-jsx-router/package.json @@ -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": { diff --git a/playground/typescript-jsx-router/src/components/Welcome.vue b/playground/typescript-jsx-router/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-jsx-router/src/components/Welcome.vue rename to playground/typescript-jsx-router/src/components/TheWelcome.vue diff --git a/playground/typescript-jsx-router/src/router/index.ts b/playground/typescript-jsx-router/src/router/index.ts index e0434fd0..a49ae507 100644 --- a/playground/typescript-jsx-router/src/router/index.ts +++ b/playground/typescript-jsx-router/src/router/index.ts @@ -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/About.vue b/playground/typescript-jsx-router/src/views/AboutView.vue similarity index 100% rename from playground/typescript-jsx-router/src/views/About.vue rename to playground/typescript-jsx-router/src/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 index ba9b6dc3..00000000 --- a/playground/typescript-jsx-router/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router/src/views/HomeView.vue b/playground/typescript-jsx-router/src/views/HomeView.vue new file mode 100644 index 00000000..6555a646 --- /dev/null +++ b/playground/typescript-jsx-router/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/typescript-jsx-vuex-with-tests/README.md b/playground/typescript-jsx-vuex-with-tests/README.md index 02efe211..b8cdcc01 100644 --- a/playground/typescript-jsx-vuex-with-tests/README.md +++ b/playground/typescript-jsx-vuex-with-tests/README.md @@ -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 ``` diff --git a/playground/typescript-jsx-vuex-with-tests/package.json b/playground/typescript-jsx-vuex-with-tests/package.json index 941a2d2b..1f069733 100644 --- a/playground/typescript-jsx-vuex-with-tests/package.json +++ b/playground/typescript-jsx-vuex-with-tests/package.json @@ -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": { diff --git a/playground/typescript-jsx-vuex-with-tests/src/App.vue b/playground/typescript-jsx-vuex-with-tests/src/App.vue index adcd6fe7..d91eefc4 100644 --- a/playground/typescript-jsx-vuex-with-tests/src/App.vue +++ b/playground/typescript-jsx-vuex-with-tests/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/typescript-jsx-vuex-with-tests/src/components/Welcome.vue b/playground/typescript-jsx-vuex-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-jsx-vuex-with-tests/src/components/Welcome.vue rename to playground/typescript-jsx-vuex-with-tests/src/components/TheWelcome.vue diff --git a/playground/typescript-jsx-vuex/package.json b/playground/typescript-jsx-vuex/package.json index 9327d7ae..d25d0f7b 100644 --- a/playground/typescript-jsx-vuex/package.json +++ b/playground/typescript-jsx-vuex/package.json @@ -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": { diff --git a/playground/typescript-jsx-vuex/src/App.vue b/playground/typescript-jsx-vuex/src/App.vue index adcd6fe7..d91eefc4 100644 --- a/playground/typescript-jsx-vuex/src/App.vue +++ b/playground/typescript-jsx-vuex/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/typescript-jsx-vuex/src/components/Welcome.vue b/playground/typescript-jsx-vuex/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-jsx-vuex/src/components/Welcome.vue rename to playground/typescript-jsx-vuex/src/components/TheWelcome.vue diff --git a/playground/typescript-jsx-with-tests/README.md b/playground/typescript-jsx-with-tests/README.md index 665d4101..d6d8250f 100644 --- a/playground/typescript-jsx-with-tests/README.md +++ b/playground/typescript-jsx-with-tests/README.md @@ -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 ``` diff --git a/playground/typescript-jsx-with-tests/package.json b/playground/typescript-jsx-with-tests/package.json index 2dd44160..3eb42fa7 100644 --- a/playground/typescript-jsx-with-tests/package.json +++ b/playground/typescript-jsx-with-tests/package.json @@ -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": { diff --git a/playground/typescript-jsx-with-tests/src/App.vue b/playground/typescript-jsx-with-tests/src/App.vue index adcd6fe7..d91eefc4 100644 --- a/playground/typescript-jsx-with-tests/src/App.vue +++ b/playground/typescript-jsx-with-tests/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/typescript-jsx-with-tests/src/components/Welcome.vue b/playground/typescript-jsx-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-jsx-with-tests/src/components/Welcome.vue rename to playground/typescript-jsx-with-tests/src/components/TheWelcome.vue diff --git a/playground/typescript-jsx/package.json b/playground/typescript-jsx/package.json index d6c73212..32fb6716 100644 --- a/playground/typescript-jsx/package.json +++ b/playground/typescript-jsx/package.json @@ -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": { diff --git a/playground/typescript-jsx/src/App.vue b/playground/typescript-jsx/src/App.vue index adcd6fe7..d91eefc4 100644 --- a/playground/typescript-jsx/src/App.vue +++ b/playground/typescript-jsx/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/typescript-jsx/src/components/Welcome.vue b/playground/typescript-jsx/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-jsx/src/components/Welcome.vue rename to playground/typescript-jsx/src/components/TheWelcome.vue diff --git a/playground/typescript-router-vuex-with-tests/README.md b/playground/typescript-router-vuex-with-tests/README.md index 71172185..f7f12af8 100644 --- a/playground/typescript-router-vuex-with-tests/README.md +++ b/playground/typescript-router-vuex-with-tests/README.md @@ -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 ``` diff --git a/playground/typescript-router-vuex-with-tests/package.json b/playground/typescript-router-vuex-with-tests/package.json index 733c8d14..f809a7d5 100644 --- a/playground/typescript-router-vuex-with-tests/package.json +++ b/playground/typescript-router-vuex-with-tests/package.json @@ -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": { diff --git a/playground/typescript-router-vuex-with-tests/src/components/Welcome.vue b/playground/typescript-router-vuex-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-router-vuex-with-tests/src/components/Welcome.vue rename to playground/typescript-router-vuex-with-tests/src/components/TheWelcome.vue diff --git a/playground/typescript-router-vuex-with-tests/src/router/index.ts b/playground/typescript-router-vuex-with-tests/src/router/index.ts index e0434fd0..a49ae507 100644 --- a/playground/typescript-router-vuex-with-tests/src/router/index.ts +++ b/playground/typescript-router-vuex-with-tests/src/router/index.ts @@ -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/About.vue b/playground/typescript-router-vuex-with-tests/src/views/AboutView.vue similarity index 100% rename from playground/typescript-router-vuex-with-tests/src/views/About.vue rename to playground/typescript-router-vuex-with-tests/src/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 index ba9b6dc3..00000000 --- a/playground/typescript-router-vuex-with-tests/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - 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 index 00000000..6555a646 --- /dev/null +++ b/playground/typescript-router-vuex-with-tests/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/typescript-router-vuex/package.json b/playground/typescript-router-vuex/package.json index eae404f9..9d9170a5 100644 --- a/playground/typescript-router-vuex/package.json +++ b/playground/typescript-router-vuex/package.json @@ -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": { diff --git a/playground/typescript-router-vuex/src/components/Welcome.vue b/playground/typescript-router-vuex/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-router-vuex/src/components/Welcome.vue rename to playground/typescript-router-vuex/src/components/TheWelcome.vue diff --git a/playground/typescript-router-vuex/src/router/index.ts b/playground/typescript-router-vuex/src/router/index.ts index e0434fd0..a49ae507 100644 --- a/playground/typescript-router-vuex/src/router/index.ts +++ b/playground/typescript-router-vuex/src/router/index.ts @@ -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/About.vue b/playground/typescript-router-vuex/src/views/AboutView.vue similarity index 100% rename from playground/typescript-router-vuex/src/views/About.vue rename to playground/typescript-router-vuex/src/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 index ba9b6dc3..00000000 --- a/playground/typescript-router-vuex/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-router-vuex/src/views/HomeView.vue b/playground/typescript-router-vuex/src/views/HomeView.vue new file mode 100644 index 00000000..6555a646 --- /dev/null +++ b/playground/typescript-router-vuex/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/typescript-router-with-tests/README.md b/playground/typescript-router-with-tests/README.md index 0c88e38c..17ca1244 100644 --- a/playground/typescript-router-with-tests/README.md +++ b/playground/typescript-router-with-tests/README.md @@ -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 ``` diff --git a/playground/typescript-router-with-tests/package.json b/playground/typescript-router-with-tests/package.json index c6aa0368..91d7c6cb 100644 --- a/playground/typescript-router-with-tests/package.json +++ b/playground/typescript-router-with-tests/package.json @@ -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": { diff --git a/playground/typescript-router-with-tests/src/components/Welcome.vue b/playground/typescript-router-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-router-with-tests/src/components/Welcome.vue rename to playground/typescript-router-with-tests/src/components/TheWelcome.vue diff --git a/playground/typescript-router-with-tests/src/router/index.ts b/playground/typescript-router-with-tests/src/router/index.ts index e0434fd0..a49ae507 100644 --- a/playground/typescript-router-with-tests/src/router/index.ts +++ b/playground/typescript-router-with-tests/src/router/index.ts @@ -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/About.vue b/playground/typescript-router-with-tests/src/views/AboutView.vue similarity index 100% rename from playground/typescript-router-with-tests/src/views/About.vue rename to playground/typescript-router-with-tests/src/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 index ba9b6dc3..00000000 --- a/playground/typescript-router-with-tests/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - 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 index 00000000..6555a646 --- /dev/null +++ b/playground/typescript-router-with-tests/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/typescript-router/package.json b/playground/typescript-router/package.json index 0e7efb24..ea86c30d 100644 --- a/playground/typescript-router/package.json +++ b/playground/typescript-router/package.json @@ -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": { diff --git a/playground/typescript-router/src/components/Welcome.vue b/playground/typescript-router/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-router/src/components/Welcome.vue rename to playground/typescript-router/src/components/TheWelcome.vue diff --git a/playground/typescript-router/src/router/index.ts b/playground/typescript-router/src/router/index.ts index e0434fd0..a49ae507 100644 --- a/playground/typescript-router/src/router/index.ts +++ b/playground/typescript-router/src/router/index.ts @@ -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/About.vue b/playground/typescript-router/src/views/AboutView.vue similarity index 100% rename from playground/typescript-router/src/views/About.vue rename to playground/typescript-router/src/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 index ba9b6dc3..00000000 --- a/playground/typescript-router/src/views/Home.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-router/src/views/HomeView.vue b/playground/typescript-router/src/views/HomeView.vue new file mode 100644 index 00000000..6555a646 --- /dev/null +++ b/playground/typescript-router/src/views/HomeView.vue @@ -0,0 +1,9 @@ + + + diff --git a/playground/typescript-vuex-with-tests/README.md b/playground/typescript-vuex-with-tests/README.md index f5404434..58597114 100644 --- a/playground/typescript-vuex-with-tests/README.md +++ b/playground/typescript-vuex-with-tests/README.md @@ -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 ``` diff --git a/playground/typescript-vuex-with-tests/package.json b/playground/typescript-vuex-with-tests/package.json index 6a8ca65b..a49fcdfb 100644 --- a/playground/typescript-vuex-with-tests/package.json +++ b/playground/typescript-vuex-with-tests/package.json @@ -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": { diff --git a/playground/typescript-vuex-with-tests/src/App.vue b/playground/typescript-vuex-with-tests/src/App.vue index adcd6fe7..d91eefc4 100644 --- a/playground/typescript-vuex-with-tests/src/App.vue +++ b/playground/typescript-vuex-with-tests/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/typescript-vuex-with-tests/src/components/Welcome.vue b/playground/typescript-vuex-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-vuex-with-tests/src/components/Welcome.vue rename to playground/typescript-vuex-with-tests/src/components/TheWelcome.vue diff --git a/playground/typescript-vuex/package.json b/playground/typescript-vuex/package.json index 3a87736e..2a21dd74 100644 --- a/playground/typescript-vuex/package.json +++ b/playground/typescript-vuex/package.json @@ -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": { diff --git a/playground/typescript-vuex/src/App.vue b/playground/typescript-vuex/src/App.vue index adcd6fe7..d91eefc4 100644 --- a/playground/typescript-vuex/src/App.vue +++ b/playground/typescript-vuex/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/typescript-vuex/src/components/Welcome.vue b/playground/typescript-vuex/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-vuex/src/components/Welcome.vue rename to playground/typescript-vuex/src/components/TheWelcome.vue diff --git a/playground/typescript-with-tests/README.md b/playground/typescript-with-tests/README.md index 5f4f103a..b4972f0f 100644 --- a/playground/typescript-with-tests/README.md +++ b/playground/typescript-with-tests/README.md @@ -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 ``` diff --git a/playground/typescript-with-tests/package.json b/playground/typescript-with-tests/package.json index fb7ed21e..d2b7e29c 100644 --- a/playground/typescript-with-tests/package.json +++ b/playground/typescript-with-tests/package.json @@ -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": { diff --git a/playground/typescript-with-tests/src/App.vue b/playground/typescript-with-tests/src/App.vue index adcd6fe7..d91eefc4 100644 --- a/playground/typescript-with-tests/src/App.vue +++ b/playground/typescript-with-tests/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/typescript-with-tests/src/components/Welcome.vue b/playground/typescript-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript-with-tests/src/components/Welcome.vue rename to playground/typescript-with-tests/src/components/TheWelcome.vue diff --git a/playground/typescript/package.json b/playground/typescript/package.json index 90c57ae0..33374b2f 100644 --- a/playground/typescript/package.json +++ b/playground/typescript/package.json @@ -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": { diff --git a/playground/typescript/src/App.vue b/playground/typescript/src/App.vue index adcd6fe7..d91eefc4 100644 --- a/playground/typescript/src/App.vue +++ b/playground/typescript/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/typescript/src/components/Welcome.vue b/playground/typescript/src/components/TheWelcome.vue similarity index 100% rename from playground/typescript/src/components/Welcome.vue rename to playground/typescript/src/components/TheWelcome.vue diff --git a/playground/vuex-with-tests/README.md b/playground/vuex-with-tests/README.md index 0134de24..4c36c067 100644 --- a/playground/vuex-with-tests/README.md +++ b/playground/vuex-with-tests/README.md @@ -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 ``` diff --git a/playground/vuex-with-tests/package.json b/playground/vuex-with-tests/package.json index d1be246e..4214f6be 100644 --- a/playground/vuex-with-tests/package.json +++ b/playground/vuex-with-tests/package.json @@ -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", diff --git a/playground/vuex-with-tests/src/App.vue b/playground/vuex-with-tests/src/App.vue index 945ae423..b0b6901b 100644 --- a/playground/vuex-with-tests/src/App.vue +++ b/playground/vuex-with-tests/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/vuex-with-tests/src/components/Welcome.vue b/playground/vuex-with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/vuex-with-tests/src/components/Welcome.vue rename to playground/vuex-with-tests/src/components/TheWelcome.vue diff --git a/playground/vuex/package.json b/playground/vuex/package.json index adfc46a4..713fd879 100644 --- a/playground/vuex/package.json +++ b/playground/vuex/package.json @@ -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", diff --git a/playground/vuex/src/App.vue b/playground/vuex/src/App.vue index 945ae423..b0b6901b 100644 --- a/playground/vuex/src/App.vue +++ b/playground/vuex/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/vuex/src/components/Welcome.vue b/playground/vuex/src/components/TheWelcome.vue similarity index 100% rename from playground/vuex/src/components/Welcome.vue rename to playground/vuex/src/components/TheWelcome.vue diff --git a/playground/with-tests/README.md b/playground/with-tests/README.md index 978d6787..ea2966b7 100644 --- a/playground/with-tests/README.md +++ b/playground/with-tests/README.md @@ -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 ``` diff --git a/playground/with-tests/package.json b/playground/with-tests/package.json index eec67864..14ad3abb 100644 --- a/playground/with-tests/package.json +++ b/playground/with-tests/package.json @@ -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" diff --git a/playground/with-tests/src/App.vue b/playground/with-tests/src/App.vue index 945ae423..b0b6901b 100644 --- a/playground/with-tests/src/App.vue +++ b/playground/with-tests/src/App.vue @@ -1,6 +1,6 @@ diff --git a/playground/with-tests/src/components/Welcome.vue b/playground/with-tests/src/components/TheWelcome.vue similarity index 100% rename from playground/with-tests/src/components/Welcome.vue rename to playground/with-tests/src/components/TheWelcome.vue