Skip to content

Commit

Permalink
chore: updated project configuration to latest vue and vite releases
Browse files Browse the repository at this point in the history
  • Loading branch information
colinscz committed Dec 27, 2024
1 parent 9eeb11f commit 99bd44f
Show file tree
Hide file tree
Showing 23 changed files with 3,602 additions and 1,942 deletions.
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 22.x
cache: pnpm

- name: Install
Expand All @@ -29,11 +29,11 @@ jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 22.x
cache: pnpm

- name: Install
Expand Down
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

4 changes: 4 additions & 0 deletions e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "@tsconfig/node22/tsconfig.json",
"include": ["./**/*"]
}
8 changes: 8 additions & 0 deletions e2e/vue.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { test, expect } from '@playwright/test';

// See here how to get started:
// https://playwright.dev/docs/intro
test('visits the app root url', async ({ page }) => {
await page.goto('/');
await expect(page.locator('div.greetings > h1')).toHaveText('You did it!');
})
1 change: 1 addition & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
9 changes: 9 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-check
import antfu from '@antfu/eslint-config'

export default antfu(
{
unocss: true,
formatters: true,
},
)
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
<title>Pomodorino</title>
</head>
<body>
<div id="app"></div>
Expand Down
49 changes: 33 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,48 @@
"type": "module",
"version": "0.0.0",
"private": true,
"packageManager": "pnpm@8.6.10",
"packageManager": "pnpm@9.15.1",
"scripts": {
"dev": "vite --port 3333 --open",
"build": "vue-tsc && vite build",
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"test:unit": "vitest",
"test:e2e": "playwright test",
"build-only": "vite build",
"type-check": "vue-tsc --build",
"lint-no-fix": "eslint .",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
"lint": "eslint . --fix",
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
"@vueuse/core": "^9.13.0",
"@vueuse/head": "^1.1.23",
"vue": "^3.2.47"
"@unhead/vue": "^1.11.14",
"@vueuse/core": "^12.2.0",
"@vueuse/head": "^2.0.0",
"vue": "^3.5.13",
"vue-router": "^4.5.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.37.0",
"@vitejs/plugin-vue": "^4.1.0",
"@antfu/eslint-config": "^3.12.1",
"@tsconfig/node22": "^22.0.0",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.10.2",
"@vitejs/plugin-vue": "^5.2.1",
"@vitest/eslint-plugin": "1.1.20",
"@vue/eslint-config-typescript": "^14.1.3",
"autoprefixer": "^10.4.14",
"eslint": "^8.36.0",
"eslint": "^9.17.0",
"eslint-plugin-vue": "^9.30.0",
"jsdom": "^25.0.1",
"npm-run-all2": "^7.0.2",
"postcss": "^8.4.21",
"prettier": "^2.8.7",
"prettier-plugin-tailwindcss": "^0.2.6",
"tailwindcss": "^3.3.1",
"typescript": "^4.9.3",
"vite": "^4.2.0",
"vue-tsc": "^1.2.0"
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"vite": "^6.0.6",
"vite-plugin-vue-devtools": "^7.6.8",
"vitest": "^2.1.8",
"vue-tsc": "^2.2.0"
},
"resolutions": {
"vite": "^6.0.6"
}
}
Loading

0 comments on commit 99bd44f

Please sign in to comment.