Skip to content

Commit 5ea4fdb

Browse files
committed
feat: update to Vite v5
1 parent c99e4ee commit 5ea4fdb

File tree

10 files changed

+3083
-1565
lines changed

10 files changed

+3083
-1565
lines changed

Diff for: pnpm-lock.yaml

+3,057-1,546
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: template/base/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"dev": "vite",
45
"build": "vite build",
@@ -8,9 +9,9 @@
89
"vue": "^2.7.16"
910
},
1011
"devDependencies": {
11-
"@vitejs/plugin-legacy": "^2.0.0",
12-
"@vitejs/plugin-vue2": "^1.1.2",
13-
"terser": "^5.14.2",
14-
"vite": "^3.0.2"
12+
"@vitejs/plugin-legacy": "^5.2.0",
13+
"@vitejs/plugin-vue2": "^2.3.1",
14+
"terser": "^5.26.0",
15+
"vite": "^5.0.10"
1516
}
1617
}

Diff for: template/config/cypress-ct/cypress.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const { defineConfig } = require('cypress')
1+
import { defineConfig } from 'cypress'
22

3-
module.exports = defineConfig({
3+
export default defineConfig({
44
e2e: {
55
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
66
baseUrl: 'http://localhost:4173'

Diff for: template/config/cypress-ct/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"scripts": {
33
"test:unit": "cypress open --component",
4-
"test:unit:ci": "cypress run --component --quiet --reporter spec"
4+
"test:unit:ci": "cypress run --component"
55
},
66
"dependencies": {
77
"vue": "^2.7.16"
88
},
99
"devDependencies": {
10-
"cypress": "^10.3.0"
10+
"cypress": "^13.6.1"
1111
}
1212
}

Diff for: template/config/cypress/cypress.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const { defineConfig } = require('cypress')
1+
import { defineConfig } from 'cypress'
22

3-
module.exports = defineConfig({
3+
export default defineConfig({
44
e2e: {
55
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
66
baseUrl: 'http://localhost:4173'

Diff for: template/config/cypress/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"scripts": {
3-
"test:e2e": "start-server-and-test preview http://localhost:4173/ 'cypress open --e2e'",
4-
"test:e2e:ci": "start-server-and-test preview http://localhost:4173/ 'cypress run --e2e'"
3+
"test:e2e": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'",
4+
"test:e2e:ci": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'"
55
},
66
"devDependencies": {
7-
"cypress": "^10.3.0",
8-
"start-server-and-test": "^1.14.0"
7+
"cypress": "^13.6.1",
8+
"start-server-and-test": "^2.0.3"
99
}
1010
}

Diff for: template/config/jsx/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"vue": "^2.7.16"
44
},
55
"devDependencies": {
6-
"@vitejs/plugin-vue2-jsx": "^1.0.2",
7-
"vite": "^3.0.2"
6+
"@vitejs/plugin-vue2-jsx": "^1.1.1",
7+
"vite": "^5.0.10"
88
}
99
}

Diff for: template/config/typescript/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type-check": "vue-tsc --noEmit"
66
},
77
"devDependencies": {
8-
"@types/node": "^16.11.45",
8+
"@types/node": "^18.0.6",
99
"npm-run-all": "^4.1.5",
1010
"typescript": "~4.7.4",
1111
"vue-tsc": "^0.38.8"

Diff for: template/tsconfig/cypress-ct/tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
{
1111
"path": "./tsconfig.cypress-ct.json"
1212
}
13-
]
13+
],
14+
"compilerOptions": {
15+
"module": "NodeNext"
16+
}
1417
}

Diff for: template/tsconfig/vitest/tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
{
1111
"path": "./tsconfig.vitest.json"
1212
}
13-
]
13+
],
14+
"compilerOptions": {
15+
"module": "NodeNext"
16+
}
1417
}

0 commit comments

Comments
 (0)