diff --git a/app/toonpets.corneruniverse.com/.editorconfig b/.editorconfig similarity index 100% rename from app/toonpets.corneruniverse.com/.editorconfig rename to .editorconfig diff --git a/app/toonpets.corneruniverse.com/.gitattributes b/.gitattributes similarity index 100% rename from app/toonpets.corneruniverse.com/.gitattributes rename to .gitattributes diff --git a/.gitignore b/.gitignore index abfdd97..7414e0e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,33 +1,39 @@ -# ---> Vue -# gitignore template for Vue.js projects -# -# Recommended template: Node.gitignore - -# TODO: where does this rule come from? -docs/_book - -# TODO: where does this rule come from? -test/ - -.DS_Store -node_modules -/dist - -# local env files -.env.local -.env.*.local - -# Log files +# 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 +coverage +*.local # Editor directories and files +.vscode/* +!.vscode/extensions.json .idea -.vscode *.suo *.ntvs* *.njsproj *.sln -*.sw? \ No newline at end of file +*.sw? + +*.tsbuildinfo + +.eslintcache + +# Cypress +/cypress/videos/ +/cypress/screenshots/ + +# Vitest +__screenshots__/ + +test-results/ +playwright-report/ diff --git a/app/toonpets.corneruniverse.com/.oxlintrc.json b/.oxlintrc.json similarity index 100% rename from app/toonpets.corneruniverse.com/.oxlintrc.json rename to .oxlintrc.json diff --git a/app/toonpets.corneruniverse.com/.prettierrc.json b/.prettierrc.json similarity index 100% rename from app/toonpets.corneruniverse.com/.prettierrc.json rename to .prettierrc.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a3e2a91 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,11 @@ +{ + "recommendations": [ + "Vue.volar", + "vitest.explorer", + "ms-playwright.playwright", + "dbaeumer.vscode-eslint", + "EditorConfig.EditorConfig", + "oxc.oxc-vscode", + "prettier.prettier-vscode" + ] +} diff --git a/README.md b/README.md index a2fd8aa..457813f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,73 @@ # toonpets.corneruniverse.com -Website for toonpets \ No newline at end of file +This template should help get you started developing with Vue 3 in Vite. + +## Recommended IDE Setup + +[VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). + +## Recommended Browser Setup + +- Chromium-based browsers (Chrome, Edge, Brave, etc.): + - [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd) + - [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters) +- Firefox: + - [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/) + - [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/) + +## Type Support for `.vue` Imports in TS + +TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types. + +## Customize configuration + +See [Vite Configuration Reference](https://vite.dev/config/). + +## Project Setup + +```sh +npm install +``` + +### Compile and Hot-Reload for Development + +```sh +npm run dev +``` + +### Type-Check, Compile and Minify for Production + +```sh +npm run build +``` + +### Run Unit Tests with [Vitest](https://vitest.dev/) + +```sh +npm run test:unit +``` + +### Run End-to-End Tests with [Playwright](https://playwright.dev) + +```sh +# Install browsers for the first run +npx playwright install + +# When testing on CI, must build the project first +npm run build + +# Runs the end-to-end tests +npm run test:e2e +# Runs the tests only on Chromium +npm run test:e2e -- --project=chromium +# Runs the tests of a specific file +npm run test:e2e -- tests/example.spec.ts +# Runs the tests in debug mode +npm run test:e2e -- --debug +``` + +### Lint with [ESLint](https://eslint.org/) + +```sh +npm run lint +``` diff --git a/app/toonpets.corneruniverse.com/.gitignore b/app/toonpets.corneruniverse.com/.gitignore deleted file mode 100644 index 7414e0e..0000000 --- a/app/toonpets.corneruniverse.com/.gitignore +++ /dev/null @@ -1,39 +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 -coverage -*.local - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -*.tsbuildinfo - -.eslintcache - -# Cypress -/cypress/videos/ -/cypress/screenshots/ - -# Vitest -__screenshots__/ - -test-results/ -playwright-report/ diff --git a/app/toonpets.corneruniverse.com/README.md b/app/toonpets.corneruniverse.com/README.md deleted file mode 100644 index 457813f..0000000 --- a/app/toonpets.corneruniverse.com/README.md +++ /dev/null @@ -1,73 +0,0 @@ -# toonpets.corneruniverse.com - -This template should help get you started developing with Vue 3 in Vite. - -## Recommended IDE Setup - -[VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). - -## Recommended Browser Setup - -- Chromium-based browsers (Chrome, Edge, Brave, etc.): - - [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd) - - [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters) -- Firefox: - - [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/) - - [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/) - -## Type Support for `.vue` Imports in TS - -TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types. - -## Customize configuration - -See [Vite Configuration Reference](https://vite.dev/config/). - -## Project Setup - -```sh -npm install -``` - -### Compile and Hot-Reload for Development - -```sh -npm run dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -npm run build -``` - -### Run Unit Tests with [Vitest](https://vitest.dev/) - -```sh -npm run test:unit -``` - -### Run End-to-End Tests with [Playwright](https://playwright.dev) - -```sh -# Install browsers for the first run -npx playwright install - -# When testing on CI, must build the project first -npm run build - -# Runs the end-to-end tests -npm run test:e2e -# Runs the tests only on Chromium -npm run test:e2e -- --project=chromium -# Runs the tests of a specific file -npm run test:e2e -- tests/example.spec.ts -# Runs the tests in debug mode -npm run test:e2e -- --debug -``` - -### Lint with [ESLint](https://eslint.org/) - -```sh -npm run lint -``` diff --git a/app/toonpets.corneruniverse.com/e2e/tsconfig.json b/e2e/tsconfig.json similarity index 100% rename from app/toonpets.corneruniverse.com/e2e/tsconfig.json rename to e2e/tsconfig.json diff --git a/app/toonpets.corneruniverse.com/e2e/vue.spec.ts b/e2e/vue.spec.ts similarity index 100% rename from app/toonpets.corneruniverse.com/e2e/vue.spec.ts rename to e2e/vue.spec.ts diff --git a/app/toonpets.corneruniverse.com/env.d.ts b/env.d.ts similarity index 100% rename from app/toonpets.corneruniverse.com/env.d.ts rename to env.d.ts diff --git a/app/toonpets.corneruniverse.com/eslint.config.ts b/eslint.config.ts similarity index 100% rename from app/toonpets.corneruniverse.com/eslint.config.ts rename to eslint.config.ts diff --git a/app/toonpets.corneruniverse.com/index.html b/index.html similarity index 100% rename from app/toonpets.corneruniverse.com/index.html rename to index.html diff --git a/app/toonpets.corneruniverse.com/package-lock.json b/package-lock.json similarity index 100% rename from app/toonpets.corneruniverse.com/package-lock.json rename to package-lock.json diff --git a/app/toonpets.corneruniverse.com/package.json b/package.json similarity index 100% rename from app/toonpets.corneruniverse.com/package.json rename to package.json diff --git a/app/toonpets.corneruniverse.com/playwright.config.ts b/playwright.config.ts similarity index 100% rename from app/toonpets.corneruniverse.com/playwright.config.ts rename to playwright.config.ts diff --git a/app/toonpets.corneruniverse.com/public/favicon.ico b/public/favicon.ico similarity index 100% rename from app/toonpets.corneruniverse.com/public/favicon.ico rename to public/favicon.ico diff --git a/app/toonpets.corneruniverse.com/src/App.vue b/src/App.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/App.vue rename to src/App.vue diff --git a/app/toonpets.corneruniverse.com/src/assets/base.css b/src/assets/base.css similarity index 100% rename from app/toonpets.corneruniverse.com/src/assets/base.css rename to src/assets/base.css diff --git a/app/toonpets.corneruniverse.com/src/assets/logo.svg b/src/assets/logo.svg similarity index 100% rename from app/toonpets.corneruniverse.com/src/assets/logo.svg rename to src/assets/logo.svg diff --git a/app/toonpets.corneruniverse.com/src/assets/main.css b/src/assets/main.css similarity index 100% rename from app/toonpets.corneruniverse.com/src/assets/main.css rename to src/assets/main.css diff --git a/app/toonpets.corneruniverse.com/src/components/HelloWorld.vue b/src/components/HelloWorld.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/components/HelloWorld.vue rename to src/components/HelloWorld.vue diff --git a/app/toonpets.corneruniverse.com/src/components/TheWelcome.vue b/src/components/TheWelcome.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/components/TheWelcome.vue rename to src/components/TheWelcome.vue diff --git a/app/toonpets.corneruniverse.com/src/components/WelcomeItem.vue b/src/components/WelcomeItem.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/components/WelcomeItem.vue rename to src/components/WelcomeItem.vue diff --git a/app/toonpets.corneruniverse.com/src/components/__tests__/HelloWorld.spec.ts b/src/components/__tests__/HelloWorld.spec.ts similarity index 100% rename from app/toonpets.corneruniverse.com/src/components/__tests__/HelloWorld.spec.ts rename to src/components/__tests__/HelloWorld.spec.ts diff --git a/app/toonpets.corneruniverse.com/src/components/icons/IconCommunity.vue b/src/components/icons/IconCommunity.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/components/icons/IconCommunity.vue rename to src/components/icons/IconCommunity.vue diff --git a/app/toonpets.corneruniverse.com/src/components/icons/IconDocumentation.vue b/src/components/icons/IconDocumentation.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/components/icons/IconDocumentation.vue rename to src/components/icons/IconDocumentation.vue diff --git a/app/toonpets.corneruniverse.com/src/components/icons/IconEcosystem.vue b/src/components/icons/IconEcosystem.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/components/icons/IconEcosystem.vue rename to src/components/icons/IconEcosystem.vue diff --git a/app/toonpets.corneruniverse.com/src/components/icons/IconSupport.vue b/src/components/icons/IconSupport.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/components/icons/IconSupport.vue rename to src/components/icons/IconSupport.vue diff --git a/app/toonpets.corneruniverse.com/src/components/icons/IconTooling.vue b/src/components/icons/IconTooling.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/components/icons/IconTooling.vue rename to src/components/icons/IconTooling.vue diff --git a/app/toonpets.corneruniverse.com/src/main.ts b/src/main.ts similarity index 100% rename from app/toonpets.corneruniverse.com/src/main.ts rename to src/main.ts diff --git a/app/toonpets.corneruniverse.com/src/router/index.ts b/src/router/index.ts similarity index 100% rename from app/toonpets.corneruniverse.com/src/router/index.ts rename to src/router/index.ts diff --git a/app/toonpets.corneruniverse.com/src/stores/counter.ts b/src/stores/counter.ts similarity index 100% rename from app/toonpets.corneruniverse.com/src/stores/counter.ts rename to src/stores/counter.ts diff --git a/app/toonpets.corneruniverse.com/src/views/AboutView.vue b/src/views/AboutView.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/views/AboutView.vue rename to src/views/AboutView.vue diff --git a/app/toonpets.corneruniverse.com/src/views/HomeView.vue b/src/views/HomeView.vue similarity index 100% rename from app/toonpets.corneruniverse.com/src/views/HomeView.vue rename to src/views/HomeView.vue diff --git a/app/toonpets.corneruniverse.com/tsconfig.app.json b/tsconfig.app.json similarity index 100% rename from app/toonpets.corneruniverse.com/tsconfig.app.json rename to tsconfig.app.json diff --git a/app/toonpets.corneruniverse.com/tsconfig.json b/tsconfig.json similarity index 100% rename from app/toonpets.corneruniverse.com/tsconfig.json rename to tsconfig.json diff --git a/app/toonpets.corneruniverse.com/tsconfig.node.json b/tsconfig.node.json similarity index 100% rename from app/toonpets.corneruniverse.com/tsconfig.node.json rename to tsconfig.node.json diff --git a/app/toonpets.corneruniverse.com/tsconfig.vitest.json b/tsconfig.vitest.json similarity index 100% rename from app/toonpets.corneruniverse.com/tsconfig.vitest.json rename to tsconfig.vitest.json diff --git a/app/toonpets.corneruniverse.com/vite.config.ts b/vite.config.ts similarity index 100% rename from app/toonpets.corneruniverse.com/vite.config.ts rename to vite.config.ts diff --git a/app/toonpets.corneruniverse.com/vitest.config.ts b/vitest.config.ts similarity index 100% rename from app/toonpets.corneruniverse.com/vitest.config.ts rename to vitest.config.ts