From 0c21e02faaa19338fb0e87a5aeb3fbd370859017 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 29 Nov 2021 22:06:07 +0800 Subject: [PATCH] feat: preliminary support for Vue 2 --- index.js | 17 +- playground/default/package.json | 10 +- playground/default/src/App.vue | 20 +- .../default/src/components/HelloWorld.vue | 2 +- .../default/src/components/TheWelcome.vue | 126 +- playground/default/src/main.js | 12 +- playground/default/vite.config.js | 10 +- playground/jsx-pinia-with-tests/.gitignore | 27 - playground/jsx-pinia-with-tests/README.md | 42 - playground/jsx-pinia-with-tests/cypress.json | 7 - .../cypress/fixtures/example.json | 5 - .../cypress/integration/example.spec.js | 8 - .../cypress/jsconfig.json | 8 - .../cypress/plugins/index.js | 28 - .../cypress/support/commands.js | 25 - .../cypress/support/index.js | 20 - playground/jsx-pinia-with-tests/index.html | 13 - playground/jsx-pinia-with-tests/package.json | 26 - .../jsx-pinia-with-tests/public/favicon.ico | Bin 4286 -> 0 bytes playground/jsx-pinia-with-tests/src/App.vue | 81 - .../jsx-pinia-with-tests/src/assets/base.css | 74 - .../jsx-pinia-with-tests/src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 44 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../components/__tests__/HelloWorld.spec.js | 13 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - playground/jsx-pinia-with-tests/src/main.js | 9 - .../src/stores/counter.js | 16 - .../jsx-pinia-with-tests/vite.config.js | 15 - playground/jsx-pinia/.gitignore | 27 - playground/jsx-pinia/README.md | 29 - playground/jsx-pinia/index.html | 13 - playground/jsx-pinia/package.json | 18 - playground/jsx-pinia/public/favicon.ico | Bin 4286 -> 0 bytes playground/jsx-pinia/src/App.vue | 81 - playground/jsx-pinia/src/assets/base.css | 74 - playground/jsx-pinia/src/assets/logo.svg | 1 - .../jsx-pinia/src/components/HelloWorld.vue | 44 - .../jsx-pinia/src/components/TheWelcome.vue | 84 - .../jsx-pinia/src/components/WelcomeItem.vue | 86 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - playground/jsx-pinia/src/main.js | 9 - playground/jsx-pinia/src/stores/counter.js | 16 - playground/jsx-pinia/vite.config.js | 15 - .../jsx-router-pinia-with-tests/.gitignore | 27 - .../jsx-router-pinia-with-tests/README.md | 42 - .../jsx-router-pinia-with-tests/cypress.json | 7 - .../cypress/fixtures/example.json | 5 - .../cypress/integration/example.spec.js | 13 - .../cypress/jsconfig.json | 8 - .../cypress/plugins/index.js | 28 - .../cypress/support/commands.js | 25 - .../cypress/support/index.js | 20 - .../jsx-router-pinia-with-tests/index.html | 13 - .../jsx-router-pinia-with-tests/package.json | 27 - .../public/favicon.ico | Bin 4286 -> 0 bytes .../jsx-router-pinia-with-tests/src/App.vue | 118 - .../src/assets/base.css | 74 - .../src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 44 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../components/__tests__/HelloWorld.spec.js | 13 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - .../jsx-router-pinia-with-tests/src/main.js | 12 - .../src/router/index.js | 23 - .../src/stores/counter.js | 16 - .../src/views/AboutView.vue | 15 - .../src/views/HomeView.vue | 9 - .../vite.config.js | 15 - playground/jsx-router-pinia/.gitignore | 27 - playground/jsx-router-pinia/README.md | 29 - playground/jsx-router-pinia/index.html | 13 - playground/jsx-router-pinia/package.json | 19 - .../jsx-router-pinia/public/favicon.ico | Bin 4286 -> 0 bytes playground/jsx-router-pinia/src/App.vue | 118 - .../jsx-router-pinia/src/assets/base.css | 74 - .../jsx-router-pinia/src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 44 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - playground/jsx-router-pinia/src/main.js | 12 - .../jsx-router-pinia/src/router/index.js | 23 - .../jsx-router-pinia/src/stores/counter.js | 16 - .../jsx-router-pinia/src/views/AboutView.vue | 15 - .../jsx-router-pinia/src/views/HomeView.vue | 9 - playground/jsx-router-pinia/vite.config.js | 15 - playground/jsx-router-with-tests/.gitignore | 27 - playground/jsx-router-with-tests/README.md | 42 - playground/jsx-router-with-tests/cypress.json | 7 - .../cypress/fixtures/example.json | 5 - .../cypress/integration/example.spec.js | 13 - .../cypress/jsconfig.json | 8 - .../cypress/plugins/index.js | 28 - .../cypress/support/commands.js | 25 - .../cypress/support/index.js | 20 - playground/jsx-router-with-tests/index.html | 13 - playground/jsx-router-with-tests/package.json | 26 - .../jsx-router-with-tests/public/favicon.ico | Bin 4286 -> 0 bytes playground/jsx-router-with-tests/src/App.vue | 118 - .../jsx-router-with-tests/src/assets/base.css | 74 - .../jsx-router-with-tests/src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 44 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../components/__tests__/HelloWorld.spec.js | 13 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - playground/jsx-router-with-tests/src/main.js | 9 - .../jsx-router-with-tests/src/router/index.js | 23 - .../src/views/AboutView.vue | 15 - .../src/views/HomeView.vue | 9 - .../jsx-router-with-tests/vite.config.js | 15 - playground/jsx-router/.gitignore | 27 - playground/jsx-router/README.md | 29 - playground/jsx-router/index.html | 13 - playground/jsx-router/package.json | 18 - playground/jsx-router/public/favicon.ico | Bin 4286 -> 0 bytes playground/jsx-router/src/App.vue | 118 - playground/jsx-router/src/assets/base.css | 74 - playground/jsx-router/src/assets/logo.svg | 1 - .../jsx-router/src/components/HelloWorld.vue | 44 - .../jsx-router/src/components/TheWelcome.vue | 84 - .../jsx-router/src/components/WelcomeItem.vue | 86 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - playground/jsx-router/src/main.js | 9 - playground/jsx-router/src/router/index.js | 23 - playground/jsx-router/src/views/AboutView.vue | 15 - playground/jsx-router/src/views/HomeView.vue | 9 - playground/jsx-router/vite.config.js | 15 - playground/jsx-with-tests/.gitignore | 27 - playground/jsx-with-tests/README.md | 42 - playground/jsx-with-tests/cypress.json | 7 - .../cypress/fixtures/example.json | 5 - .../cypress/integration/example.spec.js | 8 - .../jsx-with-tests/cypress/jsconfig.json | 8 - .../jsx-with-tests/cypress/plugins/index.js | 28 - .../cypress/support/commands.js | 25 - .../jsx-with-tests/cypress/support/index.js | 20 - playground/jsx-with-tests/index.html | 13 - playground/jsx-with-tests/package.json | 25 - playground/jsx-with-tests/public/favicon.ico | Bin 4286 -> 0 bytes playground/jsx-with-tests/src/App.vue | 81 - playground/jsx-with-tests/src/assets/base.css | 74 - playground/jsx-with-tests/src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 44 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../components/__tests__/HelloWorld.spec.js | 13 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - playground/jsx-with-tests/src/main.js | 4 - playground/jsx-with-tests/vite.config.js | 15 - playground/jsx/.gitignore | 27 - playground/jsx/README.md | 29 - playground/jsx/index.html | 13 - playground/jsx/package.json | 17 - playground/jsx/public/favicon.ico | Bin 4286 -> 0 bytes playground/jsx/src/App.vue | 81 - playground/jsx/src/assets/base.css | 74 - playground/jsx/src/assets/logo.svg | 1 - playground/jsx/src/components/HelloWorld.vue | 44 - playground/jsx/src/components/TheWelcome.vue | 84 - playground/jsx/src/components/WelcomeItem.vue | 86 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../jsx/src/components/icons/IconSupport.vue | 7 - .../jsx/src/components/icons/IconTooling.vue | 19 - playground/jsx/src/main.js | 4 - playground/jsx/vite.config.js | 15 - playground/pinia-with-tests/package.json | 12 +- playground/pinia-with-tests/src/App.vue | 20 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.js | 4 +- playground/pinia-with-tests/src/main.js | 16 +- playground/pinia-with-tests/vite.config.js | 10 +- playground/pinia/package.json | 10 +- playground/pinia/src/App.vue | 20 +- .../pinia/src/components/HelloWorld.vue | 2 +- .../pinia/src/components/TheWelcome.vue | 126 +- playground/pinia/src/main.js | 16 +- playground/pinia/vite.config.js | 10 +- .../router-pinia-with-tests/package.json | 14 +- .../router-pinia-with-tests/src/App.vue | 30 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.js | 4 +- .../router-pinia-with-tests/src/main.js | 17 +- .../src/router/index.js | 10 +- .../router-pinia-with-tests/vite.config.js | 10 +- playground/router-pinia/package.json | 12 +- playground/router-pinia/src/App.vue | 30 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- playground/router-pinia/src/main.js | 17 +- playground/router-pinia/src/router/index.js | 10 +- playground/router-pinia/vite.config.js | 10 +- playground/router-with-tests/package.json | 14 +- playground/router-with-tests/src/App.vue | 30 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.js | 4 +- playground/router-with-tests/src/main.js | 13 +- .../router-with-tests/src/router/index.js | 10 +- playground/router-with-tests/vite.config.js | 10 +- playground/router/package.json | 12 +- playground/router/src/App.vue | 30 +- .../router/src/components/HelloWorld.vue | 2 +- .../router/src/components/TheWelcome.vue | 126 +- playground/router/src/main.js | 13 +- playground/router/src/router/index.js | 10 +- playground/router/vite.config.js | 10 +- .../.gitignore | 27 - .../typescript-jsx-pinia-with-tests/README.md | 48 - .../cypress.json | 7 - .../cypress/fixtures/example.json | 5 - .../cypress/integration/example.spec.ts | 8 - .../cypress/plugins/index.ts | 28 - .../cypress/support/commands.ts | 25 - .../cypress/support/index.ts | 20 - .../cypress/tsconfig.json | 8 - .../typescript-jsx-pinia-with-tests/env.d.ts | 8 - .../index.html | 13 - .../package.json | 30 - .../public/favicon.ico | Bin 4286 -> 0 bytes .../src/App.vue | 81 - .../src/assets/base.css | 74 - .../src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 41 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../components/__tests__/HelloWorld.spec.ts | 13 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - .../src/main.ts | 9 - .../src/stores/counter.ts | 16 - .../tsconfig.json | 21 - .../vite.config.ts | 15 - playground/typescript-jsx-pinia/.gitignore | 27 - playground/typescript-jsx-pinia/README.md | 35 - playground/typescript-jsx-pinia/env.d.ts | 8 - playground/typescript-jsx-pinia/index.html | 13 - playground/typescript-jsx-pinia/package.json | 22 - .../typescript-jsx-pinia/public/favicon.ico | Bin 4286 -> 0 bytes playground/typescript-jsx-pinia/src/App.vue | 81 - .../typescript-jsx-pinia/src/assets/base.css | 74 - .../typescript-jsx-pinia/src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 41 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - playground/typescript-jsx-pinia/src/main.ts | 9 - .../src/stores/counter.ts | 16 - playground/typescript-jsx-pinia/tsconfig.json | 21 - .../typescript-jsx-pinia/vite.config.ts | 15 - .../.gitignore | 27 - .../README.md | 48 - .../cypress.json | 7 - .../cypress/fixtures/example.json | 5 - .../cypress/integration/example.spec.ts | 13 - .../cypress/plugins/index.ts | 28 - .../cypress/support/commands.ts | 25 - .../cypress/support/index.ts | 20 - .../cypress/tsconfig.json | 8 - .../env.d.ts | 8 - .../index.html | 13 - .../package.json | 31 - .../public/favicon.ico | Bin 4286 -> 0 bytes .../src/App.vue | 118 - .../src/assets/base.css | 74 - .../src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 41 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../components/__tests__/HelloWorld.spec.ts | 13 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - .../src/main.ts | 12 - .../src/router/index.ts | 23 - .../src/stores/counter.ts | 16 - .../src/views/AboutView.vue | 15 - .../src/views/HomeView.vue | 9 - .../tsconfig.json | 21 - .../vite.config.ts | 15 - .../typescript-jsx-router-pinia/.gitignore | 27 - .../typescript-jsx-router-pinia/README.md | 35 - .../typescript-jsx-router-pinia/env.d.ts | 8 - .../typescript-jsx-router-pinia/index.html | 13 - .../typescript-jsx-router-pinia/package.json | 23 - .../public/favicon.ico | Bin 4286 -> 0 bytes .../typescript-jsx-router-pinia/src/App.vue | 118 - .../src/assets/base.css | 74 - .../src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 41 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - .../typescript-jsx-router-pinia/src/main.ts | 12 - .../src/router/index.ts | 23 - .../src/stores/counter.ts | 16 - .../src/views/AboutView.vue | 15 - .../src/views/HomeView.vue | 9 - .../typescript-jsx-router-pinia/tsconfig.json | 21 - .../vite.config.ts | 15 - .../.gitignore | 27 - .../README.md | 48 - .../cypress.json | 7 - .../cypress/fixtures/example.json | 5 - .../cypress/integration/example.spec.ts | 13 - .../cypress/plugins/index.ts | 28 - .../cypress/support/commands.ts | 25 - .../cypress/support/index.ts | 20 - .../cypress/tsconfig.json | 8 - .../typescript-jsx-router-with-tests/env.d.ts | 8 - .../index.html | 13 - .../package.json | 30 - .../public/favicon.ico | Bin 4286 -> 0 bytes .../src/App.vue | 118 - .../src/assets/base.css | 74 - .../src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 41 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../components/__tests__/HelloWorld.spec.ts | 13 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - .../src/main.ts | 9 - .../src/router/index.ts | 23 - .../src/views/AboutView.vue | 15 - .../src/views/HomeView.vue | 9 - .../tsconfig.json | 21 - .../vite.config.ts | 15 - playground/typescript-jsx-router/.gitignore | 27 - playground/typescript-jsx-router/README.md | 35 - playground/typescript-jsx-router/env.d.ts | 8 - playground/typescript-jsx-router/index.html | 13 - playground/typescript-jsx-router/package.json | 22 - .../typescript-jsx-router/public/favicon.ico | Bin 4286 -> 0 bytes playground/typescript-jsx-router/src/App.vue | 118 - .../typescript-jsx-router/src/assets/base.css | 74 - .../typescript-jsx-router/src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 41 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - playground/typescript-jsx-router/src/main.ts | 9 - .../typescript-jsx-router/src/router/index.ts | 23 - .../src/views/AboutView.vue | 15 - .../src/views/HomeView.vue | 9 - .../typescript-jsx-router/tsconfig.json | 21 - .../typescript-jsx-router/vite.config.ts | 15 - .../typescript-jsx-with-tests/.gitignore | 27 - .../typescript-jsx-with-tests/README.md | 48 - .../typescript-jsx-with-tests/cypress.json | 7 - .../cypress/fixtures/example.json | 5 - .../cypress/integration/example.spec.ts | 8 - .../cypress/plugins/index.ts | 28 - .../cypress/support/commands.ts | 25 - .../cypress/support/index.ts | 20 - .../cypress/tsconfig.json | 8 - playground/typescript-jsx-with-tests/env.d.ts | 8 - .../typescript-jsx-with-tests/index.html | 13 - .../typescript-jsx-with-tests/package.json | 29 - .../public/favicon.ico | Bin 4286 -> 0 bytes .../typescript-jsx-with-tests/src/App.vue | 81 - .../src/assets/base.css | 74 - .../src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 41 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../components/__tests__/HelloWorld.spec.ts | 13 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - .../typescript-jsx-with-tests/src/main.ts | 4 - .../typescript-jsx-with-tests/tsconfig.json | 21 - .../typescript-jsx-with-tests/vite.config.ts | 15 - playground/typescript-jsx/.gitignore | 27 - playground/typescript-jsx/README.md | 35 - playground/typescript-jsx/env.d.ts | 8 - playground/typescript-jsx/index.html | 13 - playground/typescript-jsx/package.json | 21 - playground/typescript-jsx/public/favicon.ico | Bin 4286 -> 0 bytes playground/typescript-jsx/src/App.vue | 81 - playground/typescript-jsx/src/assets/base.css | 74 - playground/typescript-jsx/src/assets/logo.svg | 1 - .../src/components/HelloWorld.vue | 41 - .../src/components/TheWelcome.vue | 84 - .../src/components/WelcomeItem.vue | 86 - .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - playground/typescript-jsx/src/main.ts | 4 - playground/typescript-jsx/tsconfig.json | 21 - playground/typescript-jsx/vite.config.ts | 15 - .../typescript-pinia-with-tests/env.d.ts | 16 +- .../typescript-pinia-with-tests/package.json | 10 +- .../typescript-pinia-with-tests/src/App.vue | 20 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.ts | 4 +- .../typescript-pinia-with-tests/src/main.ts | 16 +- .../typescript-pinia-with-tests/tsconfig.json | 3 + .../vite.config.ts | 10 +- playground/typescript-pinia/env.d.ts | 16 +- playground/typescript-pinia/package.json | 8 +- playground/typescript-pinia/src/App.vue | 20 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- playground/typescript-pinia/src/main.ts | 16 +- playground/typescript-pinia/tsconfig.json | 3 + playground/typescript-pinia/vite.config.ts | 10 +- .../env.d.ts | 16 +- .../package.json | 12 +- .../src/App.vue | 30 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.ts | 4 +- .../src/main.ts | 17 +- .../src/router/index.ts | 10 +- .../tsconfig.json | 3 + .../vite.config.ts | 10 +- playground/typescript-router-pinia/env.d.ts | 16 +- .../typescript-router-pinia/package.json | 10 +- .../typescript-router-pinia/src/App.vue | 30 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- .../typescript-router-pinia/src/main.ts | 17 +- .../src/router/index.ts | 10 +- .../typescript-router-pinia/tsconfig.json | 3 + .../typescript-router-pinia/vite.config.ts | 10 +- .../typescript-router-with-tests/env.d.ts | 16 +- .../typescript-router-with-tests/package.json | 12 +- .../typescript-router-with-tests/src/App.vue | 30 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.ts | 4 +- .../typescript-router-with-tests/src/main.ts | 13 +- .../src/router/index.ts | 10 +- .../tsconfig.json | 3 + .../vite.config.ts | 10 +- playground/typescript-router/env.d.ts | 16 +- playground/typescript-router/package.json | 10 +- playground/typescript-router/src/App.vue | 30 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- playground/typescript-router/src/main.ts | 13 +- .../typescript-router/src/router/index.ts | 10 +- playground/typescript-router/tsconfig.json | 3 + playground/typescript-router/vite.config.ts | 10 +- playground/typescript-with-tests/env.d.ts | 16 +- playground/typescript-with-tests/package.json | 10 +- playground/typescript-with-tests/src/App.vue | 20 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.ts | 4 +- playground/typescript-with-tests/src/main.ts | 12 +- .../typescript-with-tests/tsconfig.json | 3 + .../typescript-with-tests/vite.config.ts | 10 +- playground/typescript/env.d.ts | 16 +- playground/typescript/package.json | 8 +- playground/typescript/src/App.vue | 20 +- .../typescript/src/components/HelloWorld.vue | 2 +- .../typescript/src/components/TheWelcome.vue | 126 +- playground/typescript/src/main.ts | 12 +- playground/typescript/tsconfig.json | 3 + playground/typescript/vite.config.ts | 10 +- playground/with-tests/package.json | 12 +- playground/with-tests/src/App.vue | 20 +- .../with-tests/src/components/HelloWorld.vue | 2 +- .../with-tests/src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.js | 4 +- playground/with-tests/src/main.js | 12 +- playground/with-tests/vite.config.js | 10 +- pnpm-lock.yaml | 1911 ++++++++++++----- snapshot.js | 2 +- template/base/package.json | 10 +- template/base/vite.config.js | 10 +- template/code/default/src/App.vue | 20 +- .../default/src/components/HelloWorld.vue | 2 +- .../default/src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.js | 4 +- template/code/router/src/App.vue | 30 +- .../code/router/src/components/HelloWorld.vue | 2 +- .../code/router/src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.js | 4 +- template/code/router/src/router/index.js | 10 +- template/code/typescript-default/src/App.vue | 20 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.ts | 4 +- template/code/typescript-router/src/App.vue | 30 +- .../src/components/HelloWorld.vue | 2 +- .../src/components/TheWelcome.vue | 126 +- .../components/__tests__/HelloWorld.spec.ts | 4 +- template/code/typescript-router/src/main.ts | 9 - .../typescript-router/src/router/index.ts | 10 +- template/config/cypress/package.json | 2 +- template/config/jsx/package.json | 5 - template/config/jsx/vite.config.js | 15 - template/config/router/package.json | 2 +- template/config/typescript/env.d.ts | 16 +- template/config/typescript/tsconfig.json | 3 + template/config/vuex/package.json | 5 - template/config/vuex/src/store/index.js | 8 - template/entry/default/src/main.js | 12 +- template/entry/pinia/src/main.js | 16 +- template/entry/router-and-pinia/src/main.js | 17 +- template/entry/router/src/main.js | 13 +- utils/generateReadme.js | 2 +- 565 files changed, 3591 insertions(+), 13040 deletions(-) delete mode 100644 playground/jsx-pinia-with-tests/.gitignore delete mode 100644 playground/jsx-pinia-with-tests/README.md delete mode 100644 playground/jsx-pinia-with-tests/cypress.json delete mode 100644 playground/jsx-pinia-with-tests/cypress/fixtures/example.json delete mode 100644 playground/jsx-pinia-with-tests/cypress/integration/example.spec.js delete mode 100644 playground/jsx-pinia-with-tests/cypress/jsconfig.json delete mode 100644 playground/jsx-pinia-with-tests/cypress/plugins/index.js delete mode 100644 playground/jsx-pinia-with-tests/cypress/support/commands.js delete mode 100644 playground/jsx-pinia-with-tests/cypress/support/index.js delete mode 100644 playground/jsx-pinia-with-tests/index.html delete mode 100644 playground/jsx-pinia-with-tests/package.json delete mode 100644 playground/jsx-pinia-with-tests/public/favicon.ico delete mode 100644 playground/jsx-pinia-with-tests/src/App.vue delete mode 100644 playground/jsx-pinia-with-tests/src/assets/base.css delete mode 100644 playground/jsx-pinia-with-tests/src/assets/logo.svg delete mode 100644 playground/jsx-pinia-with-tests/src/components/HelloWorld.vue delete mode 100644 playground/jsx-pinia-with-tests/src/components/TheWelcome.vue delete mode 100644 playground/jsx-pinia-with-tests/src/components/WelcomeItem.vue delete mode 100644 playground/jsx-pinia-with-tests/src/components/__tests__/HelloWorld.spec.js delete mode 100644 playground/jsx-pinia-with-tests/src/components/icons/IconCommunity.vue delete mode 100644 playground/jsx-pinia-with-tests/src/components/icons/IconDocumentation.vue delete mode 100644 playground/jsx-pinia-with-tests/src/components/icons/IconEcosystem.vue delete mode 100644 playground/jsx-pinia-with-tests/src/components/icons/IconSupport.vue delete mode 100644 playground/jsx-pinia-with-tests/src/components/icons/IconTooling.vue delete mode 100644 playground/jsx-pinia-with-tests/src/main.js delete mode 100644 playground/jsx-pinia-with-tests/src/stores/counter.js delete mode 100644 playground/jsx-pinia-with-tests/vite.config.js delete mode 100644 playground/jsx-pinia/.gitignore delete mode 100644 playground/jsx-pinia/README.md delete mode 100644 playground/jsx-pinia/index.html delete mode 100644 playground/jsx-pinia/package.json delete mode 100644 playground/jsx-pinia/public/favicon.ico delete mode 100644 playground/jsx-pinia/src/App.vue delete mode 100644 playground/jsx-pinia/src/assets/base.css delete mode 100644 playground/jsx-pinia/src/assets/logo.svg delete mode 100644 playground/jsx-pinia/src/components/HelloWorld.vue delete mode 100644 playground/jsx-pinia/src/components/TheWelcome.vue delete mode 100644 playground/jsx-pinia/src/components/WelcomeItem.vue delete mode 100644 playground/jsx-pinia/src/components/icons/IconCommunity.vue delete mode 100644 playground/jsx-pinia/src/components/icons/IconDocumentation.vue delete mode 100644 playground/jsx-pinia/src/components/icons/IconEcosystem.vue delete mode 100644 playground/jsx-pinia/src/components/icons/IconSupport.vue delete mode 100644 playground/jsx-pinia/src/components/icons/IconTooling.vue delete mode 100644 playground/jsx-pinia/src/main.js delete mode 100644 playground/jsx-pinia/src/stores/counter.js delete mode 100644 playground/jsx-pinia/vite.config.js delete mode 100644 playground/jsx-router-pinia-with-tests/.gitignore delete mode 100644 playground/jsx-router-pinia-with-tests/README.md delete mode 100644 playground/jsx-router-pinia-with-tests/cypress.json delete mode 100644 playground/jsx-router-pinia-with-tests/cypress/fixtures/example.json delete mode 100644 playground/jsx-router-pinia-with-tests/cypress/integration/example.spec.js delete mode 100644 playground/jsx-router-pinia-with-tests/cypress/jsconfig.json delete mode 100644 playground/jsx-router-pinia-with-tests/cypress/plugins/index.js delete mode 100644 playground/jsx-router-pinia-with-tests/cypress/support/commands.js delete mode 100644 playground/jsx-router-pinia-with-tests/cypress/support/index.js delete mode 100644 playground/jsx-router-pinia-with-tests/index.html delete mode 100644 playground/jsx-router-pinia-with-tests/package.json delete mode 100644 playground/jsx-router-pinia-with-tests/public/favicon.ico delete mode 100644 playground/jsx-router-pinia-with-tests/src/App.vue delete mode 100644 playground/jsx-router-pinia-with-tests/src/assets/base.css delete mode 100644 playground/jsx-router-pinia-with-tests/src/assets/logo.svg delete mode 100644 playground/jsx-router-pinia-with-tests/src/components/HelloWorld.vue delete mode 100644 playground/jsx-router-pinia-with-tests/src/components/TheWelcome.vue delete mode 100644 playground/jsx-router-pinia-with-tests/src/components/WelcomeItem.vue delete mode 100644 playground/jsx-router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.js delete mode 100644 playground/jsx-router-pinia-with-tests/src/components/icons/IconCommunity.vue delete mode 100644 playground/jsx-router-pinia-with-tests/src/components/icons/IconDocumentation.vue delete mode 100644 playground/jsx-router-pinia-with-tests/src/components/icons/IconEcosystem.vue delete mode 100644 playground/jsx-router-pinia-with-tests/src/components/icons/IconSupport.vue delete mode 100644 playground/jsx-router-pinia-with-tests/src/components/icons/IconTooling.vue delete mode 100644 playground/jsx-router-pinia-with-tests/src/main.js delete mode 100644 playground/jsx-router-pinia-with-tests/src/router/index.js delete mode 100644 playground/jsx-router-pinia-with-tests/src/stores/counter.js delete mode 100644 playground/jsx-router-pinia-with-tests/src/views/AboutView.vue delete mode 100644 playground/jsx-router-pinia-with-tests/src/views/HomeView.vue delete mode 100644 playground/jsx-router-pinia-with-tests/vite.config.js delete mode 100644 playground/jsx-router-pinia/.gitignore delete mode 100644 playground/jsx-router-pinia/README.md delete mode 100644 playground/jsx-router-pinia/index.html delete mode 100644 playground/jsx-router-pinia/package.json delete mode 100644 playground/jsx-router-pinia/public/favicon.ico delete mode 100644 playground/jsx-router-pinia/src/App.vue delete mode 100644 playground/jsx-router-pinia/src/assets/base.css delete mode 100644 playground/jsx-router-pinia/src/assets/logo.svg delete mode 100644 playground/jsx-router-pinia/src/components/HelloWorld.vue delete mode 100644 playground/jsx-router-pinia/src/components/TheWelcome.vue delete mode 100644 playground/jsx-router-pinia/src/components/WelcomeItem.vue delete mode 100644 playground/jsx-router-pinia/src/components/icons/IconCommunity.vue delete mode 100644 playground/jsx-router-pinia/src/components/icons/IconDocumentation.vue delete mode 100644 playground/jsx-router-pinia/src/components/icons/IconEcosystem.vue delete mode 100644 playground/jsx-router-pinia/src/components/icons/IconSupport.vue delete mode 100644 playground/jsx-router-pinia/src/components/icons/IconTooling.vue delete mode 100644 playground/jsx-router-pinia/src/main.js delete mode 100644 playground/jsx-router-pinia/src/router/index.js delete mode 100644 playground/jsx-router-pinia/src/stores/counter.js delete mode 100644 playground/jsx-router-pinia/src/views/AboutView.vue delete mode 100644 playground/jsx-router-pinia/src/views/HomeView.vue delete mode 100644 playground/jsx-router-pinia/vite.config.js delete mode 100644 playground/jsx-router-with-tests/.gitignore delete mode 100644 playground/jsx-router-with-tests/README.md delete mode 100644 playground/jsx-router-with-tests/cypress.json delete mode 100644 playground/jsx-router-with-tests/cypress/fixtures/example.json delete mode 100644 playground/jsx-router-with-tests/cypress/integration/example.spec.js delete mode 100644 playground/jsx-router-with-tests/cypress/jsconfig.json delete mode 100644 playground/jsx-router-with-tests/cypress/plugins/index.js delete mode 100644 playground/jsx-router-with-tests/cypress/support/commands.js delete mode 100644 playground/jsx-router-with-tests/cypress/support/index.js delete mode 100644 playground/jsx-router-with-tests/index.html delete mode 100644 playground/jsx-router-with-tests/package.json delete mode 100644 playground/jsx-router-with-tests/public/favicon.ico delete mode 100644 playground/jsx-router-with-tests/src/App.vue delete mode 100644 playground/jsx-router-with-tests/src/assets/base.css delete mode 100644 playground/jsx-router-with-tests/src/assets/logo.svg delete mode 100644 playground/jsx-router-with-tests/src/components/HelloWorld.vue delete mode 100644 playground/jsx-router-with-tests/src/components/TheWelcome.vue delete mode 100644 playground/jsx-router-with-tests/src/components/WelcomeItem.vue delete mode 100644 playground/jsx-router-with-tests/src/components/__tests__/HelloWorld.spec.js delete mode 100644 playground/jsx-router-with-tests/src/components/icons/IconCommunity.vue delete mode 100644 playground/jsx-router-with-tests/src/components/icons/IconDocumentation.vue delete mode 100644 playground/jsx-router-with-tests/src/components/icons/IconEcosystem.vue delete mode 100644 playground/jsx-router-with-tests/src/components/icons/IconSupport.vue delete mode 100644 playground/jsx-router-with-tests/src/components/icons/IconTooling.vue delete mode 100644 playground/jsx-router-with-tests/src/main.js delete mode 100644 playground/jsx-router-with-tests/src/router/index.js delete mode 100644 playground/jsx-router-with-tests/src/views/AboutView.vue delete mode 100644 playground/jsx-router-with-tests/src/views/HomeView.vue delete mode 100644 playground/jsx-router-with-tests/vite.config.js delete mode 100644 playground/jsx-router/.gitignore delete mode 100644 playground/jsx-router/README.md delete mode 100644 playground/jsx-router/index.html delete mode 100644 playground/jsx-router/package.json delete mode 100644 playground/jsx-router/public/favicon.ico delete mode 100644 playground/jsx-router/src/App.vue delete mode 100644 playground/jsx-router/src/assets/base.css delete mode 100644 playground/jsx-router/src/assets/logo.svg delete mode 100644 playground/jsx-router/src/components/HelloWorld.vue delete mode 100644 playground/jsx-router/src/components/TheWelcome.vue delete mode 100644 playground/jsx-router/src/components/WelcomeItem.vue delete mode 100644 playground/jsx-router/src/components/icons/IconCommunity.vue delete mode 100644 playground/jsx-router/src/components/icons/IconDocumentation.vue delete mode 100644 playground/jsx-router/src/components/icons/IconEcosystem.vue delete mode 100644 playground/jsx-router/src/components/icons/IconSupport.vue delete mode 100644 playground/jsx-router/src/components/icons/IconTooling.vue delete mode 100644 playground/jsx-router/src/main.js delete mode 100644 playground/jsx-router/src/router/index.js delete mode 100644 playground/jsx-router/src/views/AboutView.vue delete mode 100644 playground/jsx-router/src/views/HomeView.vue delete mode 100644 playground/jsx-router/vite.config.js delete mode 100644 playground/jsx-with-tests/.gitignore delete mode 100644 playground/jsx-with-tests/README.md delete mode 100644 playground/jsx-with-tests/cypress.json delete mode 100644 playground/jsx-with-tests/cypress/fixtures/example.json delete mode 100644 playground/jsx-with-tests/cypress/integration/example.spec.js delete mode 100644 playground/jsx-with-tests/cypress/jsconfig.json delete mode 100644 playground/jsx-with-tests/cypress/plugins/index.js delete mode 100644 playground/jsx-with-tests/cypress/support/commands.js delete mode 100644 playground/jsx-with-tests/cypress/support/index.js delete mode 100644 playground/jsx-with-tests/index.html delete mode 100644 playground/jsx-with-tests/package.json delete mode 100644 playground/jsx-with-tests/public/favicon.ico delete mode 100644 playground/jsx-with-tests/src/App.vue delete mode 100644 playground/jsx-with-tests/src/assets/base.css delete mode 100644 playground/jsx-with-tests/src/assets/logo.svg delete mode 100644 playground/jsx-with-tests/src/components/HelloWorld.vue delete mode 100644 playground/jsx-with-tests/src/components/TheWelcome.vue delete mode 100644 playground/jsx-with-tests/src/components/WelcomeItem.vue delete mode 100644 playground/jsx-with-tests/src/components/__tests__/HelloWorld.spec.js delete mode 100644 playground/jsx-with-tests/src/components/icons/IconCommunity.vue delete mode 100644 playground/jsx-with-tests/src/components/icons/IconDocumentation.vue delete mode 100644 playground/jsx-with-tests/src/components/icons/IconEcosystem.vue delete mode 100644 playground/jsx-with-tests/src/components/icons/IconSupport.vue delete mode 100644 playground/jsx-with-tests/src/components/icons/IconTooling.vue delete mode 100644 playground/jsx-with-tests/src/main.js delete mode 100644 playground/jsx-with-tests/vite.config.js delete mode 100644 playground/jsx/.gitignore delete mode 100644 playground/jsx/README.md delete mode 100644 playground/jsx/index.html delete mode 100644 playground/jsx/package.json delete mode 100644 playground/jsx/public/favicon.ico delete mode 100644 playground/jsx/src/App.vue delete mode 100644 playground/jsx/src/assets/base.css delete mode 100644 playground/jsx/src/assets/logo.svg delete mode 100644 playground/jsx/src/components/HelloWorld.vue delete mode 100644 playground/jsx/src/components/TheWelcome.vue delete mode 100644 playground/jsx/src/components/WelcomeItem.vue delete mode 100644 playground/jsx/src/components/icons/IconCommunity.vue delete mode 100644 playground/jsx/src/components/icons/IconDocumentation.vue delete mode 100644 playground/jsx/src/components/icons/IconEcosystem.vue delete mode 100644 playground/jsx/src/components/icons/IconSupport.vue delete mode 100644 playground/jsx/src/components/icons/IconTooling.vue delete mode 100644 playground/jsx/src/main.js delete mode 100644 playground/jsx/vite.config.js delete mode 100644 playground/typescript-jsx-pinia-with-tests/.gitignore delete mode 100644 playground/typescript-jsx-pinia-with-tests/README.md delete mode 100644 playground/typescript-jsx-pinia-with-tests/cypress.json delete mode 100644 playground/typescript-jsx-pinia-with-tests/cypress/fixtures/example.json delete mode 100644 playground/typescript-jsx-pinia-with-tests/cypress/integration/example.spec.ts delete mode 100644 playground/typescript-jsx-pinia-with-tests/cypress/plugins/index.ts delete mode 100644 playground/typescript-jsx-pinia-with-tests/cypress/support/commands.ts delete mode 100644 playground/typescript-jsx-pinia-with-tests/cypress/support/index.ts delete mode 100644 playground/typescript-jsx-pinia-with-tests/cypress/tsconfig.json delete mode 100644 playground/typescript-jsx-pinia-with-tests/env.d.ts delete mode 100644 playground/typescript-jsx-pinia-with-tests/index.html delete mode 100644 playground/typescript-jsx-pinia-with-tests/package.json delete mode 100644 playground/typescript-jsx-pinia-with-tests/public/favicon.ico delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/App.vue delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/assets/base.css delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/assets/logo.svg delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/components/HelloWorld.vue delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/components/TheWelcome.vue delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/components/WelcomeItem.vue delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/components/icons/IconCommunity.vue delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/components/icons/IconDocumentation.vue delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/components/icons/IconEcosystem.vue delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/components/icons/IconSupport.vue delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/components/icons/IconTooling.vue delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/main.ts delete mode 100644 playground/typescript-jsx-pinia-with-tests/src/stores/counter.ts delete mode 100644 playground/typescript-jsx-pinia-with-tests/tsconfig.json delete mode 100644 playground/typescript-jsx-pinia-with-tests/vite.config.ts delete mode 100644 playground/typescript-jsx-pinia/.gitignore delete mode 100644 playground/typescript-jsx-pinia/README.md delete mode 100644 playground/typescript-jsx-pinia/env.d.ts delete mode 100644 playground/typescript-jsx-pinia/index.html delete mode 100644 playground/typescript-jsx-pinia/package.json delete mode 100644 playground/typescript-jsx-pinia/public/favicon.ico delete mode 100644 playground/typescript-jsx-pinia/src/App.vue delete mode 100644 playground/typescript-jsx-pinia/src/assets/base.css delete mode 100644 playground/typescript-jsx-pinia/src/assets/logo.svg delete mode 100644 playground/typescript-jsx-pinia/src/components/HelloWorld.vue delete mode 100644 playground/typescript-jsx-pinia/src/components/TheWelcome.vue delete mode 100644 playground/typescript-jsx-pinia/src/components/WelcomeItem.vue delete mode 100644 playground/typescript-jsx-pinia/src/components/icons/IconCommunity.vue delete mode 100644 playground/typescript-jsx-pinia/src/components/icons/IconDocumentation.vue delete mode 100644 playground/typescript-jsx-pinia/src/components/icons/IconEcosystem.vue delete mode 100644 playground/typescript-jsx-pinia/src/components/icons/IconSupport.vue delete mode 100644 playground/typescript-jsx-pinia/src/components/icons/IconTooling.vue delete mode 100644 playground/typescript-jsx-pinia/src/main.ts delete mode 100644 playground/typescript-jsx-pinia/src/stores/counter.ts delete mode 100644 playground/typescript-jsx-pinia/tsconfig.json delete mode 100644 playground/typescript-jsx-pinia/vite.config.ts delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/.gitignore delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/README.md delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/cypress.json delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/cypress/fixtures/example.json delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/cypress/integration/example.spec.ts delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/cypress/plugins/index.ts delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/cypress/support/commands.ts delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/cypress/support/index.ts delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/cypress/tsconfig.json delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/env.d.ts delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/index.html delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/package.json delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/public/favicon.ico delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/App.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/assets/base.css delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/assets/logo.svg delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/components/HelloWorld.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/components/TheWelcome.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/components/WelcomeItem.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconCommunity.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconDocumentation.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconEcosystem.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconSupport.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconTooling.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/main.ts delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/router/index.ts delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/stores/counter.ts delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/views/AboutView.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/src/views/HomeView.vue delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/tsconfig.json delete mode 100644 playground/typescript-jsx-router-pinia-with-tests/vite.config.ts delete mode 100644 playground/typescript-jsx-router-pinia/.gitignore delete mode 100644 playground/typescript-jsx-router-pinia/README.md delete mode 100644 playground/typescript-jsx-router-pinia/env.d.ts delete mode 100644 playground/typescript-jsx-router-pinia/index.html delete mode 100644 playground/typescript-jsx-router-pinia/package.json delete mode 100644 playground/typescript-jsx-router-pinia/public/favicon.ico delete mode 100644 playground/typescript-jsx-router-pinia/src/App.vue delete mode 100644 playground/typescript-jsx-router-pinia/src/assets/base.css delete mode 100644 playground/typescript-jsx-router-pinia/src/assets/logo.svg delete mode 100644 playground/typescript-jsx-router-pinia/src/components/HelloWorld.vue delete mode 100644 playground/typescript-jsx-router-pinia/src/components/TheWelcome.vue delete mode 100644 playground/typescript-jsx-router-pinia/src/components/WelcomeItem.vue delete mode 100644 playground/typescript-jsx-router-pinia/src/components/icons/IconCommunity.vue delete mode 100644 playground/typescript-jsx-router-pinia/src/components/icons/IconDocumentation.vue delete mode 100644 playground/typescript-jsx-router-pinia/src/components/icons/IconEcosystem.vue delete mode 100644 playground/typescript-jsx-router-pinia/src/components/icons/IconSupport.vue delete mode 100644 playground/typescript-jsx-router-pinia/src/components/icons/IconTooling.vue delete mode 100644 playground/typescript-jsx-router-pinia/src/main.ts delete mode 100644 playground/typescript-jsx-router-pinia/src/router/index.ts delete mode 100644 playground/typescript-jsx-router-pinia/src/stores/counter.ts delete mode 100644 playground/typescript-jsx-router-pinia/src/views/AboutView.vue delete mode 100644 playground/typescript-jsx-router-pinia/src/views/HomeView.vue delete mode 100644 playground/typescript-jsx-router-pinia/tsconfig.json delete mode 100644 playground/typescript-jsx-router-pinia/vite.config.ts delete mode 100644 playground/typescript-jsx-router-with-tests/.gitignore delete mode 100644 playground/typescript-jsx-router-with-tests/README.md delete mode 100644 playground/typescript-jsx-router-with-tests/cypress.json delete mode 100644 playground/typescript-jsx-router-with-tests/cypress/fixtures/example.json delete mode 100644 playground/typescript-jsx-router-with-tests/cypress/integration/example.spec.ts delete mode 100644 playground/typescript-jsx-router-with-tests/cypress/plugins/index.ts delete mode 100644 playground/typescript-jsx-router-with-tests/cypress/support/commands.ts delete mode 100644 playground/typescript-jsx-router-with-tests/cypress/support/index.ts delete mode 100644 playground/typescript-jsx-router-with-tests/cypress/tsconfig.json delete mode 100644 playground/typescript-jsx-router-with-tests/env.d.ts delete mode 100644 playground/typescript-jsx-router-with-tests/index.html delete mode 100644 playground/typescript-jsx-router-with-tests/package.json delete mode 100644 playground/typescript-jsx-router-with-tests/public/favicon.ico delete mode 100644 playground/typescript-jsx-router-with-tests/src/App.vue delete mode 100644 playground/typescript-jsx-router-with-tests/src/assets/base.css delete mode 100644 playground/typescript-jsx-router-with-tests/src/assets/logo.svg delete mode 100644 playground/typescript-jsx-router-with-tests/src/components/HelloWorld.vue delete mode 100644 playground/typescript-jsx-router-with-tests/src/components/TheWelcome.vue delete mode 100644 playground/typescript-jsx-router-with-tests/src/components/WelcomeItem.vue delete mode 100644 playground/typescript-jsx-router-with-tests/src/components/__tests__/HelloWorld.spec.ts delete mode 100644 playground/typescript-jsx-router-with-tests/src/components/icons/IconCommunity.vue delete mode 100644 playground/typescript-jsx-router-with-tests/src/components/icons/IconDocumentation.vue delete mode 100644 playground/typescript-jsx-router-with-tests/src/components/icons/IconEcosystem.vue delete mode 100644 playground/typescript-jsx-router-with-tests/src/components/icons/IconSupport.vue delete mode 100644 playground/typescript-jsx-router-with-tests/src/components/icons/IconTooling.vue delete mode 100644 playground/typescript-jsx-router-with-tests/src/main.ts delete mode 100644 playground/typescript-jsx-router-with-tests/src/router/index.ts delete mode 100644 playground/typescript-jsx-router-with-tests/src/views/AboutView.vue delete mode 100644 playground/typescript-jsx-router-with-tests/src/views/HomeView.vue delete mode 100644 playground/typescript-jsx-router-with-tests/tsconfig.json delete mode 100644 playground/typescript-jsx-router-with-tests/vite.config.ts delete mode 100644 playground/typescript-jsx-router/.gitignore delete mode 100644 playground/typescript-jsx-router/README.md delete mode 100644 playground/typescript-jsx-router/env.d.ts delete mode 100644 playground/typescript-jsx-router/index.html delete mode 100644 playground/typescript-jsx-router/package.json delete mode 100644 playground/typescript-jsx-router/public/favicon.ico delete mode 100644 playground/typescript-jsx-router/src/App.vue delete mode 100644 playground/typescript-jsx-router/src/assets/base.css delete mode 100644 playground/typescript-jsx-router/src/assets/logo.svg delete mode 100644 playground/typescript-jsx-router/src/components/HelloWorld.vue delete mode 100644 playground/typescript-jsx-router/src/components/TheWelcome.vue delete mode 100644 playground/typescript-jsx-router/src/components/WelcomeItem.vue delete mode 100644 playground/typescript-jsx-router/src/components/icons/IconCommunity.vue delete mode 100644 playground/typescript-jsx-router/src/components/icons/IconDocumentation.vue delete mode 100644 playground/typescript-jsx-router/src/components/icons/IconEcosystem.vue delete mode 100644 playground/typescript-jsx-router/src/components/icons/IconSupport.vue delete mode 100644 playground/typescript-jsx-router/src/components/icons/IconTooling.vue delete mode 100644 playground/typescript-jsx-router/src/main.ts delete mode 100644 playground/typescript-jsx-router/src/router/index.ts delete mode 100644 playground/typescript-jsx-router/src/views/AboutView.vue delete mode 100644 playground/typescript-jsx-router/src/views/HomeView.vue delete mode 100644 playground/typescript-jsx-router/tsconfig.json delete mode 100644 playground/typescript-jsx-router/vite.config.ts delete mode 100644 playground/typescript-jsx-with-tests/.gitignore delete mode 100644 playground/typescript-jsx-with-tests/README.md delete mode 100644 playground/typescript-jsx-with-tests/cypress.json delete mode 100644 playground/typescript-jsx-with-tests/cypress/fixtures/example.json delete mode 100644 playground/typescript-jsx-with-tests/cypress/integration/example.spec.ts delete mode 100644 playground/typescript-jsx-with-tests/cypress/plugins/index.ts delete mode 100644 playground/typescript-jsx-with-tests/cypress/support/commands.ts delete mode 100644 playground/typescript-jsx-with-tests/cypress/support/index.ts delete mode 100644 playground/typescript-jsx-with-tests/cypress/tsconfig.json delete mode 100644 playground/typescript-jsx-with-tests/env.d.ts delete mode 100644 playground/typescript-jsx-with-tests/index.html delete mode 100644 playground/typescript-jsx-with-tests/package.json delete mode 100644 playground/typescript-jsx-with-tests/public/favicon.ico delete mode 100644 playground/typescript-jsx-with-tests/src/App.vue delete mode 100644 playground/typescript-jsx-with-tests/src/assets/base.css delete mode 100644 playground/typescript-jsx-with-tests/src/assets/logo.svg delete mode 100644 playground/typescript-jsx-with-tests/src/components/HelloWorld.vue delete mode 100644 playground/typescript-jsx-with-tests/src/components/TheWelcome.vue delete mode 100644 playground/typescript-jsx-with-tests/src/components/WelcomeItem.vue delete mode 100644 playground/typescript-jsx-with-tests/src/components/__tests__/HelloWorld.spec.ts delete mode 100644 playground/typescript-jsx-with-tests/src/components/icons/IconCommunity.vue delete mode 100644 playground/typescript-jsx-with-tests/src/components/icons/IconDocumentation.vue delete mode 100644 playground/typescript-jsx-with-tests/src/components/icons/IconEcosystem.vue delete mode 100644 playground/typescript-jsx-with-tests/src/components/icons/IconSupport.vue delete mode 100644 playground/typescript-jsx-with-tests/src/components/icons/IconTooling.vue delete mode 100644 playground/typescript-jsx-with-tests/src/main.ts delete mode 100644 playground/typescript-jsx-with-tests/tsconfig.json delete mode 100644 playground/typescript-jsx-with-tests/vite.config.ts delete mode 100644 playground/typescript-jsx/.gitignore delete mode 100644 playground/typescript-jsx/README.md delete mode 100644 playground/typescript-jsx/env.d.ts delete mode 100644 playground/typescript-jsx/index.html delete mode 100644 playground/typescript-jsx/package.json delete mode 100644 playground/typescript-jsx/public/favicon.ico delete mode 100644 playground/typescript-jsx/src/App.vue delete mode 100644 playground/typescript-jsx/src/assets/base.css delete mode 100644 playground/typescript-jsx/src/assets/logo.svg delete mode 100644 playground/typescript-jsx/src/components/HelloWorld.vue delete mode 100644 playground/typescript-jsx/src/components/TheWelcome.vue delete mode 100644 playground/typescript-jsx/src/components/WelcomeItem.vue delete mode 100644 playground/typescript-jsx/src/components/icons/IconCommunity.vue delete mode 100644 playground/typescript-jsx/src/components/icons/IconDocumentation.vue delete mode 100644 playground/typescript-jsx/src/components/icons/IconEcosystem.vue delete mode 100644 playground/typescript-jsx/src/components/icons/IconSupport.vue delete mode 100644 playground/typescript-jsx/src/components/icons/IconTooling.vue delete mode 100644 playground/typescript-jsx/src/main.ts delete mode 100644 playground/typescript-jsx/tsconfig.json delete mode 100644 playground/typescript-jsx/vite.config.ts delete mode 100644 template/code/typescript-router/src/main.ts delete mode 100644 template/config/jsx/package.json delete mode 100644 template/config/jsx/vite.config.js delete mode 100644 template/config/vuex/package.json delete mode 100644 template/config/vuex/src/store/index.js diff --git a/index.js b/index.js index 4aeebbe5..1f4c43fe 100755 --- a/index.js +++ b/index.js @@ -43,7 +43,6 @@ async function init() { // possible options: // --default // --typescript / --ts - // --jsx // --router / --vue-router // --pinia // --with-tests / --tests / --cypress @@ -61,8 +60,7 @@ async function init() { // if any of the feature flags is set, we would skip the feature prompts // use `??` instead of `||` once we drop Node.js 12 support const isFeatureFlagsUsed = - typeof (argv.default || argv.ts || argv.jsx || argv.router || argv.pinia || argv.tests) === - 'boolean' + typeof (argv.default || argv.ts || argv.router || argv.pinia || argv.tests) === 'boolean' let targetDir = argv._[0] const defaultProjectName = !targetDir ? 'vue-project' : targetDir @@ -77,7 +75,6 @@ async function init() { // - whether to overwrite the existing directory or not? // - enter a valid package name for package.json // - Project language: JavaScript / TypeScript - // - Add JSX Support? // - Install Vue Router for SPA development? // - Install Pinia for state management? // - Add Cypress for testing? @@ -124,14 +121,6 @@ async function init() { active: 'Yes', inactive: 'No' }, - { - name: 'needsJsx', - type: () => (isFeatureFlagsUsed ? null : 'toggle'), - message: 'Add JSX Support?', - initial: false, - active: 'Yes', - inactive: 'No' - }, { name: 'needsRouter', type: () => (isFeatureFlagsUsed ? null : 'toggle'), @@ -173,7 +162,6 @@ async function init() { const { packageName = toValidPackageName(defaultProjectName), shouldOverwrite, - needsJsx = argv.jsx, needsTypeScript = argv.typescript, needsRouter = argv.router, needsPinia = argv.pinia, @@ -206,9 +194,6 @@ async function init() { render('base') // Add configs. - if (needsJsx) { - render('config/jsx') - } if (needsRouter) { render('config/router') } diff --git a/playground/default/package.json b/playground/default/package.json index 0a390125..113d62f4 100644 --- a/playground/default/package.json +++ b/playground/default/package.json @@ -7,10 +7,14 @@ "preview": "vite preview --port 5050" }, "dependencies": { - "vue": "^3.2.22" + "@vue/composition-api": "^1.4.0", + "vue": "^2.6.14" }, "devDependencies": { - "@vitejs/plugin-vue": "^1.10.0", - "vite": "^2.6.14" + "@vue/runtime-dom": "^3.2.22", + "unplugin-vue2-script-setup": "^0.7.1", + "vite": "^2.6.14", + "vite-plugin-vue2": "^1.9.0", + "vue-template-compiler": "^2.6.14" } } diff --git a/playground/default/src/App.vue b/playground/default/src/App.vue index b0b6901b..099c613b 100644 --- a/playground/default/src/App.vue +++ b/playground/default/src/App.vue @@ -4,17 +4,19 @@ import TheWelcome from './components/TheWelcome.vue' diff --git a/playground/jsx-pinia-with-tests/src/assets/base.css b/playground/jsx-pinia-with-tests/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/jsx-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/jsx-pinia-with-tests/src/assets/logo.svg b/playground/jsx-pinia-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/jsx-pinia-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/jsx-pinia-with-tests/src/components/HelloWorld.vue b/playground/jsx-pinia-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index aa16fa1f..00000000 --- a/playground/jsx-pinia-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/jsx-pinia-with-tests/src/components/TheWelcome.vue b/playground/jsx-pinia-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index 1d003f86..00000000 --- a/playground/jsx-pinia-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/jsx-pinia-with-tests/src/components/WelcomeItem.vue b/playground/jsx-pinia-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/jsx-pinia-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/jsx-pinia-with-tests/src/components/__tests__/HelloWorld.spec.js b/playground/jsx-pinia-with-tests/src/components/__tests__/HelloWorld.spec.js deleted file mode 100644 index a69f3a9d..00000000 --- a/playground/jsx-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, { props: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/jsx-pinia-with-tests/src/components/icons/IconCommunity.vue b/playground/jsx-pinia-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/jsx-pinia-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-pinia-with-tests/src/components/icons/IconDocumentation.vue b/playground/jsx-pinia-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/jsx-pinia-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-pinia-with-tests/src/components/icons/IconEcosystem.vue b/playground/jsx-pinia-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/jsx-pinia-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-pinia-with-tests/src/components/icons/IconSupport.vue b/playground/jsx-pinia-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/jsx-pinia-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-pinia-with-tests/src/components/icons/IconTooling.vue b/playground/jsx-pinia-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/jsx-pinia-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/jsx-pinia-with-tests/src/main.js b/playground/jsx-pinia-with-tests/src/main.js deleted file mode 100644 index 5f77a891..00000000 --- a/playground/jsx-pinia-with-tests/src/main.js +++ /dev/null @@ -1,9 +0,0 @@ -import { createApp } from 'vue' -import { createPinia } from 'pinia' -import App from './App.vue' - -const app = createApp(App) - -app.use(createPinia()) - -app.mount('#app') diff --git a/playground/jsx-pinia-with-tests/src/stores/counter.js b/playground/jsx-pinia-with-tests/src/stores/counter.js deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/jsx-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/jsx-pinia-with-tests/vite.config.js b/playground/jsx-pinia-with-tests/vite.config.js deleted file mode 100644 index f140f276..00000000 --- a/playground/jsx-pinia-with-tests/vite.config.js +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/jsx-pinia/.gitignore b/playground/jsx-pinia/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/jsx-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/jsx-pinia/README.md b/playground/jsx-pinia/README.md deleted file mode 100644 index 4f10fb57..00000000 --- a/playground/jsx-pinia/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# jsx-pinia - -This template should help get you started developing with Vue 3 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/jsx-pinia/index.html b/playground/jsx-pinia/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/jsx-pinia/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/jsx-pinia/package.json b/playground/jsx-pinia/package.json deleted file mode 100644 index 36d69f1e..00000000 --- a/playground/jsx-pinia/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "jsx-pinia", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview --port 5050" - }, - "dependencies": { - "pinia": "^2.0.4", - "vue": "^3.2.22" - }, - "devDependencies": { - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "vite": "^2.6.14" - } -} diff --git a/playground/jsx-pinia/public/favicon.ico b/playground/jsx-pinia/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/jsx-pinia/src/App.vue b/playground/jsx-pinia/src/App.vue deleted file mode 100644 index b0b6901b..00000000 --- a/playground/jsx-pinia/src/App.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - diff --git a/playground/jsx-pinia/src/assets/base.css b/playground/jsx-pinia/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/jsx-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/jsx-pinia/src/assets/logo.svg b/playground/jsx-pinia/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/jsx-pinia/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/jsx-pinia/src/components/HelloWorld.vue b/playground/jsx-pinia/src/components/HelloWorld.vue deleted file mode 100644 index aa16fa1f..00000000 --- a/playground/jsx-pinia/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/jsx-pinia/src/components/TheWelcome.vue b/playground/jsx-pinia/src/components/TheWelcome.vue deleted file mode 100644 index 1d003f86..00000000 --- a/playground/jsx-pinia/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/jsx-pinia/src/components/WelcomeItem.vue b/playground/jsx-pinia/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/jsx-pinia/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/jsx-pinia/src/components/icons/IconCommunity.vue b/playground/jsx-pinia/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/jsx-pinia/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-pinia/src/components/icons/IconDocumentation.vue b/playground/jsx-pinia/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/jsx-pinia/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-pinia/src/components/icons/IconEcosystem.vue b/playground/jsx-pinia/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/jsx-pinia/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-pinia/src/components/icons/IconSupport.vue b/playground/jsx-pinia/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/jsx-pinia/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-pinia/src/components/icons/IconTooling.vue b/playground/jsx-pinia/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/jsx-pinia/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/jsx-pinia/src/main.js b/playground/jsx-pinia/src/main.js deleted file mode 100644 index 5f77a891..00000000 --- a/playground/jsx-pinia/src/main.js +++ /dev/null @@ -1,9 +0,0 @@ -import { createApp } from 'vue' -import { createPinia } from 'pinia' -import App from './App.vue' - -const app = createApp(App) - -app.use(createPinia()) - -app.mount('#app') diff --git a/playground/jsx-pinia/src/stores/counter.js b/playground/jsx-pinia/src/stores/counter.js deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/jsx-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/jsx-pinia/vite.config.js b/playground/jsx-pinia/vite.config.js deleted file mode 100644 index f140f276..00000000 --- a/playground/jsx-pinia/vite.config.js +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/jsx-router-pinia-with-tests/.gitignore b/playground/jsx-router-pinia-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/jsx-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/jsx-router-pinia-with-tests/README.md b/playground/jsx-router-pinia-with-tests/README.md deleted file mode 100644 index 10533b71..00000000 --- a/playground/jsx-router-pinia-with-tests/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# jsx-router-pinia-with-tests - -This template should help get you started developing with Vue 3 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/jsx-router-pinia-with-tests/cypress.json b/playground/jsx-router-pinia-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/jsx-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/jsx-router-pinia-with-tests/cypress/fixtures/example.json b/playground/jsx-router-pinia-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/jsx-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/jsx-router-pinia-with-tests/cypress/integration/example.spec.js b/playground/jsx-router-pinia-with-tests/cypress/integration/example.spec.js deleted file mode 100644 index 13a2922b..00000000 --- a/playground/jsx-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/jsx-router-pinia-with-tests/cypress/jsconfig.json b/playground/jsx-router-pinia-with-tests/cypress/jsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/jsx-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/jsx-router-pinia-with-tests/cypress/plugins/index.js b/playground/jsx-router-pinia-with-tests/cypress/plugins/index.js deleted file mode 100644 index ad2e351d..00000000 --- a/playground/jsx-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/jsx-router-pinia-with-tests/cypress/support/commands.js b/playground/jsx-router-pinia-with-tests/cypress/support/commands.js deleted file mode 100644 index 119ab03f..00000000 --- a/playground/jsx-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/jsx-router-pinia-with-tests/cypress/support/index.js b/playground/jsx-router-pinia-with-tests/cypress/support/index.js deleted file mode 100644 index d68db96d..00000000 --- a/playground/jsx-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/jsx-router-pinia-with-tests/index.html b/playground/jsx-router-pinia-with-tests/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/jsx-router-pinia-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/jsx-router-pinia-with-tests/package.json b/playground/jsx-router-pinia-with-tests/package.json deleted file mode 100644 index a6a9f686..00000000 --- a/playground/jsx-router-pinia-with-tests/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "jsx-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": { - "pinia": "^2.0.4", - "vue": "^3.2.22", - "vue-router": "^4.0.12" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.1", - "@cypress/vue": "^3.0.5", - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "cypress": "^8.7.0", - "start-server-and-test": "^1.14.0", - "vite": "^2.6.14" - } -} diff --git a/playground/jsx-router-pinia-with-tests/public/favicon.ico b/playground/jsx-router-pinia-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/jsx-router-pinia-with-tests/src/App.vue b/playground/jsx-router-pinia-with-tests/src/App.vue deleted file mode 100644 index 37edbaf4..00000000 --- a/playground/jsx-router-pinia-with-tests/src/App.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/playground/jsx-router-pinia-with-tests/src/assets/base.css b/playground/jsx-router-pinia-with-tests/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/jsx-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/jsx-router-pinia-with-tests/src/assets/logo.svg b/playground/jsx-router-pinia-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/jsx-router-pinia-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/jsx-router-pinia-with-tests/src/components/HelloWorld.vue b/playground/jsx-router-pinia-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index aa16fa1f..00000000 --- a/playground/jsx-router-pinia-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/jsx-router-pinia-with-tests/src/components/TheWelcome.vue b/playground/jsx-router-pinia-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index 1d003f86..00000000 --- a/playground/jsx-router-pinia-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/jsx-router-pinia-with-tests/src/components/WelcomeItem.vue b/playground/jsx-router-pinia-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/jsx-router-pinia-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/jsx-router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.js b/playground/jsx-router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.js deleted file mode 100644 index a69f3a9d..00000000 --- a/playground/jsx-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, { props: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/jsx-router-pinia-with-tests/src/components/icons/IconCommunity.vue b/playground/jsx-router-pinia-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/jsx-router-pinia-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-pinia-with-tests/src/components/icons/IconDocumentation.vue b/playground/jsx-router-pinia-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/jsx-router-pinia-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-pinia-with-tests/src/components/icons/IconEcosystem.vue b/playground/jsx-router-pinia-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/jsx-router-pinia-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-pinia-with-tests/src/components/icons/IconSupport.vue b/playground/jsx-router-pinia-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/jsx-router-pinia-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-pinia-with-tests/src/components/icons/IconTooling.vue b/playground/jsx-router-pinia-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/jsx-router-pinia-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/jsx-router-pinia-with-tests/src/main.js b/playground/jsx-router-pinia-with-tests/src/main.js deleted file mode 100644 index fda1e6e3..00000000 --- a/playground/jsx-router-pinia-with-tests/src/main.js +++ /dev/null @@ -1,12 +0,0 @@ -import { createApp } from 'vue' -import { createPinia } from 'pinia' - -import App from './App.vue' -import router from './router' - -const app = createApp(App) - -app.use(createPinia()) -app.use(router) - -app.mount('#app') diff --git a/playground/jsx-router-pinia-with-tests/src/router/index.js b/playground/jsx-router-pinia-with-tests/src/router/index.js deleted file mode 100644 index a49ae507..00000000 --- a/playground/jsx-router-pinia-with-tests/src/router/index.js +++ /dev/null @@ -1,23 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const router = createRouter({ - history: createWebHistory(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/jsx-router-pinia-with-tests/src/stores/counter.js b/playground/jsx-router-pinia-with-tests/src/stores/counter.js deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/jsx-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/jsx-router-pinia-with-tests/src/views/AboutView.vue b/playground/jsx-router-pinia-with-tests/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/jsx-router-pinia-with-tests/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/jsx-router-pinia-with-tests/src/views/HomeView.vue b/playground/jsx-router-pinia-with-tests/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/jsx-router-pinia-with-tests/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/jsx-router-pinia-with-tests/vite.config.js b/playground/jsx-router-pinia-with-tests/vite.config.js deleted file mode 100644 index f140f276..00000000 --- a/playground/jsx-router-pinia-with-tests/vite.config.js +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/jsx-router-pinia/.gitignore b/playground/jsx-router-pinia/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/jsx-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/jsx-router-pinia/README.md b/playground/jsx-router-pinia/README.md deleted file mode 100644 index 5fec2b3c..00000000 --- a/playground/jsx-router-pinia/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# jsx-router-pinia - -This template should help get you started developing with Vue 3 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/jsx-router-pinia/index.html b/playground/jsx-router-pinia/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/jsx-router-pinia/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/jsx-router-pinia/package.json b/playground/jsx-router-pinia/package.json deleted file mode 100644 index e310b7b2..00000000 --- a/playground/jsx-router-pinia/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "jsx-router-pinia", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview --port 5050" - }, - "dependencies": { - "pinia": "^2.0.4", - "vue": "^3.2.22", - "vue-router": "^4.0.12" - }, - "devDependencies": { - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "vite": "^2.6.14" - } -} diff --git a/playground/jsx-router-pinia/public/favicon.ico b/playground/jsx-router-pinia/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/jsx-router-pinia/src/App.vue b/playground/jsx-router-pinia/src/App.vue deleted file mode 100644 index 37edbaf4..00000000 --- a/playground/jsx-router-pinia/src/App.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/playground/jsx-router-pinia/src/assets/base.css b/playground/jsx-router-pinia/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/jsx-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/jsx-router-pinia/src/assets/logo.svg b/playground/jsx-router-pinia/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/jsx-router-pinia/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/jsx-router-pinia/src/components/HelloWorld.vue b/playground/jsx-router-pinia/src/components/HelloWorld.vue deleted file mode 100644 index aa16fa1f..00000000 --- a/playground/jsx-router-pinia/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/jsx-router-pinia/src/components/TheWelcome.vue b/playground/jsx-router-pinia/src/components/TheWelcome.vue deleted file mode 100644 index 1d003f86..00000000 --- a/playground/jsx-router-pinia/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/jsx-router-pinia/src/components/WelcomeItem.vue b/playground/jsx-router-pinia/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/jsx-router-pinia/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/jsx-router-pinia/src/components/icons/IconCommunity.vue b/playground/jsx-router-pinia/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/jsx-router-pinia/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-pinia/src/components/icons/IconDocumentation.vue b/playground/jsx-router-pinia/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/jsx-router-pinia/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-pinia/src/components/icons/IconEcosystem.vue b/playground/jsx-router-pinia/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/jsx-router-pinia/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-pinia/src/components/icons/IconSupport.vue b/playground/jsx-router-pinia/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/jsx-router-pinia/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-pinia/src/components/icons/IconTooling.vue b/playground/jsx-router-pinia/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/jsx-router-pinia/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/jsx-router-pinia/src/main.js b/playground/jsx-router-pinia/src/main.js deleted file mode 100644 index fda1e6e3..00000000 --- a/playground/jsx-router-pinia/src/main.js +++ /dev/null @@ -1,12 +0,0 @@ -import { createApp } from 'vue' -import { createPinia } from 'pinia' - -import App from './App.vue' -import router from './router' - -const app = createApp(App) - -app.use(createPinia()) -app.use(router) - -app.mount('#app') diff --git a/playground/jsx-router-pinia/src/router/index.js b/playground/jsx-router-pinia/src/router/index.js deleted file mode 100644 index a49ae507..00000000 --- a/playground/jsx-router-pinia/src/router/index.js +++ /dev/null @@ -1,23 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const router = createRouter({ - history: createWebHistory(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/jsx-router-pinia/src/stores/counter.js b/playground/jsx-router-pinia/src/stores/counter.js deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/jsx-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/jsx-router-pinia/src/views/AboutView.vue b/playground/jsx-router-pinia/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/jsx-router-pinia/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/jsx-router-pinia/src/views/HomeView.vue b/playground/jsx-router-pinia/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/jsx-router-pinia/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/jsx-router-pinia/vite.config.js b/playground/jsx-router-pinia/vite.config.js deleted file mode 100644 index f140f276..00000000 --- a/playground/jsx-router-pinia/vite.config.js +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/jsx-router-with-tests/.gitignore b/playground/jsx-router-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/jsx-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/jsx-router-with-tests/README.md b/playground/jsx-router-with-tests/README.md deleted file mode 100644 index 45cc392b..00000000 --- a/playground/jsx-router-with-tests/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# jsx-router-with-tests - -This template should help get you started developing with Vue 3 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/jsx-router-with-tests/cypress.json b/playground/jsx-router-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/jsx-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/jsx-router-with-tests/cypress/fixtures/example.json b/playground/jsx-router-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/jsx-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/jsx-router-with-tests/cypress/integration/example.spec.js b/playground/jsx-router-with-tests/cypress/integration/example.spec.js deleted file mode 100644 index 13a2922b..00000000 --- a/playground/jsx-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/jsx-router-with-tests/cypress/jsconfig.json b/playground/jsx-router-with-tests/cypress/jsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/jsx-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/jsx-router-with-tests/cypress/plugins/index.js b/playground/jsx-router-with-tests/cypress/plugins/index.js deleted file mode 100644 index ad2e351d..00000000 --- a/playground/jsx-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/jsx-router-with-tests/cypress/support/commands.js b/playground/jsx-router-with-tests/cypress/support/commands.js deleted file mode 100644 index 119ab03f..00000000 --- a/playground/jsx-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/jsx-router-with-tests/cypress/support/index.js b/playground/jsx-router-with-tests/cypress/support/index.js deleted file mode 100644 index d68db96d..00000000 --- a/playground/jsx-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/jsx-router-with-tests/index.html b/playground/jsx-router-with-tests/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/jsx-router-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/jsx-router-with-tests/package.json b/playground/jsx-router-with-tests/package.json deleted file mode 100644 index 124dd6b4..00000000 --- a/playground/jsx-router-with-tests/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "jsx-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": "^3.2.22", - "vue-router": "^4.0.12" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.1", - "@cypress/vue": "^3.0.5", - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "cypress": "^8.7.0", - "start-server-and-test": "^1.14.0", - "vite": "^2.6.14" - } -} diff --git a/playground/jsx-router-with-tests/public/favicon.ico b/playground/jsx-router-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/jsx-router-with-tests/src/App.vue b/playground/jsx-router-with-tests/src/App.vue deleted file mode 100644 index 37edbaf4..00000000 --- a/playground/jsx-router-with-tests/src/App.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/playground/jsx-router-with-tests/src/assets/base.css b/playground/jsx-router-with-tests/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/jsx-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/jsx-router-with-tests/src/assets/logo.svg b/playground/jsx-router-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/jsx-router-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/jsx-router-with-tests/src/components/HelloWorld.vue b/playground/jsx-router-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index aa16fa1f..00000000 --- a/playground/jsx-router-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/jsx-router-with-tests/src/components/TheWelcome.vue b/playground/jsx-router-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index 1d003f86..00000000 --- a/playground/jsx-router-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/jsx-router-with-tests/src/components/WelcomeItem.vue b/playground/jsx-router-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/jsx-router-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/jsx-router-with-tests/src/components/__tests__/HelloWorld.spec.js b/playground/jsx-router-with-tests/src/components/__tests__/HelloWorld.spec.js deleted file mode 100644 index a69f3a9d..00000000 --- a/playground/jsx-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, { props: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/jsx-router-with-tests/src/components/icons/IconCommunity.vue b/playground/jsx-router-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/jsx-router-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-with-tests/src/components/icons/IconDocumentation.vue b/playground/jsx-router-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/jsx-router-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-with-tests/src/components/icons/IconEcosystem.vue b/playground/jsx-router-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/jsx-router-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-with-tests/src/components/icons/IconSupport.vue b/playground/jsx-router-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/jsx-router-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router-with-tests/src/components/icons/IconTooling.vue b/playground/jsx-router-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/jsx-router-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/jsx-router-with-tests/src/main.js b/playground/jsx-router-with-tests/src/main.js deleted file mode 100644 index c8e37b03..00000000 --- a/playground/jsx-router-with-tests/src/main.js +++ /dev/null @@ -1,9 +0,0 @@ -import { createApp } from 'vue' -import App from './App.vue' -import router from './router' - -const app = createApp(App) - -app.use(router) - -app.mount('#app') diff --git a/playground/jsx-router-with-tests/src/router/index.js b/playground/jsx-router-with-tests/src/router/index.js deleted file mode 100644 index a49ae507..00000000 --- a/playground/jsx-router-with-tests/src/router/index.js +++ /dev/null @@ -1,23 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const router = createRouter({ - history: createWebHistory(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/jsx-router-with-tests/src/views/AboutView.vue b/playground/jsx-router-with-tests/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/jsx-router-with-tests/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/jsx-router-with-tests/src/views/HomeView.vue b/playground/jsx-router-with-tests/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/jsx-router-with-tests/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/jsx-router-with-tests/vite.config.js b/playground/jsx-router-with-tests/vite.config.js deleted file mode 100644 index f140f276..00000000 --- a/playground/jsx-router-with-tests/vite.config.js +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/jsx-router/.gitignore b/playground/jsx-router/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/jsx-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/jsx-router/README.md b/playground/jsx-router/README.md deleted file mode 100644 index 67c8371f..00000000 --- a/playground/jsx-router/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# jsx-router - -This template should help get you started developing with Vue 3 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/jsx-router/index.html b/playground/jsx-router/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/jsx-router/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/jsx-router/package.json b/playground/jsx-router/package.json deleted file mode 100644 index 7281e7e6..00000000 --- a/playground/jsx-router/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "jsx-router", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview --port 5050" - }, - "dependencies": { - "vue": "^3.2.22", - "vue-router": "^4.0.12" - }, - "devDependencies": { - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "vite": "^2.6.14" - } -} diff --git a/playground/jsx-router/public/favicon.ico b/playground/jsx-router/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/jsx-router/src/App.vue b/playground/jsx-router/src/App.vue deleted file mode 100644 index 37edbaf4..00000000 --- a/playground/jsx-router/src/App.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/playground/jsx-router/src/assets/base.css b/playground/jsx-router/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/jsx-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/jsx-router/src/assets/logo.svg b/playground/jsx-router/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/jsx-router/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/jsx-router/src/components/HelloWorld.vue b/playground/jsx-router/src/components/HelloWorld.vue deleted file mode 100644 index aa16fa1f..00000000 --- a/playground/jsx-router/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/jsx-router/src/components/TheWelcome.vue b/playground/jsx-router/src/components/TheWelcome.vue deleted file mode 100644 index 1d003f86..00000000 --- a/playground/jsx-router/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/jsx-router/src/components/WelcomeItem.vue b/playground/jsx-router/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/jsx-router/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/jsx-router/src/components/icons/IconCommunity.vue b/playground/jsx-router/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/jsx-router/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router/src/components/icons/IconDocumentation.vue b/playground/jsx-router/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/jsx-router/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router/src/components/icons/IconEcosystem.vue b/playground/jsx-router/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/jsx-router/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router/src/components/icons/IconSupport.vue b/playground/jsx-router/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/jsx-router/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-router/src/components/icons/IconTooling.vue b/playground/jsx-router/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/jsx-router/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/jsx-router/src/main.js b/playground/jsx-router/src/main.js deleted file mode 100644 index c8e37b03..00000000 --- a/playground/jsx-router/src/main.js +++ /dev/null @@ -1,9 +0,0 @@ -import { createApp } from 'vue' -import App from './App.vue' -import router from './router' - -const app = createApp(App) - -app.use(router) - -app.mount('#app') diff --git a/playground/jsx-router/src/router/index.js b/playground/jsx-router/src/router/index.js deleted file mode 100644 index a49ae507..00000000 --- a/playground/jsx-router/src/router/index.js +++ /dev/null @@ -1,23 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const router = createRouter({ - history: createWebHistory(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/jsx-router/src/views/AboutView.vue b/playground/jsx-router/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/jsx-router/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/jsx-router/src/views/HomeView.vue b/playground/jsx-router/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/jsx-router/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/jsx-router/vite.config.js b/playground/jsx-router/vite.config.js deleted file mode 100644 index f140f276..00000000 --- a/playground/jsx-router/vite.config.js +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/jsx-with-tests/.gitignore b/playground/jsx-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/jsx-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/jsx-with-tests/README.md b/playground/jsx-with-tests/README.md deleted file mode 100644 index 336d942c..00000000 --- a/playground/jsx-with-tests/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# jsx-with-tests - -This template should help get you started developing with Vue 3 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/jsx-with-tests/cypress.json b/playground/jsx-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/jsx-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/jsx-with-tests/cypress/fixtures/example.json b/playground/jsx-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/jsx-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/jsx-with-tests/cypress/integration/example.spec.js b/playground/jsx-with-tests/cypress/integration/example.spec.js deleted file mode 100644 index 7a8c909f..00000000 --- a/playground/jsx-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/jsx-with-tests/cypress/jsconfig.json b/playground/jsx-with-tests/cypress/jsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/jsx-with-tests/cypress/jsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], - "types": ["cypress"] - }, - "include": ["./**/*"] -} diff --git a/playground/jsx-with-tests/cypress/plugins/index.js b/playground/jsx-with-tests/cypress/plugins/index.js deleted file mode 100644 index ad2e351d..00000000 --- a/playground/jsx-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/jsx-with-tests/cypress/support/commands.js b/playground/jsx-with-tests/cypress/support/commands.js deleted file mode 100644 index 119ab03f..00000000 --- a/playground/jsx-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/jsx-with-tests/cypress/support/index.js b/playground/jsx-with-tests/cypress/support/index.js deleted file mode 100644 index d68db96d..00000000 --- a/playground/jsx-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/jsx-with-tests/index.html b/playground/jsx-with-tests/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/jsx-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/jsx-with-tests/package.json b/playground/jsx-with-tests/package.json deleted file mode 100644 index 740b9bcb..00000000 --- a/playground/jsx-with-tests/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "jsx-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": "^3.2.22" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.1", - "@cypress/vue": "^3.0.5", - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "cypress": "^8.7.0", - "start-server-and-test": "^1.14.0", - "vite": "^2.6.14" - } -} diff --git a/playground/jsx-with-tests/public/favicon.ico b/playground/jsx-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/jsx-with-tests/src/App.vue b/playground/jsx-with-tests/src/App.vue deleted file mode 100644 index b0b6901b..00000000 --- a/playground/jsx-with-tests/src/App.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - diff --git a/playground/jsx-with-tests/src/assets/base.css b/playground/jsx-with-tests/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/jsx-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/jsx-with-tests/src/assets/logo.svg b/playground/jsx-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/jsx-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/jsx-with-tests/src/components/HelloWorld.vue b/playground/jsx-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index aa16fa1f..00000000 --- a/playground/jsx-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/jsx-with-tests/src/components/TheWelcome.vue b/playground/jsx-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index 1d003f86..00000000 --- a/playground/jsx-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/jsx-with-tests/src/components/WelcomeItem.vue b/playground/jsx-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/jsx-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/jsx-with-tests/src/components/__tests__/HelloWorld.spec.js b/playground/jsx-with-tests/src/components/__tests__/HelloWorld.spec.js deleted file mode 100644 index a69f3a9d..00000000 --- a/playground/jsx-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, { props: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/jsx-with-tests/src/components/icons/IconCommunity.vue b/playground/jsx-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/jsx-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-with-tests/src/components/icons/IconDocumentation.vue b/playground/jsx-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/jsx-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-with-tests/src/components/icons/IconEcosystem.vue b/playground/jsx-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/jsx-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-with-tests/src/components/icons/IconSupport.vue b/playground/jsx-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/jsx-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx-with-tests/src/components/icons/IconTooling.vue b/playground/jsx-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/jsx-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/jsx-with-tests/src/main.js b/playground/jsx-with-tests/src/main.js deleted file mode 100644 index 01433bca..00000000 --- a/playground/jsx-with-tests/src/main.js +++ /dev/null @@ -1,4 +0,0 @@ -import { createApp } from 'vue' -import App from './App.vue' - -createApp(App).mount('#app') diff --git a/playground/jsx-with-tests/vite.config.js b/playground/jsx-with-tests/vite.config.js deleted file mode 100644 index f140f276..00000000 --- a/playground/jsx-with-tests/vite.config.js +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/jsx/.gitignore b/playground/jsx/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/jsx/.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/jsx/README.md b/playground/jsx/README.md deleted file mode 100644 index d689403f..00000000 --- a/playground/jsx/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# jsx - -This template should help get you started developing with Vue 3 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/jsx/index.html b/playground/jsx/index.html deleted file mode 100644 index 030a6ff5..00000000 --- a/playground/jsx/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/jsx/package.json b/playground/jsx/package.json deleted file mode 100644 index 95ca2e19..00000000 --- a/playground/jsx/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "jsx", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview --port 5050" - }, - "dependencies": { - "vue": "^3.2.22" - }, - "devDependencies": { - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "vite": "^2.6.14" - } -} diff --git a/playground/jsx/public/favicon.ico b/playground/jsx/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/jsx/src/App.vue b/playground/jsx/src/App.vue deleted file mode 100644 index b0b6901b..00000000 --- a/playground/jsx/src/App.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - diff --git a/playground/jsx/src/assets/base.css b/playground/jsx/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/jsx/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/jsx/src/assets/logo.svg b/playground/jsx/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/jsx/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/jsx/src/components/HelloWorld.vue b/playground/jsx/src/components/HelloWorld.vue deleted file mode 100644 index aa16fa1f..00000000 --- a/playground/jsx/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/playground/jsx/src/components/TheWelcome.vue b/playground/jsx/src/components/TheWelcome.vue deleted file mode 100644 index 1d003f86..00000000 --- a/playground/jsx/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/jsx/src/components/WelcomeItem.vue b/playground/jsx/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/jsx/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/jsx/src/components/icons/IconCommunity.vue b/playground/jsx/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/jsx/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx/src/components/icons/IconDocumentation.vue b/playground/jsx/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/jsx/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx/src/components/icons/IconEcosystem.vue b/playground/jsx/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/jsx/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx/src/components/icons/IconSupport.vue b/playground/jsx/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/jsx/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/jsx/src/components/icons/IconTooling.vue b/playground/jsx/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/jsx/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/jsx/src/main.js b/playground/jsx/src/main.js deleted file mode 100644 index 01433bca..00000000 --- a/playground/jsx/src/main.js +++ /dev/null @@ -1,4 +0,0 @@ -import { createApp } from 'vue' -import App from './App.vue' - -createApp(App).mount('#app') diff --git a/playground/jsx/vite.config.js b/playground/jsx/vite.config.js deleted file mode 100644 index f140f276..00000000 --- a/playground/jsx/vite.config.js +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/pinia-with-tests/package.json b/playground/pinia-with-tests/package.json index a7a70523..f3212607 100644 --- a/playground/pinia-with-tests/package.json +++ b/playground/pinia-with-tests/package.json @@ -11,15 +11,19 @@ "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'" }, "dependencies": { + "@vue/composition-api": "^1.4.0", "pinia": "^2.0.4", - "vue": "^3.2.22" + "vue": "^2.6.14" }, "devDependencies": { "@cypress/vite-dev-server": "^2.2.1", - "@cypress/vue": "^3.0.5", - "@vitejs/plugin-vue": "^1.10.0", + "@cypress/vue": "^2.2.4", + "@vue/runtime-dom": "^3.2.22", "cypress": "^8.7.0", "start-server-and-test": "^1.14.0", - "vite": "^2.6.14" + "unplugin-vue2-script-setup": "^0.7.1", + "vite": "^2.6.14", + "vite-plugin-vue2": "^1.9.0", + "vue-template-compiler": "^2.6.14" } } diff --git a/playground/pinia-with-tests/src/App.vue b/playground/pinia-with-tests/src/App.vue index b0b6901b..099c613b 100644 --- a/playground/pinia-with-tests/src/App.vue +++ b/playground/pinia-with-tests/src/App.vue @@ -4,17 +4,19 @@ import TheWelcome from './components/TheWelcome.vue' diff --git a/playground/typescript-jsx-pinia-with-tests/src/assets/base.css b/playground/typescript-jsx-pinia-with-tests/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/typescript-jsx-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-jsx-pinia-with-tests/src/assets/logo.svg b/playground/typescript-jsx-pinia-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-jsx-pinia-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-jsx-pinia-with-tests/src/components/HelloWorld.vue b/playground/typescript-jsx-pinia-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index 01118cd9..00000000 --- a/playground/typescript-jsx-pinia-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-pinia-with-tests/src/components/TheWelcome.vue b/playground/typescript-jsx-pinia-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index b91a8edd..00000000 --- a/playground/typescript-jsx-pinia-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/typescript-jsx-pinia-with-tests/src/components/WelcomeItem.vue b/playground/typescript-jsx-pinia-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-jsx-pinia-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-jsx-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts b/playground/typescript-jsx-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index a69f3a9d..00000000 --- a/playground/typescript-jsx-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, { props: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconCommunity.vue b/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconDocumentation.vue b/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconEcosystem.vue b/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconSupport.vue b/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconTooling.vue b/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-jsx-pinia-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-jsx-pinia-with-tests/src/main.ts b/playground/typescript-jsx-pinia-with-tests/src/main.ts deleted file mode 100644 index 5f77a891..00000000 --- a/playground/typescript-jsx-pinia-with-tests/src/main.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { createApp } from 'vue' -import { createPinia } from 'pinia' -import App from './App.vue' - -const app = createApp(App) - -app.use(createPinia()) - -app.mount('#app') diff --git a/playground/typescript-jsx-pinia-with-tests/src/stores/counter.ts b/playground/typescript-jsx-pinia-with-tests/src/stores/counter.ts deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/typescript-jsx-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-jsx-pinia-with-tests/tsconfig.json b/playground/typescript-jsx-pinia-with-tests/tsconfig.json deleted file mode 100644 index 8c707192..00000000 --- a/playground/typescript-jsx-pinia-with-tests/tsconfig.json +++ /dev/null @@ -1,21 +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 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-jsx-pinia-with-tests/vite.config.ts b/playground/typescript-jsx-pinia-with-tests/vite.config.ts deleted file mode 100644 index f140f276..00000000 --- a/playground/typescript-jsx-pinia-with-tests/vite.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-jsx-pinia/.gitignore b/playground/typescript-jsx-pinia/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-jsx-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-jsx-pinia/README.md b/playground/typescript-jsx-pinia/README.md deleted file mode 100644 index b8c8b93a..00000000 --- a/playground/typescript-jsx-pinia/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# typescript-jsx-pinia - -This template should help get you started developing with Vue 3 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-jsx-pinia/env.d.ts b/playground/typescript-jsx-pinia/env.d.ts deleted file mode 100644 index 636d9c3f..00000000 --- a/playground/typescript-jsx-pinia/env.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// - -declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any> - export default component -} diff --git a/playground/typescript-jsx-pinia/index.html b/playground/typescript-jsx-pinia/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-jsx-pinia/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-jsx-pinia/package.json b/playground/typescript-jsx-pinia/package.json deleted file mode 100644 index b7436763..00000000 --- a/playground/typescript-jsx-pinia/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "typescript-jsx-pinia", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "preview": "vite preview --port 5050", - "typecheck": "vue-tsc --noEmit" - }, - "dependencies": { - "pinia": "^2.0.4", - "vue": "^3.2.22" - }, - "devDependencies": { - "@types/node": "^16.11.10", - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "typescript": "~4.4.4", - "vite": "^2.6.14", - "vue-tsc": "^0.29.6" - } -} diff --git a/playground/typescript-jsx-pinia/public/favicon.ico b/playground/typescript-jsx-pinia/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/typescript-jsx-pinia/src/App.vue b/playground/typescript-jsx-pinia/src/App.vue deleted file mode 100644 index d91eefc4..00000000 --- a/playground/typescript-jsx-pinia/src/App.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-pinia/src/assets/base.css b/playground/typescript-jsx-pinia/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/typescript-jsx-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-jsx-pinia/src/assets/logo.svg b/playground/typescript-jsx-pinia/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-jsx-pinia/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-jsx-pinia/src/components/HelloWorld.vue b/playground/typescript-jsx-pinia/src/components/HelloWorld.vue deleted file mode 100644 index 01118cd9..00000000 --- a/playground/typescript-jsx-pinia/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-pinia/src/components/TheWelcome.vue b/playground/typescript-jsx-pinia/src/components/TheWelcome.vue deleted file mode 100644 index b91a8edd..00000000 --- a/playground/typescript-jsx-pinia/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/typescript-jsx-pinia/src/components/WelcomeItem.vue b/playground/typescript-jsx-pinia/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-jsx-pinia/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-jsx-pinia/src/components/icons/IconCommunity.vue b/playground/typescript-jsx-pinia/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-jsx-pinia/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-pinia/src/components/icons/IconDocumentation.vue b/playground/typescript-jsx-pinia/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-jsx-pinia/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-pinia/src/components/icons/IconEcosystem.vue b/playground/typescript-jsx-pinia/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-jsx-pinia/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-pinia/src/components/icons/IconSupport.vue b/playground/typescript-jsx-pinia/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-jsx-pinia/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-pinia/src/components/icons/IconTooling.vue b/playground/typescript-jsx-pinia/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-jsx-pinia/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-jsx-pinia/src/main.ts b/playground/typescript-jsx-pinia/src/main.ts deleted file mode 100644 index 5f77a891..00000000 --- a/playground/typescript-jsx-pinia/src/main.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { createApp } from 'vue' -import { createPinia } from 'pinia' -import App from './App.vue' - -const app = createApp(App) - -app.use(createPinia()) - -app.mount('#app') diff --git a/playground/typescript-jsx-pinia/src/stores/counter.ts b/playground/typescript-jsx-pinia/src/stores/counter.ts deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/typescript-jsx-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-jsx-pinia/tsconfig.json b/playground/typescript-jsx-pinia/tsconfig.json deleted file mode 100644 index 8c707192..00000000 --- a/playground/typescript-jsx-pinia/tsconfig.json +++ /dev/null @@ -1,21 +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 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-jsx-pinia/vite.config.ts b/playground/typescript-jsx-pinia/vite.config.ts deleted file mode 100644 index f140f276..00000000 --- a/playground/typescript-jsx-pinia/vite.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-jsx-router-pinia-with-tests/.gitignore b/playground/typescript-jsx-router-pinia-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia-with-tests/README.md b/playground/typescript-jsx-router-pinia-with-tests/README.md deleted file mode 100644 index 4353bb53..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# typescript-jsx-router-pinia-with-tests - -This template should help get you started developing with Vue 3 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-jsx-router-pinia-with-tests/cypress.json b/playground/typescript-jsx-router-pinia-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia-with-tests/cypress/fixtures/example.json b/playground/typescript-jsx-router-pinia-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia-with-tests/cypress/integration/example.spec.ts b/playground/typescript-jsx-router-pinia-with-tests/cypress/integration/example.spec.ts deleted file mode 100644 index 13a2922b..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia-with-tests/cypress/plugins/index.ts b/playground/typescript-jsx-router-pinia-with-tests/cypress/plugins/index.ts deleted file mode 100644 index ad2e351d..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia-with-tests/cypress/support/commands.ts b/playground/typescript-jsx-router-pinia-with-tests/cypress/support/commands.ts deleted file mode 100644 index 119ab03f..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia-with-tests/cypress/support/index.ts b/playground/typescript-jsx-router-pinia-with-tests/cypress/support/index.ts deleted file mode 100644 index d68db96d..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia-with-tests/cypress/tsconfig.json b/playground/typescript-jsx-router-pinia-with-tests/cypress/tsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia-with-tests/env.d.ts b/playground/typescript-jsx-router-pinia-with-tests/env.d.ts deleted file mode 100644 index 636d9c3f..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/env.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// - -declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any> - export default component -} diff --git a/playground/typescript-jsx-router-pinia-with-tests/index.html b/playground/typescript-jsx-router-pinia-with-tests/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-jsx-router-pinia-with-tests/package.json b/playground/typescript-jsx-router-pinia-with-tests/package.json deleted file mode 100644 index bf68ad2a..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "typescript-jsx-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": { - "pinia": "^2.0.4", - "vue": "^3.2.22", - "vue-router": "^4.0.12" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.1", - "@cypress/vue": "^3.0.5", - "@types/node": "^16.11.10", - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "cypress": "^8.7.0", - "start-server-and-test": "^1.14.0", - "typescript": "~4.4.4", - "vite": "^2.6.14", - "vue-tsc": "^0.29.6" - } -} diff --git a/playground/typescript-jsx-router-pinia-with-tests/public/favicon.ico b/playground/typescript-jsx-router-pinia-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/App.vue b/playground/typescript-jsx-router-pinia-with-tests/src/App.vue deleted file mode 100644 index 8a1e9b19..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/App.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/assets/base.css b/playground/typescript-jsx-router-pinia-with-tests/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia-with-tests/src/assets/logo.svg b/playground/typescript-jsx-router-pinia-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/components/HelloWorld.vue b/playground/typescript-jsx-router-pinia-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index 987adb9f..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/components/TheWelcome.vue b/playground/typescript-jsx-router-pinia-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index b91a8edd..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/components/WelcomeItem.vue b/playground/typescript-jsx-router-pinia-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts b/playground/typescript-jsx-router-pinia-with-tests/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index a69f3a9d..00000000 --- a/playground/typescript-jsx-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, { props: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconCommunity.vue b/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconDocumentation.vue b/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconEcosystem.vue b/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconSupport.vue b/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconTooling.vue b/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/main.ts b/playground/typescript-jsx-router-pinia-with-tests/src/main.ts deleted file mode 100644 index fda1e6e3..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/main.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { createApp } from 'vue' -import { createPinia } from 'pinia' - -import App from './App.vue' -import router from './router' - -const app = createApp(App) - -app.use(createPinia()) -app.use(router) - -app.mount('#app') diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/router/index.ts b/playground/typescript-jsx-router-pinia-with-tests/src/router/index.ts deleted file mode 100644 index a49ae507..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/router/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const router = createRouter({ - history: createWebHistory(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-jsx-router-pinia-with-tests/src/stores/counter.ts b/playground/typescript-jsx-router-pinia-with-tests/src/stores/counter.ts deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia-with-tests/src/views/AboutView.vue b/playground/typescript-jsx-router-pinia-with-tests/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-pinia-with-tests/src/views/HomeView.vue b/playground/typescript-jsx-router-pinia-with-tests/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-pinia-with-tests/tsconfig.json b/playground/typescript-jsx-router-pinia-with-tests/tsconfig.json deleted file mode 100644 index 8c707192..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/tsconfig.json +++ /dev/null @@ -1,21 +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 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-jsx-router-pinia-with-tests/vite.config.ts b/playground/typescript-jsx-router-pinia-with-tests/vite.config.ts deleted file mode 100644 index f140f276..00000000 --- a/playground/typescript-jsx-router-pinia-with-tests/vite.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-jsx-router-pinia/.gitignore b/playground/typescript-jsx-router-pinia/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia/README.md b/playground/typescript-jsx-router-pinia/README.md deleted file mode 100644 index a17dd346..00000000 --- a/playground/typescript-jsx-router-pinia/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# typescript-jsx-router-pinia - -This template should help get you started developing with Vue 3 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-jsx-router-pinia/env.d.ts b/playground/typescript-jsx-router-pinia/env.d.ts deleted file mode 100644 index 636d9c3f..00000000 --- a/playground/typescript-jsx-router-pinia/env.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// - -declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any> - export default component -} diff --git a/playground/typescript-jsx-router-pinia/index.html b/playground/typescript-jsx-router-pinia/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-jsx-router-pinia/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-jsx-router-pinia/package.json b/playground/typescript-jsx-router-pinia/package.json deleted file mode 100644 index 621a41a1..00000000 --- a/playground/typescript-jsx-router-pinia/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "typescript-jsx-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": { - "pinia": "^2.0.4", - "vue": "^3.2.22", - "vue-router": "^4.0.12" - }, - "devDependencies": { - "@types/node": "^16.11.10", - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "typescript": "~4.4.4", - "vite": "^2.6.14", - "vue-tsc": "^0.29.6" - } -} diff --git a/playground/typescript-jsx-router-pinia/public/favicon.ico b/playground/typescript-jsx-router-pinia/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/typescript-jsx-router-pinia/src/App.vue b/playground/typescript-jsx-router-pinia/src/App.vue deleted file mode 100644 index 8a1e9b19..00000000 --- a/playground/typescript-jsx-router-pinia/src/App.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-router-pinia/src/assets/base.css b/playground/typescript-jsx-router-pinia/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia/src/assets/logo.svg b/playground/typescript-jsx-router-pinia/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-jsx-router-pinia/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-jsx-router-pinia/src/components/HelloWorld.vue b/playground/typescript-jsx-router-pinia/src/components/HelloWorld.vue deleted file mode 100644 index 987adb9f..00000000 --- a/playground/typescript-jsx-router-pinia/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-router-pinia/src/components/TheWelcome.vue b/playground/typescript-jsx-router-pinia/src/components/TheWelcome.vue deleted file mode 100644 index b91a8edd..00000000 --- a/playground/typescript-jsx-router-pinia/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-pinia/src/components/WelcomeItem.vue b/playground/typescript-jsx-router-pinia/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-jsx-router-pinia/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-pinia/src/components/icons/IconCommunity.vue b/playground/typescript-jsx-router-pinia/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-jsx-router-pinia/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-pinia/src/components/icons/IconDocumentation.vue b/playground/typescript-jsx-router-pinia/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-jsx-router-pinia/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-pinia/src/components/icons/IconEcosystem.vue b/playground/typescript-jsx-router-pinia/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-jsx-router-pinia/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-pinia/src/components/icons/IconSupport.vue b/playground/typescript-jsx-router-pinia/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-jsx-router-pinia/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-pinia/src/components/icons/IconTooling.vue b/playground/typescript-jsx-router-pinia/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-jsx-router-pinia/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-jsx-router-pinia/src/main.ts b/playground/typescript-jsx-router-pinia/src/main.ts deleted file mode 100644 index fda1e6e3..00000000 --- a/playground/typescript-jsx-router-pinia/src/main.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { createApp } from 'vue' -import { createPinia } from 'pinia' - -import App from './App.vue' -import router from './router' - -const app = createApp(App) - -app.use(createPinia()) -app.use(router) - -app.mount('#app') diff --git a/playground/typescript-jsx-router-pinia/src/router/index.ts b/playground/typescript-jsx-router-pinia/src/router/index.ts deleted file mode 100644 index a49ae507..00000000 --- a/playground/typescript-jsx-router-pinia/src/router/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const router = createRouter({ - history: createWebHistory(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-jsx-router-pinia/src/stores/counter.ts b/playground/typescript-jsx-router-pinia/src/stores/counter.ts deleted file mode 100644 index 4a2d2427..00000000 --- a/playground/typescript-jsx-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-jsx-router-pinia/src/views/AboutView.vue b/playground/typescript-jsx-router-pinia/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/typescript-jsx-router-pinia/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-pinia/src/views/HomeView.vue b/playground/typescript-jsx-router-pinia/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/typescript-jsx-router-pinia/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-pinia/tsconfig.json b/playground/typescript-jsx-router-pinia/tsconfig.json deleted file mode 100644 index 8c707192..00000000 --- a/playground/typescript-jsx-router-pinia/tsconfig.json +++ /dev/null @@ -1,21 +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 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-jsx-router-pinia/vite.config.ts b/playground/typescript-jsx-router-pinia/vite.config.ts deleted file mode 100644 index f140f276..00000000 --- a/playground/typescript-jsx-router-pinia/vite.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-jsx-router-with-tests/.gitignore b/playground/typescript-jsx-router-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-jsx-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-jsx-router-with-tests/README.md b/playground/typescript-jsx-router-with-tests/README.md deleted file mode 100644 index d75a9773..00000000 --- a/playground/typescript-jsx-router-with-tests/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# typescript-jsx-router-with-tests - -This template should help get you started developing with Vue 3 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-jsx-router-with-tests/cypress.json b/playground/typescript-jsx-router-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/typescript-jsx-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-jsx-router-with-tests/cypress/fixtures/example.json b/playground/typescript-jsx-router-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/typescript-jsx-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-jsx-router-with-tests/cypress/integration/example.spec.ts b/playground/typescript-jsx-router-with-tests/cypress/integration/example.spec.ts deleted file mode 100644 index 13a2922b..00000000 --- a/playground/typescript-jsx-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-jsx-router-with-tests/cypress/plugins/index.ts b/playground/typescript-jsx-router-with-tests/cypress/plugins/index.ts deleted file mode 100644 index ad2e351d..00000000 --- a/playground/typescript-jsx-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-jsx-router-with-tests/cypress/support/commands.ts b/playground/typescript-jsx-router-with-tests/cypress/support/commands.ts deleted file mode 100644 index 119ab03f..00000000 --- a/playground/typescript-jsx-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-jsx-router-with-tests/cypress/support/index.ts b/playground/typescript-jsx-router-with-tests/cypress/support/index.ts deleted file mode 100644 index d68db96d..00000000 --- a/playground/typescript-jsx-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-jsx-router-with-tests/cypress/tsconfig.json b/playground/typescript-jsx-router-with-tests/cypress/tsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/typescript-jsx-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-jsx-router-with-tests/env.d.ts b/playground/typescript-jsx-router-with-tests/env.d.ts deleted file mode 100644 index 636d9c3f..00000000 --- a/playground/typescript-jsx-router-with-tests/env.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// - -declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any> - export default component -} diff --git a/playground/typescript-jsx-router-with-tests/index.html b/playground/typescript-jsx-router-with-tests/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-jsx-router-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-jsx-router-with-tests/package.json b/playground/typescript-jsx-router-with-tests/package.json deleted file mode 100644 index cc74af24..00000000 --- a/playground/typescript-jsx-router-with-tests/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "typescript-jsx-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": "^3.2.22", - "vue-router": "^4.0.12" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.1", - "@cypress/vue": "^3.0.5", - "@types/node": "^16.11.10", - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "cypress": "^8.7.0", - "start-server-and-test": "^1.14.0", - "typescript": "~4.4.4", - "vite": "^2.6.14", - "vue-tsc": "^0.29.6" - } -} diff --git a/playground/typescript-jsx-router-with-tests/public/favicon.ico b/playground/typescript-jsx-router-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/typescript-jsx-router-with-tests/src/App.vue b/playground/typescript-jsx-router-with-tests/src/App.vue deleted file mode 100644 index 8a1e9b19..00000000 --- a/playground/typescript-jsx-router-with-tests/src/App.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-router-with-tests/src/assets/base.css b/playground/typescript-jsx-router-with-tests/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/typescript-jsx-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-jsx-router-with-tests/src/assets/logo.svg b/playground/typescript-jsx-router-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-jsx-router-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-jsx-router-with-tests/src/components/HelloWorld.vue b/playground/typescript-jsx-router-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index 987adb9f..00000000 --- a/playground/typescript-jsx-router-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-router-with-tests/src/components/TheWelcome.vue b/playground/typescript-jsx-router-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index b91a8edd..00000000 --- a/playground/typescript-jsx-router-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-with-tests/src/components/WelcomeItem.vue b/playground/typescript-jsx-router-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-jsx-router-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-with-tests/src/components/__tests__/HelloWorld.spec.ts b/playground/typescript-jsx-router-with-tests/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index a69f3a9d..00000000 --- a/playground/typescript-jsx-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, { props: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/typescript-jsx-router-with-tests/src/components/icons/IconCommunity.vue b/playground/typescript-jsx-router-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-jsx-router-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-with-tests/src/components/icons/IconDocumentation.vue b/playground/typescript-jsx-router-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-jsx-router-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-with-tests/src/components/icons/IconEcosystem.vue b/playground/typescript-jsx-router-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-jsx-router-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-with-tests/src/components/icons/IconSupport.vue b/playground/typescript-jsx-router-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-jsx-router-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router-with-tests/src/components/icons/IconTooling.vue b/playground/typescript-jsx-router-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-jsx-router-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-jsx-router-with-tests/src/main.ts b/playground/typescript-jsx-router-with-tests/src/main.ts deleted file mode 100644 index c8e37b03..00000000 --- a/playground/typescript-jsx-router-with-tests/src/main.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { createApp } from 'vue' -import App from './App.vue' -import router from './router' - -const app = createApp(App) - -app.use(router) - -app.mount('#app') diff --git a/playground/typescript-jsx-router-with-tests/src/router/index.ts b/playground/typescript-jsx-router-with-tests/src/router/index.ts deleted file mode 100644 index a49ae507..00000000 --- a/playground/typescript-jsx-router-with-tests/src/router/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const router = createRouter({ - history: createWebHistory(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-jsx-router-with-tests/src/views/AboutView.vue b/playground/typescript-jsx-router-with-tests/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/typescript-jsx-router-with-tests/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-with-tests/src/views/HomeView.vue b/playground/typescript-jsx-router-with-tests/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/typescript-jsx-router-with-tests/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router-with-tests/tsconfig.json b/playground/typescript-jsx-router-with-tests/tsconfig.json deleted file mode 100644 index 8c707192..00000000 --- a/playground/typescript-jsx-router-with-tests/tsconfig.json +++ /dev/null @@ -1,21 +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 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-jsx-router-with-tests/vite.config.ts b/playground/typescript-jsx-router-with-tests/vite.config.ts deleted file mode 100644 index f140f276..00000000 --- a/playground/typescript-jsx-router-with-tests/vite.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-jsx-router/.gitignore b/playground/typescript-jsx-router/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-jsx-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-jsx-router/README.md b/playground/typescript-jsx-router/README.md deleted file mode 100644 index 1b2118a3..00000000 --- a/playground/typescript-jsx-router/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# typescript-jsx-router - -This template should help get you started developing with Vue 3 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-jsx-router/env.d.ts b/playground/typescript-jsx-router/env.d.ts deleted file mode 100644 index 636d9c3f..00000000 --- a/playground/typescript-jsx-router/env.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// - -declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any> - export default component -} diff --git a/playground/typescript-jsx-router/index.html b/playground/typescript-jsx-router/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-jsx-router/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-jsx-router/package.json b/playground/typescript-jsx-router/package.json deleted file mode 100644 index d54b04ca..00000000 --- a/playground/typescript-jsx-router/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "typescript-jsx-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": "^3.2.22", - "vue-router": "^4.0.12" - }, - "devDependencies": { - "@types/node": "^16.11.10", - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "typescript": "~4.4.4", - "vite": "^2.6.14", - "vue-tsc": "^0.29.6" - } -} diff --git a/playground/typescript-jsx-router/public/favicon.ico b/playground/typescript-jsx-router/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/typescript-jsx-router/src/App.vue b/playground/typescript-jsx-router/src/App.vue deleted file mode 100644 index 8a1e9b19..00000000 --- a/playground/typescript-jsx-router/src/App.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-router/src/assets/base.css b/playground/typescript-jsx-router/src/assets/base.css deleted file mode 100644 index 71dc55a3..00000000 --- a/playground/typescript-jsx-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-jsx-router/src/assets/logo.svg b/playground/typescript-jsx-router/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-jsx-router/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-jsx-router/src/components/HelloWorld.vue b/playground/typescript-jsx-router/src/components/HelloWorld.vue deleted file mode 100644 index 987adb9f..00000000 --- a/playground/typescript-jsx-router/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-router/src/components/TheWelcome.vue b/playground/typescript-jsx-router/src/components/TheWelcome.vue deleted file mode 100644 index b91a8edd..00000000 --- a/playground/typescript-jsx-router/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router/src/components/WelcomeItem.vue b/playground/typescript-jsx-router/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-jsx-router/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router/src/components/icons/IconCommunity.vue b/playground/typescript-jsx-router/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-jsx-router/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router/src/components/icons/IconDocumentation.vue b/playground/typescript-jsx-router/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-jsx-router/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router/src/components/icons/IconEcosystem.vue b/playground/typescript-jsx-router/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-jsx-router/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router/src/components/icons/IconSupport.vue b/playground/typescript-jsx-router/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-jsx-router/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-router/src/components/icons/IconTooling.vue b/playground/typescript-jsx-router/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-jsx-router/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-jsx-router/src/main.ts b/playground/typescript-jsx-router/src/main.ts deleted file mode 100644 index c8e37b03..00000000 --- a/playground/typescript-jsx-router/src/main.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { createApp } from 'vue' -import App from './App.vue' -import router from './router' - -const app = createApp(App) - -app.use(router) - -app.mount('#app') diff --git a/playground/typescript-jsx-router/src/router/index.ts b/playground/typescript-jsx-router/src/router/index.ts deleted file mode 100644 index a49ae507..00000000 --- a/playground/typescript-jsx-router/src/router/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const router = createRouter({ - history: createWebHistory(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-jsx-router/src/views/AboutView.vue b/playground/typescript-jsx-router/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/playground/typescript-jsx-router/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router/src/views/HomeView.vue b/playground/typescript-jsx-router/src/views/HomeView.vue deleted file mode 100644 index 6555a646..00000000 --- a/playground/typescript-jsx-router/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/playground/typescript-jsx-router/tsconfig.json b/playground/typescript-jsx-router/tsconfig.json deleted file mode 100644 index 8c707192..00000000 --- a/playground/typescript-jsx-router/tsconfig.json +++ /dev/null @@ -1,21 +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 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-jsx-router/vite.config.ts b/playground/typescript-jsx-router/vite.config.ts deleted file mode 100644 index f140f276..00000000 --- a/playground/typescript-jsx-router/vite.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-jsx-with-tests/.gitignore b/playground/typescript-jsx-with-tests/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-jsx-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-jsx-with-tests/README.md b/playground/typescript-jsx-with-tests/README.md deleted file mode 100644 index d6d8250f..00000000 --- a/playground/typescript-jsx-with-tests/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# typescript-jsx-with-tests - -This template should help get you started developing with Vue 3 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-jsx-with-tests/cypress.json b/playground/typescript-jsx-with-tests/cypress.json deleted file mode 100644 index 3d372252..00000000 --- a/playground/typescript-jsx-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-jsx-with-tests/cypress/fixtures/example.json b/playground/typescript-jsx-with-tests/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/playground/typescript-jsx-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-jsx-with-tests/cypress/integration/example.spec.ts b/playground/typescript-jsx-with-tests/cypress/integration/example.spec.ts deleted file mode 100644 index 7a8c909f..00000000 --- a/playground/typescript-jsx-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-jsx-with-tests/cypress/plugins/index.ts b/playground/typescript-jsx-with-tests/cypress/plugins/index.ts deleted file mode 100644 index ad2e351d..00000000 --- a/playground/typescript-jsx-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-jsx-with-tests/cypress/support/commands.ts b/playground/typescript-jsx-with-tests/cypress/support/commands.ts deleted file mode 100644 index 119ab03f..00000000 --- a/playground/typescript-jsx-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-jsx-with-tests/cypress/support/index.ts b/playground/typescript-jsx-with-tests/cypress/support/index.ts deleted file mode 100644 index d68db96d..00000000 --- a/playground/typescript-jsx-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-jsx-with-tests/cypress/tsconfig.json b/playground/typescript-jsx-with-tests/cypress/tsconfig.json deleted file mode 100644 index b5b2f972..00000000 --- a/playground/typescript-jsx-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-jsx-with-tests/env.d.ts b/playground/typescript-jsx-with-tests/env.d.ts deleted file mode 100644 index 636d9c3f..00000000 --- a/playground/typescript-jsx-with-tests/env.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// - -declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any> - export default component -} diff --git a/playground/typescript-jsx-with-tests/index.html b/playground/typescript-jsx-with-tests/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-jsx-with-tests/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-jsx-with-tests/package.json b/playground/typescript-jsx-with-tests/package.json deleted file mode 100644 index 7c397df0..00000000 --- a/playground/typescript-jsx-with-tests/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "typescript-jsx-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": "^3.2.22" - }, - "devDependencies": { - "@cypress/vite-dev-server": "^2.2.1", - "@cypress/vue": "^3.0.5", - "@types/node": "^16.11.10", - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "cypress": "^8.7.0", - "start-server-and-test": "^1.14.0", - "typescript": "~4.4.4", - "vite": "^2.6.14", - "vue-tsc": "^0.29.6" - } -} diff --git a/playground/typescript-jsx-with-tests/public/favicon.ico b/playground/typescript-jsx-with-tests/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/typescript-jsx-with-tests/src/App.vue b/playground/typescript-jsx-with-tests/src/App.vue deleted file mode 100644 index d91eefc4..00000000 --- a/playground/typescript-jsx-with-tests/src/App.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-with-tests/src/assets/base.css b/playground/typescript-jsx-with-tests/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/typescript-jsx-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-jsx-with-tests/src/assets/logo.svg b/playground/typescript-jsx-with-tests/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-jsx-with-tests/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-jsx-with-tests/src/components/HelloWorld.vue b/playground/typescript-jsx-with-tests/src/components/HelloWorld.vue deleted file mode 100644 index 01118cd9..00000000 --- a/playground/typescript-jsx-with-tests/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx-with-tests/src/components/TheWelcome.vue b/playground/typescript-jsx-with-tests/src/components/TheWelcome.vue deleted file mode 100644 index b91a8edd..00000000 --- a/playground/typescript-jsx-with-tests/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/typescript-jsx-with-tests/src/components/WelcomeItem.vue b/playground/typescript-jsx-with-tests/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-jsx-with-tests/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-jsx-with-tests/src/components/__tests__/HelloWorld.spec.ts b/playground/typescript-jsx-with-tests/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index a69f3a9d..00000000 --- a/playground/typescript-jsx-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, { props: { msg: 'Hello Cypress' } }) - }) - - it('renders properly', () => { - mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) - cy.get('h1').should('contain', 'Hello Cypress') - }) -}) diff --git a/playground/typescript-jsx-with-tests/src/components/icons/IconCommunity.vue b/playground/typescript-jsx-with-tests/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-jsx-with-tests/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-with-tests/src/components/icons/IconDocumentation.vue b/playground/typescript-jsx-with-tests/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-jsx-with-tests/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-with-tests/src/components/icons/IconEcosystem.vue b/playground/typescript-jsx-with-tests/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-jsx-with-tests/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-with-tests/src/components/icons/IconSupport.vue b/playground/typescript-jsx-with-tests/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-jsx-with-tests/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx-with-tests/src/components/icons/IconTooling.vue b/playground/typescript-jsx-with-tests/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-jsx-with-tests/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-jsx-with-tests/src/main.ts b/playground/typescript-jsx-with-tests/src/main.ts deleted file mode 100644 index 01433bca..00000000 --- a/playground/typescript-jsx-with-tests/src/main.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { createApp } from 'vue' -import App from './App.vue' - -createApp(App).mount('#app') diff --git a/playground/typescript-jsx-with-tests/tsconfig.json b/playground/typescript-jsx-with-tests/tsconfig.json deleted file mode 100644 index 8c707192..00000000 --- a/playground/typescript-jsx-with-tests/tsconfig.json +++ /dev/null @@ -1,21 +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 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-jsx-with-tests/vite.config.ts b/playground/typescript-jsx-with-tests/vite.config.ts deleted file mode 100644 index f140f276..00000000 --- a/playground/typescript-jsx-with-tests/vite.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-jsx/.gitignore b/playground/typescript-jsx/.gitignore deleted file mode 100644 index 133da84e..00000000 --- a/playground/typescript-jsx/.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-jsx/README.md b/playground/typescript-jsx/README.md deleted file mode 100644 index 0b75eadb..00000000 --- a/playground/typescript-jsx/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# typescript-jsx - -This template should help get you started developing with Vue 3 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-jsx/env.d.ts b/playground/typescript-jsx/env.d.ts deleted file mode 100644 index 636d9c3f..00000000 --- a/playground/typescript-jsx/env.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// - -declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any> - export default component -} diff --git a/playground/typescript-jsx/index.html b/playground/typescript-jsx/index.html deleted file mode 100644 index 11603f87..00000000 --- a/playground/typescript-jsx/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/typescript-jsx/package.json b/playground/typescript-jsx/package.json deleted file mode 100644 index 54f115c4..00000000 --- a/playground/typescript-jsx/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "typescript-jsx", - "version": "0.0.0", - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "preview": "vite preview --port 5050", - "typecheck": "vue-tsc --noEmit" - }, - "dependencies": { - "vue": "^3.2.22" - }, - "devDependencies": { - "@types/node": "^16.11.10", - "@vitejs/plugin-vue": "^1.10.0", - "@vitejs/plugin-vue-jsx": "^1.3.0", - "typescript": "~4.4.4", - "vite": "^2.6.14", - "vue-tsc": "^0.29.6" - } -} diff --git a/playground/typescript-jsx/public/favicon.ico b/playground/typescript-jsx/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4286 zc-q~UO-NKx6vyu*Vj+`4)S?!;bXAL*8OO4jfgrOFtOP;wW2`J?iWIaDl9|3-1{t(4 zS0U0O3ZqC{nTsL8l}k73B3CX35*lQf+xfqDUcI^RK2sYf=ncQ&&bjBD|2^m4dGkgH z54|cY1>VK$av}B!A*u*6iLfy3##JubeV8fe8d$HC7-vcgrEjafnfSpp z7pe!Wv!9qDBs0UdLe+kc$lCO?Y}>XT*t8E43pQ4+E$sux?IOl>wcmbTE8EWa3@~=-!5HV* zYV8+@RaHCjHY_`%)v~qDXMizmnl-F)j!pG|{r3{ny4ri69Fwi5d^y18(t~Nvwb|Nx zh>WT|Fcy-Rn*wI-mOhPP!<=Rf8P2t#9R!(}OH)*|iT5OOAW|$B2ye1a;^AJJsDlb^(kr+0->47CAIMSYl0Rmk=YW z&*RS#dFMr~Y(MAMow3o5#=y?#dA|S{!>0Nn7CDehvxX7YZgMJuSC*<)|>2qR-2@}Ny=kqhHQP;qrn{=7X!b} zFUGK84nFo6>?w0HA&@;8$aZ>+b*d+EdxFXhOA>MX{ds~2p>oZ^ohvEHDO z)1gD!|N4Klw61Ji%1p>4U15?clX9`dWU9y{;gJ$yL{^A6$OsVvX(1|7LX?3;AxglM T5Je#2NqB@O!Jnp#S;+nbsq**E diff --git a/playground/typescript-jsx/src/App.vue b/playground/typescript-jsx/src/App.vue deleted file mode 100644 index d91eefc4..00000000 --- a/playground/typescript-jsx/src/App.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx/src/assets/base.css b/playground/typescript-jsx/src/assets/base.css deleted file mode 100644 index 5427a030..00000000 --- a/playground/typescript-jsx/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-jsx/src/assets/logo.svg b/playground/typescript-jsx/src/assets/logo.svg deleted file mode 100644 index bc826fed..00000000 --- a/playground/typescript-jsx/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/typescript-jsx/src/components/HelloWorld.vue b/playground/typescript-jsx/src/components/HelloWorld.vue deleted file mode 100644 index 01118cd9..00000000 --- a/playground/typescript-jsx/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/playground/typescript-jsx/src/components/TheWelcome.vue b/playground/typescript-jsx/src/components/TheWelcome.vue deleted file mode 100644 index b91a8edd..00000000 --- a/playground/typescript-jsx/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/playground/typescript-jsx/src/components/WelcomeItem.vue b/playground/typescript-jsx/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def33..00000000 --- a/playground/typescript-jsx/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/playground/typescript-jsx/src/components/icons/IconCommunity.vue b/playground/typescript-jsx/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/playground/typescript-jsx/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx/src/components/icons/IconDocumentation.vue b/playground/typescript-jsx/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/playground/typescript-jsx/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx/src/components/icons/IconEcosystem.vue b/playground/typescript-jsx/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/playground/typescript-jsx/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx/src/components/icons/IconSupport.vue b/playground/typescript-jsx/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/playground/typescript-jsx/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/playground/typescript-jsx/src/components/icons/IconTooling.vue b/playground/typescript-jsx/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/playground/typescript-jsx/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/playground/typescript-jsx/src/main.ts b/playground/typescript-jsx/src/main.ts deleted file mode 100644 index 01433bca..00000000 --- a/playground/typescript-jsx/src/main.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { createApp } from 'vue' -import App from './App.vue' - -createApp(App).mount('#app') diff --git a/playground/typescript-jsx/tsconfig.json b/playground/typescript-jsx/tsconfig.json deleted file mode 100644 index 8c707192..00000000 --- a/playground/typescript-jsx/tsconfig.json +++ /dev/null @@ -1,21 +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 - }, - "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"] -} diff --git a/playground/typescript-jsx/vite.config.ts b/playground/typescript-jsx/vite.config.ts deleted file mode 100644 index f140f276..00000000 --- a/playground/typescript-jsx/vite.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { fileURLToPath } from 'url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue(), vueJsx()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/playground/typescript-pinia-with-tests/env.d.ts b/playground/typescript-pinia-with-tests/env.d.ts index 636d9c3f..dc50f12e 100644 --- a/playground/typescript-pinia-with-tests/env.d.ts +++ b/playground/typescript-pinia-with-tests/env.d.ts @@ -1,8 +1,16 @@ /// declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any> - export default component + import Vue from 'vue' + export default Vue +} + +declare global { + namespace JSX { + interface Element extends VNode {} + interface ElementClass extends Vue {} + interface IntrinsicElements { + [elem: string]: any + } + } } diff --git a/playground/typescript-pinia-with-tests/package.json b/playground/typescript-pinia-with-tests/package.json index 405f42e2..8d08c4db 100644 --- a/playground/typescript-pinia-with-tests/package.json +++ b/playground/typescript-pinia-with-tests/package.json @@ -12,18 +12,22 @@ "typecheck": "vue-tsc --noEmit" }, "dependencies": { + "@vue/composition-api": "^1.4.0", "pinia": "^2.0.4", - "vue": "^3.2.22" + "vue": "^2.6.14" }, "devDependencies": { "@cypress/vite-dev-server": "^2.2.1", - "@cypress/vue": "^3.0.5", + "@cypress/vue": "^2.2.4", "@types/node": "^16.11.10", - "@vitejs/plugin-vue": "^1.10.0", + "@vue/runtime-dom": "^3.2.22", "cypress": "^8.7.0", "start-server-and-test": "^1.14.0", "typescript": "~4.4.4", + "unplugin-vue2-script-setup": "^0.7.1", "vite": "^2.6.14", + "vite-plugin-vue2": "^1.9.0", + "vue-template-compiler": "^2.6.14", "vue-tsc": "^0.29.6" } } diff --git a/playground/typescript-pinia-with-tests/src/App.vue b/playground/typescript-pinia-with-tests/src/App.vue index d91eefc4..794bc449 100644 --- a/playground/typescript-pinia-with-tests/src/App.vue +++ b/playground/typescript-pinia-with-tests/src/App.vue @@ -4,17 +4,19 @@ import TheWelcome from './components/TheWelcome.vue'