From: Haoqun Jiang Date: Thu, 30 Jun 2022 06:02:26 +0000 (+0800) Subject: chore: prepare for submodule migration X-Git-Tag: v2.1.0-beta~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e6e5fbbb855a9407480eefdf797629ba236d24f;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: prepare for submodule migration --- diff --git a/playground/default/.gitignore b/playground/default/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/default/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/default/README.md b/playground/default/README.md deleted file mode 100644 index 02fe0be7..00000000 --- a/playground/default/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# default - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Compile and Minify for Production - -```sh -pnpm build -``` diff --git a/playground/default/index.html b/playground/default/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/default/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/default/package.json b/playground/default/package.json deleted file mode 100644 index 74f8b4be..00000000 --- a/playground/default/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "default", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview --port 5050" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "vue": "^2.6.14" - }, - "devDependencies": { - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14" - } -} diff --git a/playground/default/public/favicon.ico b/playground/default/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/default/public/favicon.ico and /dev/null differ diff --git a/playground/default/src/App.vue b/playground/default/src/App.vue deleted file mode 100644 index 099c613b..00000000 --- a/playground/default/src/App.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/playground/default/src/assets/base.css b/playground/default/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/default/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/default/src/assets/logo.svg b/playground/default/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/default/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/default/src/components/HelloWorld.vue b/playground/default/src/components/HelloWorld.vue deleted file mode 100644 index de8b576a..00000000 --- a/playground/default/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/default/src/components/TheWelcome.vue b/playground/default/src/components/TheWelcome.vue deleted file mode 100644 index cccc38ef..00000000 --- a/playground/default/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/default/src/components/WelcomeItem.vue b/playground/default/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/default/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/default/src/components/icons/IconCommunity.vue b/playground/default/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/default/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/default/src/components/icons/IconDocumentation.vue b/playground/default/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/default/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/default/src/components/icons/IconEcosystem.vue b/playground/default/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/default/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/default/src/components/icons/IconSupport.vue b/playground/default/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/default/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/default/src/components/icons/IconTooling.vue b/playground/default/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/default/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/default/src/main.js b/playground/default/src/main.js deleted file mode 100644 index f201f697..00000000 --- a/playground/default/src/main.js +++ /dev/null @@ -1,12 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' - -import App from './App.vue' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - render: () => h(App) -}) - -app.mount('#app') diff --git a/playground/default/vite.config.js b/playground/default/vite.config.js deleted file mode 100644 index 42b92136..00000000 --- a/playground/default/vite.config.js +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/pinia-with-tests/.gitignore b/playground/pinia-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/pinia-with-tests/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/pinia-with-tests/README.md b/playground/pinia-with-tests/README.md deleted file mode 100644 index 1d559a05..00000000 --- a/playground/pinia-with-tests/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# pinia-with-tests - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Compile and Minify for Production - -```sh -pnpm build -``` - -### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction) - -```sh -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/pinia-with-tests/cypress.json b/playground/pinia-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/pinia-with-tests/cypress.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "baseUrl": "http://localhost:5050", - "component": { - "componentFolder": "src", - "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}" - } -} diff --git a/playground/pinia-with-tests/cypress/fixtures/example.json b/playground/pinia-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/pinia-with-tests/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/playground/pinia-with-tests/cypress/integration/example.spec.js b/playground/pinia-with-tests/cypress/integration/example.spec.js deleted file mode 100644 index 7a8c909f..00000000 --- a/playground/pinia-with-tests/cypress/integration/example.spec.js +++ /dev/null @@ -1,8 +0,0 @@ -// https://docs.cypress.io/api/introduction/api.html - -describe('My First Test', () => { - it('visits the app root url', () => { - cy.visit('/') - cy.contains('h1', 'You did it!') - }) -}) diff --git a/playground/pinia-with-tests/cypress/jsconfig.json b/playground/pinia-with-tests/cypress/jsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/pinia-with-tests/cypress/jsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], - "types": ["cypress"] - }, - "include": ["./**/*"] -} diff --git a/playground/pinia-with-tests/cypress/plugins/index.js b/playground/pinia-with-tests/cypress/plugins/index.js deleted file mode 100644 index ad2e351d..00000000 --- a/playground/pinia-with-tests/cypress/plugins/index.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -const { startDevServer } = require('@cypress/vite-dev-server') - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on('dev-server:start', (options) => { - return startDevServer({ options }) - }) - return config -} diff --git a/playground/pinia-with-tests/cypress/support/commands.js b/playground/pinia-with-tests/cypress/support/commands.js deleted file mode 100644 index 119ab03f..00000000 --- a/playground/pinia-with-tests/cypress/support/commands.js +++ /dev/null @@ -1,25 +0,0 @@ -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) diff --git a/playground/pinia-with-tests/cypress/support/index.js b/playground/pinia-with-tests/cypress/support/index.js deleted file mode 100644 index d68db96d..00000000 --- a/playground/pinia-with-tests/cypress/support/index.js +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') diff --git a/playground/pinia-with-tests/index.html b/playground/pinia-with-tests/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/pinia-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/pinia-with-tests/package.json b/playground/pinia-with-tests/package.json deleted file mode 100644 index ebf66cc2..00000000 --- a/playground/pinia-with-tests/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "pinia-with-tests", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "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 preview http://127.0.0.1:5050/ 'cypress open'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "pinia": "^2.0.11", - "vue": "^2.6.14" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.2", - "@cypress/vue": "^2.2.4", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "cypress": "^9.5.0", - "start-server-and-test": "^1.14.0", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14" - } -} diff --git a/playground/pinia-with-tests/public/favicon.ico b/playground/pinia-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/pinia-with-tests/public/favicon.ico and /dev/null differ diff --git a/playground/pinia-with-tests/src/App.vue b/playground/pinia-with-tests/src/App.vue deleted file mode 100644 index 099c613b..00000000 --- a/playground/pinia-with-tests/src/App.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/playground/pinia-with-tests/src/assets/base.css b/playground/pinia-with-tests/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/pinia-with-tests/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/pinia-with-tests/src/assets/logo.svg b/playground/pinia-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/pinia-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/pinia-with-tests/src/components/HelloWorld.vue b/playground/pinia-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index de8b576a..00000000 --- a/playground/pinia-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/pinia-with-tests/src/components/TheWelcome.vue b/playground/pinia-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index cccc38ef..00000000 --- a/playground/pinia-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/pinia-with-tests/src/components/WelcomeItem.vue b/playground/pinia-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/pinia-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/pinia-with-tests/src/components/__tests__/HelloWorld.spec.js b/playground/pinia-with-tests/src/components/__tests__/HelloWorld.spec.js deleted file mode 100644 index d6fb360b..00000000 --- a/playground/pinia-with-tests/src/components/__tests__/HelloWorld.spec.js +++ /dev/null @@ -1,13 +0,0 @@ -import { mount } from '@cypress/vue' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('playground', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/pinia-with-tests/src/components/icons/IconCommunity.vue b/playground/pinia-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/pinia-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/pinia-with-tests/src/components/icons/IconDocumentation.vue b/playground/pinia-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/pinia-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/pinia-with-tests/src/components/icons/IconEcosystem.vue b/playground/pinia-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/pinia-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/pinia-with-tests/src/components/icons/IconSupport.vue b/playground/pinia-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/pinia-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/pinia-with-tests/src/components/icons/IconTooling.vue b/playground/pinia-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/pinia-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/pinia-with-tests/src/main.js b/playground/pinia-with-tests/src/main.js deleted file mode 100644 index 4167deec..00000000 --- a/playground/pinia-with-tests/src/main.js +++ /dev/null @@ -1,15 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' -import { createPinia, PiniaVuePlugin } from 'pinia' - -import App from './App.vue' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - pinia: createPinia(), - render: () => h(App) -}) -app.use(PiniaVuePlugin) - -app.mount('#app') diff --git a/playground/pinia-with-tests/src/stores/counter.js b/playground/pinia-with-tests/src/stores/counter.js deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/pinia-with-tests/src/stores/counter.js +++ /dev/null @@ -1,16 +0,0 @@ -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore({ - id: 'counter', - state: () => ({ - counter: 0 - }), - getters: { - doubleCount: (state) => state.counter * 2 - }, - actions: { - increment() { - this.counter++ - } - } -}) diff --git a/playground/pinia-with-tests/vite.config.js b/playground/pinia-with-tests/vite.config.js deleted file mode 100644 index 42b92136..00000000 --- a/playground/pinia-with-tests/vite.config.js +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/pinia/.gitignore b/playground/pinia/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/pinia/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/pinia/README.md b/playground/pinia/README.md deleted file mode 100644 index 37089835..00000000 --- a/playground/pinia/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# pinia - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Compile and Minify for Production - -```sh -pnpm build -``` diff --git a/playground/pinia/index.html b/playground/pinia/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/pinia/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/pinia/package.json b/playground/pinia/package.json deleted file mode 100644 index 9344620a..00000000 --- a/playground/pinia/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "pinia", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview --port 5050" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "pinia": "^2.0.11", - "vue": "^2.6.14" - }, - "devDependencies": { - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14" - } -} diff --git a/playground/pinia/public/favicon.ico b/playground/pinia/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/pinia/public/favicon.ico and /dev/null differ diff --git a/playground/pinia/src/App.vue b/playground/pinia/src/App.vue deleted file mode 100644 index 099c613b..00000000 --- a/playground/pinia/src/App.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/playground/pinia/src/assets/base.css b/playground/pinia/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/pinia/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/pinia/src/assets/logo.svg b/playground/pinia/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/pinia/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/pinia/src/components/HelloWorld.vue b/playground/pinia/src/components/HelloWorld.vue deleted file mode 100644 index de8b576a..00000000 --- a/playground/pinia/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/pinia/src/components/TheWelcome.vue b/playground/pinia/src/components/TheWelcome.vue deleted file mode 100644 index cccc38ef..00000000 --- a/playground/pinia/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/pinia/src/components/WelcomeItem.vue b/playground/pinia/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/pinia/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/pinia/src/components/icons/IconCommunity.vue b/playground/pinia/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/pinia/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/pinia/src/components/icons/IconDocumentation.vue b/playground/pinia/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/pinia/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/pinia/src/components/icons/IconEcosystem.vue b/playground/pinia/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/pinia/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/pinia/src/components/icons/IconSupport.vue b/playground/pinia/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/pinia/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/pinia/src/components/icons/IconTooling.vue b/playground/pinia/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/pinia/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/pinia/src/main.js b/playground/pinia/src/main.js deleted file mode 100644 index 4167deec..00000000 --- a/playground/pinia/src/main.js +++ /dev/null @@ -1,15 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' -import { createPinia, PiniaVuePlugin } from 'pinia' - -import App from './App.vue' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - pinia: createPinia(), - render: () => h(App) -}) -app.use(PiniaVuePlugin) - -app.mount('#app') diff --git a/playground/pinia/src/stores/counter.js b/playground/pinia/src/stores/counter.js deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/pinia/src/stores/counter.js +++ /dev/null @@ -1,16 +0,0 @@ -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore({ - id: 'counter', - state: () => ({ - counter: 0 - }), - getters: { - doubleCount: (state) => state.counter * 2 - }, - actions: { - increment() { - this.counter++ - } - } -}) diff --git a/playground/pinia/vite.config.js b/playground/pinia/vite.config.js deleted file mode 100644 index 42b92136..00000000 --- a/playground/pinia/vite.config.js +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/router-pinia-with-tests/.gitignore b/playground/router-pinia-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/router-pinia-with-tests/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/router-pinia-with-tests/README.md b/playground/router-pinia-with-tests/README.md deleted file mode 100644 index 7b87e89e..00000000 --- a/playground/router-pinia-with-tests/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# router-pinia-with-tests - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Compile and Minify for Production - -```sh -pnpm build -``` - -### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction) - -```sh -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-pinia-with-tests/cypress.json b/playground/router-pinia-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/router-pinia-with-tests/cypress.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "baseUrl": "http://localhost:5050", - "component": { - "componentFolder": "src", - "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}" - } -} diff --git a/playground/router-pinia-with-tests/cypress/fixtures/example.json b/playground/router-pinia-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/router-pinia-with-tests/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/playground/router-pinia-with-tests/cypress/integration/example.spec.js b/playground/router-pinia-with-tests/cypress/integration/example.spec.js deleted file mode 100644 index 13a2922b..00000000 --- a/playground/router-pinia-with-tests/cypress/integration/example.spec.js +++ /dev/null @@ -1,13 +0,0 @@ -// https://docs.cypress.io/api/introduction/api.html - -describe('My First Test', () => { - it('visits the app root url', () => { - cy.visit('/') - cy.contains('h1', 'You did it!') - }) - - it('navigates to the about page', () => { - cy.visit('/about') - cy.contains('h1', 'This is an about page') - }) -}) diff --git a/playground/router-pinia-with-tests/cypress/jsconfig.json b/playground/router-pinia-with-tests/cypress/jsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/router-pinia-with-tests/cypress/jsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], - "types": ["cypress"] - }, - "include": ["./**/*"] -} diff --git a/playground/router-pinia-with-tests/cypress/plugins/index.js b/playground/router-pinia-with-tests/cypress/plugins/index.js deleted file mode 100644 index ad2e351d..00000000 --- a/playground/router-pinia-with-tests/cypress/plugins/index.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -const { startDevServer } = require('@cypress/vite-dev-server') - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on('dev-server:start', (options) => { - return startDevServer({ options }) - }) - return config -} diff --git a/playground/router-pinia-with-tests/cypress/support/commands.js b/playground/router-pinia-with-tests/cypress/support/commands.js deleted file mode 100644 index 119ab03f..00000000 --- a/playground/router-pinia-with-tests/cypress/support/commands.js +++ /dev/null @@ -1,25 +0,0 @@ -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) diff --git a/playground/router-pinia-with-tests/cypress/support/index.js b/playground/router-pinia-with-tests/cypress/support/index.js deleted file mode 100644 index d68db96d..00000000 --- a/playground/router-pinia-with-tests/cypress/support/index.js +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') diff --git a/playground/router-pinia-with-tests/index.html b/playground/router-pinia-with-tests/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/router-pinia-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/router-pinia-with-tests/package.json b/playground/router-pinia-with-tests/package.json deleted file mode 100644 index 44d08417..00000000 --- a/playground/router-pinia-with-tests/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "router-pinia-with-tests", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "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 preview http://127.0.0.1:5050/ 'cypress open'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "pinia": "^2.0.11", - "vue": "^2.6.14", - "vue-router": "^3.5.3" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.2", - "@cypress/vue": "^2.2.4", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "cypress": "^9.5.0", - "start-server-and-test": "^1.14.0", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14" - } -} diff --git a/playground/router-pinia-with-tests/public/favicon.ico b/playground/router-pinia-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/router-pinia-with-tests/public/favicon.ico and /dev/null differ diff --git a/playground/router-pinia-with-tests/src/App.vue b/playground/router-pinia-with-tests/src/App.vue deleted file mode 100644 index eac0e1bb..00000000 --- a/playground/router-pinia-with-tests/src/App.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/playground/router-pinia-with-tests/src/assets/base.css b/playground/router-pinia-with-tests/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/router-pinia-with-tests/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/router-pinia-with-tests/src/assets/logo.svg b/playground/router-pinia-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/router-pinia-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/router-pinia-with-tests/src/components/HelloWorld.vue b/playground/router-pinia-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index de8b576a..00000000 --- a/playground/router-pinia-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/router-pinia-with-tests/src/components/TheWelcome.vue b/playground/router-pinia-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index cccc38ef..00000000 --- a/playground/router-pinia-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/router-pinia-with-tests/src/components/WelcomeItem.vue b/playground/router-pinia-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/router-pinia-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.js b/playground/router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.js deleted file mode 100644 index d6fb360b..00000000 --- a/playground/router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.js +++ /dev/null @@ -1,13 +0,0 @@ -import { mount } from '@cypress/vue' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('playground', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/router-pinia-with-tests/src/components/icons/IconCommunity.vue b/playground/router-pinia-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/router-pinia-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-pinia-with-tests/src/components/icons/IconDocumentation.vue b/playground/router-pinia-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/router-pinia-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-pinia-with-tests/src/components/icons/IconEcosystem.vue b/playground/router-pinia-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/router-pinia-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-pinia-with-tests/src/components/icons/IconSupport.vue b/playground/router-pinia-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/router-pinia-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-pinia-with-tests/src/components/icons/IconTooling.vue b/playground/router-pinia-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/router-pinia-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/router-pinia-with-tests/src/main.js b/playground/router-pinia-with-tests/src/main.js deleted file mode 100644 index 4852af6b..00000000 --- a/playground/router-pinia-with-tests/src/main.js +++ /dev/null @@ -1,17 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' -import { createPinia, PiniaVuePlugin } from 'pinia' - -import App from './App.vue' -import router from './router' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - router, - pinia: createPinia(), - render: () => h(App) -}) -app.use(PiniaVuePlugin) - -app.mount('#app') diff --git a/playground/router-pinia-with-tests/src/router/index.js b/playground/router-pinia-with-tests/src/router/index.js deleted file mode 100644 index cf9820b0..00000000 --- a/playground/router-pinia-with-tests/src/router/index.js +++ /dev/null @@ -1,27 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -import HomeView from '../views/HomeView.vue' - -Vue.use(VueRouter) - -const router = new VueRouter({ - mode: 'history', - base: import.meta.env.BASE_URL, - routes: [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/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/AboutView.vue') - } - ] -}) - -export default router diff --git a/playground/router-pinia-with-tests/src/stores/counter.js b/playground/router-pinia-with-tests/src/stores/counter.js deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/router-pinia-with-tests/src/stores/counter.js +++ /dev/null @@ -1,16 +0,0 @@ -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore({ - id: 'counter', - state: () => ({ - counter: 0 - }), - getters: { - doubleCount: (state) => state.counter * 2 - }, - actions: { - increment() { - this.counter++ - } - } -}) diff --git a/playground/router-pinia-with-tests/src/views/AboutView.vue b/playground/router-pinia-with-tests/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/router-pinia-with-tests/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/router-pinia-with-tests/src/views/HomeView.vue b/playground/router-pinia-with-tests/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/router-pinia-with-tests/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/router-pinia-with-tests/vite.config.js b/playground/router-pinia-with-tests/vite.config.js deleted file mode 100644 index 42b92136..00000000 --- a/playground/router-pinia-with-tests/vite.config.js +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/router-pinia/.gitignore b/playground/router-pinia/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/router-pinia/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/router-pinia/README.md b/playground/router-pinia/README.md deleted file mode 100644 index 8ec2ec94..00000000 --- a/playground/router-pinia/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# router-pinia - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Compile and Minify for Production - -```sh -pnpm build -``` diff --git a/playground/router-pinia/index.html b/playground/router-pinia/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/router-pinia/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/router-pinia/package.json b/playground/router-pinia/package.json deleted file mode 100644 index a60eaf90..00000000 --- a/playground/router-pinia/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "router-pinia", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview --port 5050" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "pinia": "^2.0.11", - "vue": "^2.6.14", - "vue-router": "^3.5.3" - }, - "devDependencies": { - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14" - } -} diff --git a/playground/router-pinia/public/favicon.ico b/playground/router-pinia/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/router-pinia/public/favicon.ico and /dev/null differ diff --git a/playground/router-pinia/src/App.vue b/playground/router-pinia/src/App.vue deleted file mode 100644 index eac0e1bb..00000000 --- a/playground/router-pinia/src/App.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/playground/router-pinia/src/assets/base.css b/playground/router-pinia/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/router-pinia/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/router-pinia/src/assets/logo.svg b/playground/router-pinia/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/router-pinia/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/router-pinia/src/components/HelloWorld.vue b/playground/router-pinia/src/components/HelloWorld.vue deleted file mode 100644 index de8b576a..00000000 --- a/playground/router-pinia/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/router-pinia/src/components/TheWelcome.vue b/playground/router-pinia/src/components/TheWelcome.vue deleted file mode 100644 index cccc38ef..00000000 --- a/playground/router-pinia/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/router-pinia/src/components/WelcomeItem.vue b/playground/router-pinia/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/router-pinia/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/router-pinia/src/components/icons/IconCommunity.vue b/playground/router-pinia/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/router-pinia/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-pinia/src/components/icons/IconDocumentation.vue b/playground/router-pinia/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/router-pinia/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-pinia/src/components/icons/IconEcosystem.vue b/playground/router-pinia/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/router-pinia/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-pinia/src/components/icons/IconSupport.vue b/playground/router-pinia/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/router-pinia/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-pinia/src/components/icons/IconTooling.vue b/playground/router-pinia/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/router-pinia/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/router-pinia/src/main.js b/playground/router-pinia/src/main.js deleted file mode 100644 index 4852af6b..00000000 --- a/playground/router-pinia/src/main.js +++ /dev/null @@ -1,17 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' -import { createPinia, PiniaVuePlugin } from 'pinia' - -import App from './App.vue' -import router from './router' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - router, - pinia: createPinia(), - render: () => h(App) -}) -app.use(PiniaVuePlugin) - -app.mount('#app') diff --git a/playground/router-pinia/src/router/index.js b/playground/router-pinia/src/router/index.js deleted file mode 100644 index cf9820b0..00000000 --- a/playground/router-pinia/src/router/index.js +++ /dev/null @@ -1,27 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -import HomeView from '../views/HomeView.vue' - -Vue.use(VueRouter) - -const router = new VueRouter({ - mode: 'history', - base: import.meta.env.BASE_URL, - routes: [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/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/AboutView.vue') - } - ] -}) - -export default router diff --git a/playground/router-pinia/src/stores/counter.js b/playground/router-pinia/src/stores/counter.js deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/router-pinia/src/stores/counter.js +++ /dev/null @@ -1,16 +0,0 @@ -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore({ - id: 'counter', - state: () => ({ - counter: 0 - }), - getters: { - doubleCount: (state) => state.counter * 2 - }, - actions: { - increment() { - this.counter++ - } - } -}) diff --git a/playground/router-pinia/src/views/AboutView.vue b/playground/router-pinia/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/router-pinia/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/router-pinia/src/views/HomeView.vue b/playground/router-pinia/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/router-pinia/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/router-pinia/vite.config.js b/playground/router-pinia/vite.config.js deleted file mode 100644 index 42b92136..00000000 --- a/playground/router-pinia/vite.config.js +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/router-with-tests/.gitignore b/playground/router-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/router-with-tests/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/router-with-tests/README.md b/playground/router-with-tests/README.md deleted file mode 100644 index 8de21b47..00000000 --- a/playground/router-with-tests/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# router-with-tests - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Compile and Minify for Production - -```sh -pnpm build -``` - -### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction) - -```sh -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/cypress.json b/playground/router-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/router-with-tests/cypress.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "baseUrl": "http://localhost:5050", - "component": { - "componentFolder": "src", - "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}" - } -} diff --git a/playground/router-with-tests/cypress/fixtures/example.json b/playground/router-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/router-with-tests/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/playground/router-with-tests/cypress/integration/example.spec.js b/playground/router-with-tests/cypress/integration/example.spec.js deleted file mode 100644 index 13a2922b..00000000 --- a/playground/router-with-tests/cypress/integration/example.spec.js +++ /dev/null @@ -1,13 +0,0 @@ -// https://docs.cypress.io/api/introduction/api.html - -describe('My First Test', () => { - it('visits the app root url', () => { - cy.visit('/') - cy.contains('h1', 'You did it!') - }) - - it('navigates to the about page', () => { - cy.visit('/about') - cy.contains('h1', 'This is an about page') - }) -}) diff --git a/playground/router-with-tests/cypress/jsconfig.json b/playground/router-with-tests/cypress/jsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/router-with-tests/cypress/jsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], - "types": ["cypress"] - }, - "include": ["./**/*"] -} diff --git a/playground/router-with-tests/cypress/plugins/index.js b/playground/router-with-tests/cypress/plugins/index.js deleted file mode 100644 index ad2e351d..00000000 --- a/playground/router-with-tests/cypress/plugins/index.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -const { startDevServer } = require('@cypress/vite-dev-server') - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on('dev-server:start', (options) => { - return startDevServer({ options }) - }) - return config -} diff --git a/playground/router-with-tests/cypress/support/commands.js b/playground/router-with-tests/cypress/support/commands.js deleted file mode 100644 index 119ab03f..00000000 --- a/playground/router-with-tests/cypress/support/commands.js +++ /dev/null @@ -1,25 +0,0 @@ -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) diff --git a/playground/router-with-tests/cypress/support/index.js b/playground/router-with-tests/cypress/support/index.js deleted file mode 100644 index d68db96d..00000000 --- a/playground/router-with-tests/cypress/support/index.js +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') diff --git a/playground/router-with-tests/index.html b/playground/router-with-tests/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/router-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/router-with-tests/package.json b/playground/router-with-tests/package.json deleted file mode 100644 index 13e07410..00000000 --- a/playground/router-with-tests/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "router-with-tests", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "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 preview http://127.0.0.1:5050/ 'cypress open'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "vue": "^2.6.14", - "vue-router": "^3.5.3" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.2", - "@cypress/vue": "^2.2.4", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "cypress": "^9.5.0", - "start-server-and-test": "^1.14.0", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14" - } -} diff --git a/playground/router-with-tests/public/favicon.ico b/playground/router-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/router-with-tests/public/favicon.ico and /dev/null differ diff --git a/playground/router-with-tests/src/App.vue b/playground/router-with-tests/src/App.vue deleted file mode 100644 index eac0e1bb..00000000 --- a/playground/router-with-tests/src/App.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/playground/router-with-tests/src/assets/base.css b/playground/router-with-tests/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/router-with-tests/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/router-with-tests/src/assets/logo.svg b/playground/router-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/router-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/router-with-tests/src/components/HelloWorld.vue b/playground/router-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index de8b576a..00000000 --- a/playground/router-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/router-with-tests/src/components/TheWelcome.vue b/playground/router-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index cccc38ef..00000000 --- a/playground/router-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/router-with-tests/src/components/WelcomeItem.vue b/playground/router-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/router-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/router-with-tests/src/components/__tests__/HelloWorld.spec.js b/playground/router-with-tests/src/components/__tests__/HelloWorld.spec.js deleted file mode 100644 index d6fb360b..00000000 --- a/playground/router-with-tests/src/components/__tests__/HelloWorld.spec.js +++ /dev/null @@ -1,13 +0,0 @@ -import { mount } from '@cypress/vue' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('playground', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/router-with-tests/src/components/icons/IconCommunity.vue b/playground/router-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/router-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-with-tests/src/components/icons/IconDocumentation.vue b/playground/router-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/router-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-with-tests/src/components/icons/IconEcosystem.vue b/playground/router-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/router-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-with-tests/src/components/icons/IconSupport.vue b/playground/router-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/router-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router-with-tests/src/components/icons/IconTooling.vue b/playground/router-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/router-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/router-with-tests/src/main.js b/playground/router-with-tests/src/main.js deleted file mode 100644 index 2c19465d..00000000 --- a/playground/router-with-tests/src/main.js +++ /dev/null @@ -1,14 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' - -import App from './App.vue' -import router from './router' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - router, - render: () => h(App) -}) - -app.mount('#app') diff --git a/playground/router-with-tests/src/router/index.js b/playground/router-with-tests/src/router/index.js deleted file mode 100644 index cf9820b0..00000000 --- a/playground/router-with-tests/src/router/index.js +++ /dev/null @@ -1,27 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -import HomeView from '../views/HomeView.vue' - -Vue.use(VueRouter) - -const router = new VueRouter({ - mode: 'history', - base: import.meta.env.BASE_URL, - routes: [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/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/AboutView.vue') - } - ] -}) - -export default router diff --git a/playground/router-with-tests/src/views/AboutView.vue b/playground/router-with-tests/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/router-with-tests/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/router-with-tests/src/views/HomeView.vue b/playground/router-with-tests/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/router-with-tests/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/router-with-tests/vite.config.js b/playground/router-with-tests/vite.config.js deleted file mode 100644 index 42b92136..00000000 --- a/playground/router-with-tests/vite.config.js +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/router/.gitignore b/playground/router/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/router/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/router/README.md b/playground/router/README.md deleted file mode 100644 index 049ddce0..00000000 --- a/playground/router/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# router - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Compile and Minify for Production - -```sh -pnpm build -``` diff --git a/playground/router/index.html b/playground/router/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/router/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/router/package.json b/playground/router/package.json deleted file mode 100644 index 87ffb595..00000000 --- a/playground/router/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "router", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview --port 5050" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "vue": "^2.6.14", - "vue-router": "^3.5.3" - }, - "devDependencies": { - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14" - } -} diff --git a/playground/router/public/favicon.ico b/playground/router/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/router/public/favicon.ico and /dev/null differ diff --git a/playground/router/src/App.vue b/playground/router/src/App.vue deleted file mode 100644 index eac0e1bb..00000000 --- a/playground/router/src/App.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/playground/router/src/assets/base.css b/playground/router/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/router/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/router/src/assets/logo.svg b/playground/router/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/router/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/router/src/components/HelloWorld.vue b/playground/router/src/components/HelloWorld.vue deleted file mode 100644 index de8b576a..00000000 --- a/playground/router/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/router/src/components/TheWelcome.vue b/playground/router/src/components/TheWelcome.vue deleted file mode 100644 index cccc38ef..00000000 --- a/playground/router/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/router/src/components/WelcomeItem.vue b/playground/router/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/router/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/router/src/components/icons/IconCommunity.vue b/playground/router/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/router/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router/src/components/icons/IconDocumentation.vue b/playground/router/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/router/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router/src/components/icons/IconEcosystem.vue b/playground/router/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/router/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router/src/components/icons/IconSupport.vue b/playground/router/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/router/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/router/src/components/icons/IconTooling.vue b/playground/router/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/router/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/router/src/main.js b/playground/router/src/main.js deleted file mode 100644 index 2c19465d..00000000 --- a/playground/router/src/main.js +++ /dev/null @@ -1,14 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' - -import App from './App.vue' -import router from './router' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - router, - render: () => h(App) -}) - -app.mount('#app') diff --git a/playground/router/src/router/index.js b/playground/router/src/router/index.js deleted file mode 100644 index cf9820b0..00000000 --- a/playground/router/src/router/index.js +++ /dev/null @@ -1,27 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -import HomeView from '../views/HomeView.vue' - -Vue.use(VueRouter) - -const router = new VueRouter({ - mode: 'history', - base: import.meta.env.BASE_URL, - routes: [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/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/AboutView.vue') - } - ] -}) - -export default router diff --git a/playground/router/src/views/AboutView.vue b/playground/router/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/router/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/router/src/views/HomeView.vue b/playground/router/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/router/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/router/vite.config.js b/playground/router/vite.config.js deleted file mode 100644 index 42b92136..00000000 --- a/playground/router/vite.config.js +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-pinia-with-tests/.gitignore b/playground/typescript-pinia-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-pinia-with-tests/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/typescript-pinia-with-tests/README.md b/playground/typescript-pinia-with-tests/README.md deleted file mode 100644 index b0e3c8bd..00000000 --- a/playground/typescript-pinia-with-tests/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# typescript-pinia-with-tests - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Type Support for `.vue` Imports in TS - -Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. - -However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` - -### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction) - -```sh -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-pinia-with-tests/cypress.json b/playground/typescript-pinia-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/typescript-pinia-with-tests/cypress.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "baseUrl": "http://localhost:5050", - "component": { - "componentFolder": "src", - "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}" - } -} diff --git a/playground/typescript-pinia-with-tests/cypress/fixtures/example.json b/playground/typescript-pinia-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/typescript-pinia-with-tests/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/playground/typescript-pinia-with-tests/cypress/integration/example.spec.ts b/playground/typescript-pinia-with-tests/cypress/integration/example.spec.ts deleted file mode 100644 index 7a8c909f..00000000 --- a/playground/typescript-pinia-with-tests/cypress/integration/example.spec.ts +++ /dev/null @@ -1,8 +0,0 @@ -// https://docs.cypress.io/api/introduction/api.html - -describe('My First Test', () => { - it('visits the app root url', () => { - cy.visit('/') - cy.contains('h1', 'You did it!') - }) -}) diff --git a/playground/typescript-pinia-with-tests/cypress/plugins/index.ts b/playground/typescript-pinia-with-tests/cypress/plugins/index.ts deleted file mode 100644 index ad2e351d..00000000 --- a/playground/typescript-pinia-with-tests/cypress/plugins/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -const { startDevServer } = require('@cypress/vite-dev-server') - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on('dev-server:start', (options) => { - return startDevServer({ options }) - }) - return config -} diff --git a/playground/typescript-pinia-with-tests/cypress/support/commands.ts b/playground/typescript-pinia-with-tests/cypress/support/commands.ts deleted file mode 100644 index 119ab03f..00000000 --- a/playground/typescript-pinia-with-tests/cypress/support/commands.ts +++ /dev/null @@ -1,25 +0,0 @@ -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) diff --git a/playground/typescript-pinia-with-tests/cypress/support/index.ts b/playground/typescript-pinia-with-tests/cypress/support/index.ts deleted file mode 100644 index d68db96d..00000000 --- a/playground/typescript-pinia-with-tests/cypress/support/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') diff --git a/playground/typescript-pinia-with-tests/cypress/tsconfig.json b/playground/typescript-pinia-with-tests/cypress/tsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/typescript-pinia-with-tests/cypress/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], - "types": ["cypress"] - }, - "include": ["./**/*"] -} diff --git a/playground/typescript-pinia-with-tests/env.d.ts b/playground/typescript-pinia-with-tests/env.d.ts deleted file mode 100644 index cceeec5b..00000000 --- a/playground/typescript-pinia-with-tests/env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/playground/typescript-pinia-with-tests/index.html b/playground/typescript-pinia-with-tests/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-pinia-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-pinia-with-tests/package.json b/playground/typescript-pinia-with-tests/package.json deleted file mode 100644 index ec533851..00000000 --- a/playground/typescript-pinia-with-tests/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "typescript-pinia-with-tests", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "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 preview http://127.0.0.1:5050/ 'cypress open'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'", - "typecheck": "vue-tsc --noEmit" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "pinia": "^2.0.11", - "vue": "^2.6.14" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.2", - "@cypress/vue": "^2.2.4", - "@types/node": "^16.11.25", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "cypress": "^9.5.0", - "start-server-and-test": "^1.14.0", - "typescript": "~4.7.3", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14", - "vue-tsc": "^0.37.3" - } -} diff --git a/playground/typescript-pinia-with-tests/public/favicon.ico b/playground/typescript-pinia-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/typescript-pinia-with-tests/public/favicon.ico and /dev/null differ diff --git a/playground/typescript-pinia-with-tests/src/App.vue b/playground/typescript-pinia-with-tests/src/App.vue deleted file mode 100644 index 794bc449..00000000 --- a/playground/typescript-pinia-with-tests/src/App.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/playground/typescript-pinia-with-tests/src/assets/base.css b/playground/typescript-pinia-with-tests/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/typescript-pinia-with-tests/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/typescript-pinia-with-tests/src/assets/logo.svg b/playground/typescript-pinia-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-pinia-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-pinia-with-tests/src/components/HelloWorld.vue b/playground/typescript-pinia-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index 624fb3e0..00000000 --- a/playground/typescript-pinia-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-pinia-with-tests/src/components/TheWelcome.vue b/playground/typescript-pinia-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index 51d12392..00000000 --- a/playground/typescript-pinia-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-pinia-with-tests/src/components/WelcomeItem.vue b/playground/typescript-pinia-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-pinia-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts b/playground/typescript-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index d6fb360b..00000000 --- a/playground/typescript-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { mount } from '@cypress/vue' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('playground', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/typescript-pinia-with-tests/src/components/icons/IconCommunity.vue b/playground/typescript-pinia-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-pinia-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-pinia-with-tests/src/components/icons/IconDocumentation.vue b/playground/typescript-pinia-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-pinia-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-pinia-with-tests/src/components/icons/IconEcosystem.vue b/playground/typescript-pinia-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-pinia-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-pinia-with-tests/src/components/icons/IconSupport.vue b/playground/typescript-pinia-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-pinia-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-pinia-with-tests/src/components/icons/IconTooling.vue b/playground/typescript-pinia-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-pinia-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-pinia-with-tests/src/main.ts b/playground/typescript-pinia-with-tests/src/main.ts deleted file mode 100644 index 4167deec..00000000 --- a/playground/typescript-pinia-with-tests/src/main.ts +++ /dev/null @@ -1,15 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' -import { createPinia, PiniaVuePlugin } from 'pinia' - -import App from './App.vue' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - pinia: createPinia(), - render: () => h(App) -}) -app.use(PiniaVuePlugin) - -app.mount('#app') diff --git a/playground/typescript-pinia-with-tests/src/stores/counter.ts b/playground/typescript-pinia-with-tests/src/stores/counter.ts deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/typescript-pinia-with-tests/src/stores/counter.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore({ - id: 'counter', - state: () => ({ - counter: 0 - }), - getters: { - doubleCount: (state) => state.counter * 2 - }, - actions: { - increment() { - this.counter++ - } - } -}) diff --git a/playground/typescript-pinia-with-tests/tsconfig.json b/playground/typescript-pinia-with-tests/tsconfig.json deleted file mode 100644 index b884f92d..00000000 --- a/playground/typescript-pinia-with-tests/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./", - "target": "esnext", - "useDefineForClassFields": true, - "module": "esnext", - "moduleResolution": "node", - "isolatedModules": true, - "strict": true, - "jsx": "preserve", - "sourceMap": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "paths": { - "@/*": ["src/*"] - }, - "lib": ["esnext", "dom", "dom.iterable", "scripthost"], - "skipLibCheck": true - }, - "vueCompilerOptions": { - "target": 2 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-pinia-with-tests/vite.config.ts b/playground/typescript-pinia-with-tests/vite.config.ts deleted file mode 100644 index 42b92136..00000000 --- a/playground/typescript-pinia-with-tests/vite.config.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-pinia/.gitignore b/playground/typescript-pinia/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-pinia/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/typescript-pinia/README.md b/playground/typescript-pinia/README.md deleted file mode 100644 index 42e9e259..00000000 --- a/playground/typescript-pinia/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# typescript-pinia - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Type Support for `.vue` Imports in TS - -Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. - -However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` diff --git a/playground/typescript-pinia/env.d.ts b/playground/typescript-pinia/env.d.ts deleted file mode 100644 index cceeec5b..00000000 --- a/playground/typescript-pinia/env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/playground/typescript-pinia/index.html b/playground/typescript-pinia/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-pinia/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-pinia/package.json b/playground/typescript-pinia/package.json deleted file mode 100644 index 73322e9f..00000000 --- a/playground/typescript-pinia/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "typescript-pinia", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "preview": "vite preview --port 5050", - "typecheck": "vue-tsc --noEmit" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "pinia": "^2.0.11", - "vue": "^2.6.14" - }, - "devDependencies": { - "@types/node": "^16.11.25", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "typescript": "~4.7.3", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14", - "vue-tsc": "^0.37.3" - } -} diff --git a/playground/typescript-pinia/public/favicon.ico b/playground/typescript-pinia/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/typescript-pinia/public/favicon.ico and /dev/null differ diff --git a/playground/typescript-pinia/src/App.vue b/playground/typescript-pinia/src/App.vue deleted file mode 100644 index 794bc449..00000000 --- a/playground/typescript-pinia/src/App.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/playground/typescript-pinia/src/assets/base.css b/playground/typescript-pinia/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/typescript-pinia/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/typescript-pinia/src/assets/logo.svg b/playground/typescript-pinia/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-pinia/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-pinia/src/components/HelloWorld.vue b/playground/typescript-pinia/src/components/HelloWorld.vue deleted file mode 100644 index 624fb3e0..00000000 --- a/playground/typescript-pinia/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-pinia/src/components/TheWelcome.vue b/playground/typescript-pinia/src/components/TheWelcome.vue deleted file mode 100644 index 51d12392..00000000 --- a/playground/typescript-pinia/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-pinia/src/components/WelcomeItem.vue b/playground/typescript-pinia/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-pinia/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-pinia/src/components/icons/IconCommunity.vue b/playground/typescript-pinia/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-pinia/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-pinia/src/components/icons/IconDocumentation.vue b/playground/typescript-pinia/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-pinia/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-pinia/src/components/icons/IconEcosystem.vue b/playground/typescript-pinia/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-pinia/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-pinia/src/components/icons/IconSupport.vue b/playground/typescript-pinia/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-pinia/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-pinia/src/components/icons/IconTooling.vue b/playground/typescript-pinia/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-pinia/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-pinia/src/main.ts b/playground/typescript-pinia/src/main.ts deleted file mode 100644 index 4167deec..00000000 --- a/playground/typescript-pinia/src/main.ts +++ /dev/null @@ -1,15 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' -import { createPinia, PiniaVuePlugin } from 'pinia' - -import App from './App.vue' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - pinia: createPinia(), - render: () => h(App) -}) -app.use(PiniaVuePlugin) - -app.mount('#app') diff --git a/playground/typescript-pinia/src/stores/counter.ts b/playground/typescript-pinia/src/stores/counter.ts deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/typescript-pinia/src/stores/counter.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore({ - id: 'counter', - state: () => ({ - counter: 0 - }), - getters: { - doubleCount: (state) => state.counter * 2 - }, - actions: { - increment() { - this.counter++ - } - } -}) diff --git a/playground/typescript-pinia/tsconfig.json b/playground/typescript-pinia/tsconfig.json deleted file mode 100644 index b884f92d..00000000 --- a/playground/typescript-pinia/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./", - "target": "esnext", - "useDefineForClassFields": true, - "module": "esnext", - "moduleResolution": "node", - "isolatedModules": true, - "strict": true, - "jsx": "preserve", - "sourceMap": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "paths": { - "@/*": ["src/*"] - }, - "lib": ["esnext", "dom", "dom.iterable", "scripthost"], - "skipLibCheck": true - }, - "vueCompilerOptions": { - "target": 2 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-pinia/vite.config.ts b/playground/typescript-pinia/vite.config.ts deleted file mode 100644 index 42b92136..00000000 --- a/playground/typescript-pinia/vite.config.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-router-pinia-with-tests/.gitignore b/playground/typescript-router-pinia-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-router-pinia-with-tests/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/typescript-router-pinia-with-tests/README.md b/playground/typescript-router-pinia-with-tests/README.md deleted file mode 100644 index dc421902..00000000 --- a/playground/typescript-router-pinia-with-tests/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# typescript-router-pinia-with-tests - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Type Support for `.vue` Imports in TS - -Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. - -However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` - -### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction) - -```sh -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-pinia-with-tests/cypress.json b/playground/typescript-router-pinia-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/typescript-router-pinia-with-tests/cypress.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "baseUrl": "http://localhost:5050", - "component": { - "componentFolder": "src", - "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}" - } -} diff --git a/playground/typescript-router-pinia-with-tests/cypress/fixtures/example.json b/playground/typescript-router-pinia-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/typescript-router-pinia-with-tests/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/playground/typescript-router-pinia-with-tests/cypress/integration/example.spec.ts b/playground/typescript-router-pinia-with-tests/cypress/integration/example.spec.ts deleted file mode 100644 index 13a2922b..00000000 --- a/playground/typescript-router-pinia-with-tests/cypress/integration/example.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -// https://docs.cypress.io/api/introduction/api.html - -describe('My First Test', () => { - it('visits the app root url', () => { - cy.visit('/') - cy.contains('h1', 'You did it!') - }) - - it('navigates to the about page', () => { - cy.visit('/about') - cy.contains('h1', 'This is an about page') - }) -}) diff --git a/playground/typescript-router-pinia-with-tests/cypress/plugins/index.ts b/playground/typescript-router-pinia-with-tests/cypress/plugins/index.ts deleted file mode 100644 index ad2e351d..00000000 --- a/playground/typescript-router-pinia-with-tests/cypress/plugins/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -const { startDevServer } = require('@cypress/vite-dev-server') - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on('dev-server:start', (options) => { - return startDevServer({ options }) - }) - return config -} diff --git a/playground/typescript-router-pinia-with-tests/cypress/support/commands.ts b/playground/typescript-router-pinia-with-tests/cypress/support/commands.ts deleted file mode 100644 index 119ab03f..00000000 --- a/playground/typescript-router-pinia-with-tests/cypress/support/commands.ts +++ /dev/null @@ -1,25 +0,0 @@ -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) diff --git a/playground/typescript-router-pinia-with-tests/cypress/support/index.ts b/playground/typescript-router-pinia-with-tests/cypress/support/index.ts deleted file mode 100644 index d68db96d..00000000 --- a/playground/typescript-router-pinia-with-tests/cypress/support/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') diff --git a/playground/typescript-router-pinia-with-tests/cypress/tsconfig.json b/playground/typescript-router-pinia-with-tests/cypress/tsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/typescript-router-pinia-with-tests/cypress/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], - "types": ["cypress"] - }, - "include": ["./**/*"] -} diff --git a/playground/typescript-router-pinia-with-tests/env.d.ts b/playground/typescript-router-pinia-with-tests/env.d.ts deleted file mode 100644 index cceeec5b..00000000 --- a/playground/typescript-router-pinia-with-tests/env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/playground/typescript-router-pinia-with-tests/index.html b/playground/typescript-router-pinia-with-tests/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-router-pinia-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-router-pinia-with-tests/package.json b/playground/typescript-router-pinia-with-tests/package.json deleted file mode 100644 index 9a25b88d..00000000 --- a/playground/typescript-router-pinia-with-tests/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "typescript-router-pinia-with-tests", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "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 preview http://127.0.0.1:5050/ 'cypress open'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'", - "typecheck": "vue-tsc --noEmit" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "pinia": "^2.0.11", - "vue": "^2.6.14", - "vue-router": "^3.5.3" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.2", - "@cypress/vue": "^2.2.4", - "@types/node": "^16.11.25", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "cypress": "^9.5.0", - "start-server-and-test": "^1.14.0", - "typescript": "~4.7.3", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14", - "vue-tsc": "^0.37.3" - } -} diff --git a/playground/typescript-router-pinia-with-tests/public/favicon.ico b/playground/typescript-router-pinia-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/typescript-router-pinia-with-tests/public/favicon.ico and /dev/null differ diff --git a/playground/typescript-router-pinia-with-tests/src/App.vue b/playground/typescript-router-pinia-with-tests/src/App.vue deleted file mode 100644 index 1a9747c3..00000000 --- a/playground/typescript-router-pinia-with-tests/src/App.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/playground/typescript-router-pinia-with-tests/src/assets/base.css b/playground/typescript-router-pinia-with-tests/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/typescript-router-pinia-with-tests/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/typescript-router-pinia-with-tests/src/assets/logo.svg b/playground/typescript-router-pinia-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-router-pinia-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-router-pinia-with-tests/src/components/HelloWorld.vue b/playground/typescript-router-pinia-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index bf0a052f..00000000 --- a/playground/typescript-router-pinia-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-router-pinia-with-tests/src/components/TheWelcome.vue b/playground/typescript-router-pinia-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index 51d12392..00000000 --- a/playground/typescript-router-pinia-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-router-pinia-with-tests/src/components/WelcomeItem.vue b/playground/typescript-router-pinia-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-router-pinia-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts b/playground/typescript-router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index d6fb360b..00000000 --- a/playground/typescript-router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { mount } from '@cypress/vue' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('playground', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/typescript-router-pinia-with-tests/src/components/icons/IconCommunity.vue b/playground/typescript-router-pinia-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-router-pinia-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-pinia-with-tests/src/components/icons/IconDocumentation.vue b/playground/typescript-router-pinia-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-router-pinia-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-pinia-with-tests/src/components/icons/IconEcosystem.vue b/playground/typescript-router-pinia-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-router-pinia-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-pinia-with-tests/src/components/icons/IconSupport.vue b/playground/typescript-router-pinia-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-router-pinia-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-pinia-with-tests/src/components/icons/IconTooling.vue b/playground/typescript-router-pinia-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-router-pinia-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-router-pinia-with-tests/src/main.ts b/playground/typescript-router-pinia-with-tests/src/main.ts deleted file mode 100644 index 4852af6b..00000000 --- a/playground/typescript-router-pinia-with-tests/src/main.ts +++ /dev/null @@ -1,17 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' -import { createPinia, PiniaVuePlugin } from 'pinia' - -import App from './App.vue' -import router from './router' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - router, - pinia: createPinia(), - render: () => h(App) -}) -app.use(PiniaVuePlugin) - -app.mount('#app') diff --git a/playground/typescript-router-pinia-with-tests/src/router/index.ts b/playground/typescript-router-pinia-with-tests/src/router/index.ts deleted file mode 100644 index cf9820b0..00000000 --- a/playground/typescript-router-pinia-with-tests/src/router/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -import HomeView from '../views/HomeView.vue' - -Vue.use(VueRouter) - -const router = new VueRouter({ - mode: 'history', - base: import.meta.env.BASE_URL, - routes: [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/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/AboutView.vue') - } - ] -}) - -export default router diff --git a/playground/typescript-router-pinia-with-tests/src/stores/counter.ts b/playground/typescript-router-pinia-with-tests/src/stores/counter.ts deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/typescript-router-pinia-with-tests/src/stores/counter.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore({ - id: 'counter', - state: () => ({ - counter: 0 - }), - getters: { - doubleCount: (state) => state.counter * 2 - }, - actions: { - increment() { - this.counter++ - } - } -}) diff --git a/playground/typescript-router-pinia-with-tests/src/views/AboutView.vue b/playground/typescript-router-pinia-with-tests/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/typescript-router-pinia-with-tests/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/typescript-router-pinia-with-tests/src/views/HomeView.vue b/playground/typescript-router-pinia-with-tests/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/typescript-router-pinia-with-tests/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-router-pinia-with-tests/tsconfig.json b/playground/typescript-router-pinia-with-tests/tsconfig.json deleted file mode 100644 index b884f92d..00000000 --- a/playground/typescript-router-pinia-with-tests/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./", - "target": "esnext", - "useDefineForClassFields": true, - "module": "esnext", - "moduleResolution": "node", - "isolatedModules": true, - "strict": true, - "jsx": "preserve", - "sourceMap": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "paths": { - "@/*": ["src/*"] - }, - "lib": ["esnext", "dom", "dom.iterable", "scripthost"], - "skipLibCheck": true - }, - "vueCompilerOptions": { - "target": 2 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-router-pinia-with-tests/vite.config.ts b/playground/typescript-router-pinia-with-tests/vite.config.ts deleted file mode 100644 index 42b92136..00000000 --- a/playground/typescript-router-pinia-with-tests/vite.config.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-router-pinia/.gitignore b/playground/typescript-router-pinia/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-router-pinia/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/typescript-router-pinia/README.md b/playground/typescript-router-pinia/README.md deleted file mode 100644 index cc10bc16..00000000 --- a/playground/typescript-router-pinia/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# typescript-router-pinia - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Type Support for `.vue` Imports in TS - -Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. - -However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` diff --git a/playground/typescript-router-pinia/env.d.ts b/playground/typescript-router-pinia/env.d.ts deleted file mode 100644 index cceeec5b..00000000 --- a/playground/typescript-router-pinia/env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/playground/typescript-router-pinia/index.html b/playground/typescript-router-pinia/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-router-pinia/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-router-pinia/package.json b/playground/typescript-router-pinia/package.json deleted file mode 100644 index a751144a..00000000 --- a/playground/typescript-router-pinia/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "typescript-router-pinia", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "preview": "vite preview --port 5050", - "typecheck": "vue-tsc --noEmit" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "pinia": "^2.0.11", - "vue": "^2.6.14", - "vue-router": "^3.5.3" - }, - "devDependencies": { - "@types/node": "^16.11.25", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "typescript": "~4.7.3", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14", - "vue-tsc": "^0.37.3" - } -} diff --git a/playground/typescript-router-pinia/public/favicon.ico b/playground/typescript-router-pinia/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/typescript-router-pinia/public/favicon.ico and /dev/null differ diff --git a/playground/typescript-router-pinia/src/App.vue b/playground/typescript-router-pinia/src/App.vue deleted file mode 100644 index 1a9747c3..00000000 --- a/playground/typescript-router-pinia/src/App.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/playground/typescript-router-pinia/src/assets/base.css b/playground/typescript-router-pinia/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/typescript-router-pinia/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/typescript-router-pinia/src/assets/logo.svg b/playground/typescript-router-pinia/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-router-pinia/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-router-pinia/src/components/HelloWorld.vue b/playground/typescript-router-pinia/src/components/HelloWorld.vue deleted file mode 100644 index bf0a052f..00000000 --- a/playground/typescript-router-pinia/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-router-pinia/src/components/TheWelcome.vue b/playground/typescript-router-pinia/src/components/TheWelcome.vue deleted file mode 100644 index 51d12392..00000000 --- a/playground/typescript-router-pinia/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-router-pinia/src/components/WelcomeItem.vue b/playground/typescript-router-pinia/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-router-pinia/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-router-pinia/src/components/icons/IconCommunity.vue b/playground/typescript-router-pinia/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-router-pinia/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-pinia/src/components/icons/IconDocumentation.vue b/playground/typescript-router-pinia/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-router-pinia/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-pinia/src/components/icons/IconEcosystem.vue b/playground/typescript-router-pinia/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-router-pinia/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-pinia/src/components/icons/IconSupport.vue b/playground/typescript-router-pinia/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-router-pinia/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-pinia/src/components/icons/IconTooling.vue b/playground/typescript-router-pinia/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-router-pinia/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-router-pinia/src/main.ts b/playground/typescript-router-pinia/src/main.ts deleted file mode 100644 index 4852af6b..00000000 --- a/playground/typescript-router-pinia/src/main.ts +++ /dev/null @@ -1,17 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' -import { createPinia, PiniaVuePlugin } from 'pinia' - -import App from './App.vue' -import router from './router' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - router, - pinia: createPinia(), - render: () => h(App) -}) -app.use(PiniaVuePlugin) - -app.mount('#app') diff --git a/playground/typescript-router-pinia/src/router/index.ts b/playground/typescript-router-pinia/src/router/index.ts deleted file mode 100644 index cf9820b0..00000000 --- a/playground/typescript-router-pinia/src/router/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -import HomeView from '../views/HomeView.vue' - -Vue.use(VueRouter) - -const router = new VueRouter({ - mode: 'history', - base: import.meta.env.BASE_URL, - routes: [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/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/AboutView.vue') - } - ] -}) - -export default router diff --git a/playground/typescript-router-pinia/src/stores/counter.ts b/playground/typescript-router-pinia/src/stores/counter.ts deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/typescript-router-pinia/src/stores/counter.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore({ - id: 'counter', - state: () => ({ - counter: 0 - }), - getters: { - doubleCount: (state) => state.counter * 2 - }, - actions: { - increment() { - this.counter++ - } - } -}) diff --git a/playground/typescript-router-pinia/src/views/AboutView.vue b/playground/typescript-router-pinia/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/typescript-router-pinia/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/typescript-router-pinia/src/views/HomeView.vue b/playground/typescript-router-pinia/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/typescript-router-pinia/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-router-pinia/tsconfig.json b/playground/typescript-router-pinia/tsconfig.json deleted file mode 100644 index b884f92d..00000000 --- a/playground/typescript-router-pinia/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./", - "target": "esnext", - "useDefineForClassFields": true, - "module": "esnext", - "moduleResolution": "node", - "isolatedModules": true, - "strict": true, - "jsx": "preserve", - "sourceMap": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "paths": { - "@/*": ["src/*"] - }, - "lib": ["esnext", "dom", "dom.iterable", "scripthost"], - "skipLibCheck": true - }, - "vueCompilerOptions": { - "target": 2 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-router-pinia/vite.config.ts b/playground/typescript-router-pinia/vite.config.ts deleted file mode 100644 index 42b92136..00000000 --- a/playground/typescript-router-pinia/vite.config.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-router-with-tests/.gitignore b/playground/typescript-router-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-router-with-tests/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/typescript-router-with-tests/README.md b/playground/typescript-router-with-tests/README.md deleted file mode 100644 index 486bd2d1..00000000 --- a/playground/typescript-router-with-tests/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# typescript-router-with-tests - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Type Support for `.vue` Imports in TS - -Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. - -However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` - -### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction) - -```sh -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/cypress.json b/playground/typescript-router-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/typescript-router-with-tests/cypress.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "baseUrl": "http://localhost:5050", - "component": { - "componentFolder": "src", - "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}" - } -} diff --git a/playground/typescript-router-with-tests/cypress/fixtures/example.json b/playground/typescript-router-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/typescript-router-with-tests/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/playground/typescript-router-with-tests/cypress/integration/example.spec.ts b/playground/typescript-router-with-tests/cypress/integration/example.spec.ts deleted file mode 100644 index 13a2922b..00000000 --- a/playground/typescript-router-with-tests/cypress/integration/example.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -// https://docs.cypress.io/api/introduction/api.html - -describe('My First Test', () => { - it('visits the app root url', () => { - cy.visit('/') - cy.contains('h1', 'You did it!') - }) - - it('navigates to the about page', () => { - cy.visit('/about') - cy.contains('h1', 'This is an about page') - }) -}) diff --git a/playground/typescript-router-with-tests/cypress/plugins/index.ts b/playground/typescript-router-with-tests/cypress/plugins/index.ts deleted file mode 100644 index ad2e351d..00000000 --- a/playground/typescript-router-with-tests/cypress/plugins/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -const { startDevServer } = require('@cypress/vite-dev-server') - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on('dev-server:start', (options) => { - return startDevServer({ options }) - }) - return config -} diff --git a/playground/typescript-router-with-tests/cypress/support/commands.ts b/playground/typescript-router-with-tests/cypress/support/commands.ts deleted file mode 100644 index 119ab03f..00000000 --- a/playground/typescript-router-with-tests/cypress/support/commands.ts +++ /dev/null @@ -1,25 +0,0 @@ -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) diff --git a/playground/typescript-router-with-tests/cypress/support/index.ts b/playground/typescript-router-with-tests/cypress/support/index.ts deleted file mode 100644 index d68db96d..00000000 --- a/playground/typescript-router-with-tests/cypress/support/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') diff --git a/playground/typescript-router-with-tests/cypress/tsconfig.json b/playground/typescript-router-with-tests/cypress/tsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/typescript-router-with-tests/cypress/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], - "types": ["cypress"] - }, - "include": ["./**/*"] -} diff --git a/playground/typescript-router-with-tests/env.d.ts b/playground/typescript-router-with-tests/env.d.ts deleted file mode 100644 index cceeec5b..00000000 --- a/playground/typescript-router-with-tests/env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/playground/typescript-router-with-tests/index.html b/playground/typescript-router-with-tests/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-router-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-router-with-tests/package.json b/playground/typescript-router-with-tests/package.json deleted file mode 100644 index 86fcf4e5..00000000 --- a/playground/typescript-router-with-tests/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "typescript-router-with-tests", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "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 preview http://127.0.0.1:5050/ 'cypress open'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'", - "typecheck": "vue-tsc --noEmit" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "vue": "^2.6.14", - "vue-router": "^3.5.3" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.2", - "@cypress/vue": "^2.2.4", - "@types/node": "^16.11.25", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "cypress": "^9.5.0", - "start-server-and-test": "^1.14.0", - "typescript": "~4.7.3", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14", - "vue-tsc": "^0.37.3" - } -} diff --git a/playground/typescript-router-with-tests/public/favicon.ico b/playground/typescript-router-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/typescript-router-with-tests/public/favicon.ico and /dev/null differ diff --git a/playground/typescript-router-with-tests/src/App.vue b/playground/typescript-router-with-tests/src/App.vue deleted file mode 100644 index 1a9747c3..00000000 --- a/playground/typescript-router-with-tests/src/App.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/playground/typescript-router-with-tests/src/assets/base.css b/playground/typescript-router-with-tests/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/typescript-router-with-tests/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/typescript-router-with-tests/src/assets/logo.svg b/playground/typescript-router-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-router-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-router-with-tests/src/components/HelloWorld.vue b/playground/typescript-router-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index bf0a052f..00000000 --- a/playground/typescript-router-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-router-with-tests/src/components/TheWelcome.vue b/playground/typescript-router-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index 51d12392..00000000 --- a/playground/typescript-router-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-router-with-tests/src/components/WelcomeItem.vue b/playground/typescript-router-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-router-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-router-with-tests/src/components/__tests__/HelloWorld.spec.ts b/playground/typescript-router-with-tests/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index d6fb360b..00000000 --- a/playground/typescript-router-with-tests/src/components/__tests__/HelloWorld.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { mount } from '@cypress/vue' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('playground', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/typescript-router-with-tests/src/components/icons/IconCommunity.vue b/playground/typescript-router-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-router-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-with-tests/src/components/icons/IconDocumentation.vue b/playground/typescript-router-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-router-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-with-tests/src/components/icons/IconEcosystem.vue b/playground/typescript-router-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-router-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-with-tests/src/components/icons/IconSupport.vue b/playground/typescript-router-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-router-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router-with-tests/src/components/icons/IconTooling.vue b/playground/typescript-router-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-router-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-router-with-tests/src/main.ts b/playground/typescript-router-with-tests/src/main.ts deleted file mode 100644 index 2c19465d..00000000 --- a/playground/typescript-router-with-tests/src/main.ts +++ /dev/null @@ -1,14 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' - -import App from './App.vue' -import router from './router' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - router, - render: () => h(App) -}) - -app.mount('#app') diff --git a/playground/typescript-router-with-tests/src/router/index.ts b/playground/typescript-router-with-tests/src/router/index.ts deleted file mode 100644 index cf9820b0..00000000 --- a/playground/typescript-router-with-tests/src/router/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -import HomeView from '../views/HomeView.vue' - -Vue.use(VueRouter) - -const router = new VueRouter({ - mode: 'history', - base: import.meta.env.BASE_URL, - routes: [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/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/AboutView.vue') - } - ] -}) - -export default router diff --git a/playground/typescript-router-with-tests/src/views/AboutView.vue b/playground/typescript-router-with-tests/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/typescript-router-with-tests/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/typescript-router-with-tests/src/views/HomeView.vue b/playground/typescript-router-with-tests/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/typescript-router-with-tests/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-router-with-tests/tsconfig.json b/playground/typescript-router-with-tests/tsconfig.json deleted file mode 100644 index b884f92d..00000000 --- a/playground/typescript-router-with-tests/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./", - "target": "esnext", - "useDefineForClassFields": true, - "module": "esnext", - "moduleResolution": "node", - "isolatedModules": true, - "strict": true, - "jsx": "preserve", - "sourceMap": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "paths": { - "@/*": ["src/*"] - }, - "lib": ["esnext", "dom", "dom.iterable", "scripthost"], - "skipLibCheck": true - }, - "vueCompilerOptions": { - "target": 2 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-router-with-tests/vite.config.ts b/playground/typescript-router-with-tests/vite.config.ts deleted file mode 100644 index 42b92136..00000000 --- a/playground/typescript-router-with-tests/vite.config.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-router/.gitignore b/playground/typescript-router/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-router/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/typescript-router/README.md b/playground/typescript-router/README.md deleted file mode 100644 index c2b4a865..00000000 --- a/playground/typescript-router/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# typescript-router - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Type Support for `.vue` Imports in TS - -Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. - -However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` diff --git a/playground/typescript-router/env.d.ts b/playground/typescript-router/env.d.ts deleted file mode 100644 index cceeec5b..00000000 --- a/playground/typescript-router/env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/playground/typescript-router/index.html b/playground/typescript-router/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-router/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-router/package.json b/playground/typescript-router/package.json deleted file mode 100644 index 64909dc9..00000000 --- a/playground/typescript-router/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "typescript-router", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "preview": "vite preview --port 5050", - "typecheck": "vue-tsc --noEmit" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "vue": "^2.6.14", - "vue-router": "^3.5.3" - }, - "devDependencies": { - "@types/node": "^16.11.25", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "typescript": "~4.7.3", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14", - "vue-tsc": "^0.37.3" - } -} diff --git a/playground/typescript-router/public/favicon.ico b/playground/typescript-router/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/typescript-router/public/favicon.ico and /dev/null differ diff --git a/playground/typescript-router/src/App.vue b/playground/typescript-router/src/App.vue deleted file mode 100644 index 1a9747c3..00000000 --- a/playground/typescript-router/src/App.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/playground/typescript-router/src/assets/base.css b/playground/typescript-router/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/typescript-router/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/typescript-router/src/assets/logo.svg b/playground/typescript-router/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-router/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-router/src/components/HelloWorld.vue b/playground/typescript-router/src/components/HelloWorld.vue deleted file mode 100644 index bf0a052f..00000000 --- a/playground/typescript-router/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-router/src/components/TheWelcome.vue b/playground/typescript-router/src/components/TheWelcome.vue deleted file mode 100644 index 51d12392..00000000 --- a/playground/typescript-router/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-router/src/components/WelcomeItem.vue b/playground/typescript-router/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-router/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-router/src/components/icons/IconCommunity.vue b/playground/typescript-router/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-router/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router/src/components/icons/IconDocumentation.vue b/playground/typescript-router/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-router/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router/src/components/icons/IconEcosystem.vue b/playground/typescript-router/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-router/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router/src/components/icons/IconSupport.vue b/playground/typescript-router/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-router/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-router/src/components/icons/IconTooling.vue b/playground/typescript-router/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-router/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-router/src/main.ts b/playground/typescript-router/src/main.ts deleted file mode 100644 index 2c19465d..00000000 --- a/playground/typescript-router/src/main.ts +++ /dev/null @@ -1,14 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' - -import App from './App.vue' -import router from './router' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - router, - render: () => h(App) -}) - -app.mount('#app') diff --git a/playground/typescript-router/src/router/index.ts b/playground/typescript-router/src/router/index.ts deleted file mode 100644 index cf9820b0..00000000 --- a/playground/typescript-router/src/router/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -import HomeView from '../views/HomeView.vue' - -Vue.use(VueRouter) - -const router = new VueRouter({ - mode: 'history', - base: import.meta.env.BASE_URL, - routes: [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/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/AboutView.vue') - } - ] -}) - -export default router diff --git a/playground/typescript-router/src/views/AboutView.vue b/playground/typescript-router/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/typescript-router/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/typescript-router/src/views/HomeView.vue b/playground/typescript-router/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/typescript-router/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-router/tsconfig.json b/playground/typescript-router/tsconfig.json deleted file mode 100644 index b884f92d..00000000 --- a/playground/typescript-router/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./", - "target": "esnext", - "useDefineForClassFields": true, - "module": "esnext", - "moduleResolution": "node", - "isolatedModules": true, - "strict": true, - "jsx": "preserve", - "sourceMap": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "paths": { - "@/*": ["src/*"] - }, - "lib": ["esnext", "dom", "dom.iterable", "scripthost"], - "skipLibCheck": true - }, - "vueCompilerOptions": { - "target": 2 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-router/vite.config.ts b/playground/typescript-router/vite.config.ts deleted file mode 100644 index 42b92136..00000000 --- a/playground/typescript-router/vite.config.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-with-tests/.gitignore b/playground/typescript-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-with-tests/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/typescript-with-tests/README.md b/playground/typescript-with-tests/README.md deleted file mode 100644 index a8d2318d..00000000 --- a/playground/typescript-with-tests/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# typescript-with-tests - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Type Support for `.vue` Imports in TS - -Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. - -However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` - -### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction) - -```sh -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/cypress.json b/playground/typescript-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/typescript-with-tests/cypress.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "baseUrl": "http://localhost:5050", - "component": { - "componentFolder": "src", - "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}" - } -} diff --git a/playground/typescript-with-tests/cypress/fixtures/example.json b/playground/typescript-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/typescript-with-tests/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/playground/typescript-with-tests/cypress/integration/example.spec.ts b/playground/typescript-with-tests/cypress/integration/example.spec.ts deleted file mode 100644 index 7a8c909f..00000000 --- a/playground/typescript-with-tests/cypress/integration/example.spec.ts +++ /dev/null @@ -1,8 +0,0 @@ -// https://docs.cypress.io/api/introduction/api.html - -describe('My First Test', () => { - it('visits the app root url', () => { - cy.visit('/') - cy.contains('h1', 'You did it!') - }) -}) diff --git a/playground/typescript-with-tests/cypress/plugins/index.ts b/playground/typescript-with-tests/cypress/plugins/index.ts deleted file mode 100644 index ad2e351d..00000000 --- a/playground/typescript-with-tests/cypress/plugins/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -const { startDevServer } = require('@cypress/vite-dev-server') - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on('dev-server:start', (options) => { - return startDevServer({ options }) - }) - return config -} diff --git a/playground/typescript-with-tests/cypress/support/commands.ts b/playground/typescript-with-tests/cypress/support/commands.ts deleted file mode 100644 index 119ab03f..00000000 --- a/playground/typescript-with-tests/cypress/support/commands.ts +++ /dev/null @@ -1,25 +0,0 @@ -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) diff --git a/playground/typescript-with-tests/cypress/support/index.ts b/playground/typescript-with-tests/cypress/support/index.ts deleted file mode 100644 index d68db96d..00000000 --- a/playground/typescript-with-tests/cypress/support/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') diff --git a/playground/typescript-with-tests/cypress/tsconfig.json b/playground/typescript-with-tests/cypress/tsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/typescript-with-tests/cypress/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], - "types": ["cypress"] - }, - "include": ["./**/*"] -} diff --git a/playground/typescript-with-tests/env.d.ts b/playground/typescript-with-tests/env.d.ts deleted file mode 100644 index cceeec5b..00000000 --- a/playground/typescript-with-tests/env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/playground/typescript-with-tests/index.html b/playground/typescript-with-tests/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-with-tests/package.json b/playground/typescript-with-tests/package.json deleted file mode 100644 index aa476b23..00000000 --- a/playground/typescript-with-tests/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "typescript-with-tests", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "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 preview http://127.0.0.1:5050/ 'cypress open'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'", - "typecheck": "vue-tsc --noEmit" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "vue": "^2.6.14" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.2", - "@cypress/vue": "^2.2.4", - "@types/node": "^16.11.25", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "cypress": "^9.5.0", - "start-server-and-test": "^1.14.0", - "typescript": "~4.7.3", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14", - "vue-tsc": "^0.37.3" - } -} diff --git a/playground/typescript-with-tests/public/favicon.ico b/playground/typescript-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/typescript-with-tests/public/favicon.ico and /dev/null differ diff --git a/playground/typescript-with-tests/src/App.vue b/playground/typescript-with-tests/src/App.vue deleted file mode 100644 index 794bc449..00000000 --- a/playground/typescript-with-tests/src/App.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/playground/typescript-with-tests/src/assets/base.css b/playground/typescript-with-tests/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/typescript-with-tests/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/typescript-with-tests/src/assets/logo.svg b/playground/typescript-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-with-tests/src/components/HelloWorld.vue b/playground/typescript-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index 624fb3e0..00000000 --- a/playground/typescript-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-with-tests/src/components/TheWelcome.vue b/playground/typescript-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index 51d12392..00000000 --- a/playground/typescript-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-with-tests/src/components/WelcomeItem.vue b/playground/typescript-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-with-tests/src/components/__tests__/HelloWorld.spec.ts b/playground/typescript-with-tests/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index d6fb360b..00000000 --- a/playground/typescript-with-tests/src/components/__tests__/HelloWorld.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { mount } from '@cypress/vue' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('playground', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/typescript-with-tests/src/components/icons/IconCommunity.vue b/playground/typescript-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-with-tests/src/components/icons/IconDocumentation.vue b/playground/typescript-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-with-tests/src/components/icons/IconEcosystem.vue b/playground/typescript-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-with-tests/src/components/icons/IconSupport.vue b/playground/typescript-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-with-tests/src/components/icons/IconTooling.vue b/playground/typescript-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-with-tests/src/main.ts b/playground/typescript-with-tests/src/main.ts deleted file mode 100644 index f201f697..00000000 --- a/playground/typescript-with-tests/src/main.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' - -import App from './App.vue' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - render: () => h(App) -}) - -app.mount('#app') diff --git a/playground/typescript-with-tests/tsconfig.json b/playground/typescript-with-tests/tsconfig.json deleted file mode 100644 index b884f92d..00000000 --- a/playground/typescript-with-tests/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./", - "target": "esnext", - "useDefineForClassFields": true, - "module": "esnext", - "moduleResolution": "node", - "isolatedModules": true, - "strict": true, - "jsx": "preserve", - "sourceMap": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "paths": { - "@/*": ["src/*"] - }, - "lib": ["esnext", "dom", "dom.iterable", "scripthost"], - "skipLibCheck": true - }, - "vueCompilerOptions": { - "target": 2 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-with-tests/vite.config.ts b/playground/typescript-with-tests/vite.config.ts deleted file mode 100644 index 42b92136..00000000 --- a/playground/typescript-with-tests/vite.config.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript/.gitignore b/playground/typescript/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/typescript/README.md b/playground/typescript/README.md deleted file mode 100644 index 2745fb29..00000000 --- a/playground/typescript/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# typescript - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Type Support for `.vue` Imports in TS - -Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. - -However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` diff --git a/playground/typescript/env.d.ts b/playground/typescript/env.d.ts deleted file mode 100644 index cceeec5b..00000000 --- a/playground/typescript/env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/playground/typescript/index.html b/playground/typescript/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript/package.json b/playground/typescript/package.json deleted file mode 100644 index 642d4b99..00000000 --- a/playground/typescript/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "typescript", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "preview": "vite preview --port 5050", - "typecheck": "vue-tsc --noEmit" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "vue": "^2.6.14" - }, - "devDependencies": { - "@types/node": "^16.11.25", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "typescript": "~4.7.3", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14", - "vue-tsc": "^0.37.3" - } -} diff --git a/playground/typescript/public/favicon.ico b/playground/typescript/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/typescript/public/favicon.ico and /dev/null differ diff --git a/playground/typescript/src/App.vue b/playground/typescript/src/App.vue deleted file mode 100644 index 794bc449..00000000 --- a/playground/typescript/src/App.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/playground/typescript/src/assets/base.css b/playground/typescript/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/typescript/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/typescript/src/assets/logo.svg b/playground/typescript/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript/src/components/HelloWorld.vue b/playground/typescript/src/components/HelloWorld.vue deleted file mode 100644 index 624fb3e0..00000000 --- a/playground/typescript/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript/src/components/TheWelcome.vue b/playground/typescript/src/components/TheWelcome.vue deleted file mode 100644 index 51d12392..00000000 --- a/playground/typescript/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript/src/components/WelcomeItem.vue b/playground/typescript/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript/src/components/icons/IconCommunity.vue b/playground/typescript/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript/src/components/icons/IconDocumentation.vue b/playground/typescript/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript/src/components/icons/IconEcosystem.vue b/playground/typescript/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript/src/components/icons/IconSupport.vue b/playground/typescript/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript/src/components/icons/IconTooling.vue b/playground/typescript/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript/src/main.ts b/playground/typescript/src/main.ts deleted file mode 100644 index f201f697..00000000 --- a/playground/typescript/src/main.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' - -import App from './App.vue' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - render: () => h(App) -}) - -app.mount('#app') diff --git a/playground/typescript/tsconfig.json b/playground/typescript/tsconfig.json deleted file mode 100644 index b884f92d..00000000 --- a/playground/typescript/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./", - "target": "esnext", - "useDefineForClassFields": true, - "module": "esnext", - "moduleResolution": "node", - "isolatedModules": true, - "strict": true, - "jsx": "preserve", - "sourceMap": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "paths": { - "@/*": ["src/*"] - }, - "lib": ["esnext", "dom", "dom.iterable", "scripthost"], - "skipLibCheck": true - }, - "vueCompilerOptions": { - "target": 2 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript/vite.config.ts b/playground/typescript/vite.config.ts deleted file mode 100644 index 42b92136..00000000 --- a/playground/typescript/vite.config.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/with-tests/.gitignore b/playground/with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/with-tests/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/playground/with-tests/README.md b/playground/with-tests/README.md deleted file mode 100644 index fa69ac2b..00000000 --- a/playground/with-tests/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# with-tests - -This template should help get you started developing with Vue 2 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur). - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Compile and Minify for Production - -```sh -pnpm build -``` - -### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction) - -```sh -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/cypress.json b/playground/with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/with-tests/cypress.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "baseUrl": "http://localhost:5050", - "component": { - "componentFolder": "src", - "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}" - } -} diff --git a/playground/with-tests/cypress/fixtures/example.json b/playground/with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/with-tests/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/playground/with-tests/cypress/integration/example.spec.js b/playground/with-tests/cypress/integration/example.spec.js deleted file mode 100644 index 7a8c909f..00000000 --- a/playground/with-tests/cypress/integration/example.spec.js +++ /dev/null @@ -1,8 +0,0 @@ -// https://docs.cypress.io/api/introduction/api.html - -describe('My First Test', () => { - it('visits the app root url', () => { - cy.visit('/') - cy.contains('h1', 'You did it!') - }) -}) diff --git a/playground/with-tests/cypress/jsconfig.json b/playground/with-tests/cypress/jsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/with-tests/cypress/jsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], - "types": ["cypress"] - }, - "include": ["./**/*"] -} diff --git a/playground/with-tests/cypress/plugins/index.js b/playground/with-tests/cypress/plugins/index.js deleted file mode 100644 index ad2e351d..00000000 --- a/playground/with-tests/cypress/plugins/index.js +++ /dev/null @@ -1,28 +0,0 @@ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -const { startDevServer } = require('@cypress/vite-dev-server') - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on('dev-server:start', (options) => { - return startDevServer({ options }) - }) - return config -} diff --git a/playground/with-tests/cypress/support/commands.js b/playground/with-tests/cypress/support/commands.js deleted file mode 100644 index 119ab03f..00000000 --- a/playground/with-tests/cypress/support/commands.js +++ /dev/null @@ -1,25 +0,0 @@ -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) diff --git a/playground/with-tests/cypress/support/index.js b/playground/with-tests/cypress/support/index.js deleted file mode 100644 index d68db96d..00000000 --- a/playground/with-tests/cypress/support/index.js +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') diff --git a/playground/with-tests/index.html b/playground/with-tests/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/with-tests/package.json b/playground/with-tests/package.json deleted file mode 100644 index 3a7b2edd..00000000 --- a/playground/with-tests/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "with-tests", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "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 preview http://127.0.0.1:5050/ 'cypress open'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'" - }, - "dependencies": { - "@vue/composition-api": "^1.4.6", - "vue": "^2.6.14" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.2", - "@cypress/vue": "^2.2.4", - "@vitejs/plugin-legacy": "^1.7.1", - "@vue/runtime-dom": "^3.2.31", - "cypress": "^9.5.0", - "start-server-and-test": "^1.14.0", - "unplugin-vue2-script-setup": "^0.9.3", - "vite": "^2.8.4", - "vite-plugin-vue2": "^1.9.3", - "vue-template-babel-compiler": "^1.2.0", - "vue-template-compiler": "^2.6.14" - } -} diff --git a/playground/with-tests/public/favicon.ico b/playground/with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/playground/with-tests/public/favicon.ico and /dev/null differ diff --git a/playground/with-tests/src/App.vue b/playground/with-tests/src/App.vue deleted file mode 100644 index 099c613b..00000000 --- a/playground/with-tests/src/App.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/playground/with-tests/src/assets/base.css b/playground/with-tests/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/with-tests/src/assets/base.css +++ /dev/null @@ -1,74 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - position: relative; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/playground/with-tests/src/assets/logo.svg b/playground/with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/with-tests/src/components/HelloWorld.vue b/playground/with-tests/src/components/HelloWorld.vue deleted file mode 100644 index de8b576a..00000000 --- a/playground/with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/with-tests/src/components/TheWelcome.vue b/playground/with-tests/src/components/TheWelcome.vue deleted file mode 100644 index cccc38ef..00000000 --- a/playground/with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/with-tests/src/components/WelcomeItem.vue b/playground/with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/with-tests/src/components/__tests__/HelloWorld.spec.js b/playground/with-tests/src/components/__tests__/HelloWorld.spec.js deleted file mode 100644 index d6fb360b..00000000 --- a/playground/with-tests/src/components/__tests__/HelloWorld.spec.js +++ /dev/null @@ -1,13 +0,0 @@ -import { mount } from '@cypress/vue' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('playground', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/with-tests/src/components/icons/IconCommunity.vue b/playground/with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/with-tests/src/components/icons/IconDocumentation.vue b/playground/with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/with-tests/src/components/icons/IconEcosystem.vue b/playground/with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/with-tests/src/components/icons/IconSupport.vue b/playground/with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/with-tests/src/components/icons/IconTooling.vue b/playground/with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/with-tests/src/main.js b/playground/with-tests/src/main.js deleted file mode 100644 index f201f697..00000000 --- a/playground/with-tests/src/main.js +++ /dev/null @@ -1,12 +0,0 @@ -import Vue from 'vue' -import VueCompositionAPI, { createApp, h } from '@vue/composition-api' - -import App from './App.vue' - -Vue.use(VueCompositionAPI) - -const app = createApp({ - render: () => h(App) -}) - -app.mount('#app') diff --git a/playground/with-tests/vite.config.js b/playground/with-tests/vite.config.js deleted file mode 100644 index 42b92136..00000000 --- a/playground/with-tests/vite.config.js +++ /dev/null @@ -1,30 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' -import { createVuePlugin as vue2 } from 'vite-plugin-vue2' -// @ts-ignore -import vueTemplateBabelCompiler from 'vue-template-babel-compiler' -import scriptSetup from 'unplugin-vue2-script-setup/vite' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue2({ - jsx: true, - vueTemplateOptions: { - compiler: vueTemplateBabelCompiler - } - }), - scriptSetup(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -})