chore(deps): 更新多个依赖项版本
All checks were successful
/ build-and-deploy-to-vercel (push) Successful in 3m3s
/ lint-build-and-check (push) Successful in 4m31s
/ surge (push) Successful in 2m46s
/ playwright (push) Successful in 4m31s

This commit is contained in:
严浩
2025-03-28 09:53:06 +08:00
parent 0cf585be90
commit 4b109a0829
3 changed files with 1673 additions and 1850 deletions

View File

@ -1,5 +1,5 @@
{ {
"packageManager": "pnpm@10.5.2", "packageManager": "pnpm@10.7.0",
"name": "vue-ts-example", "name": "vue-ts-example",
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,
@ -41,8 +41,8 @@
"dependencies": { "dependencies": {
"@alova/adapter-axios": "^2.0.12", "@alova/adapter-axios": "^2.0.12",
"@formkit/auto-animate": "^0.8.2", "@formkit/auto-animate": "^0.8.2",
"@intlify/unplugin-vue-i18n": "^6.0.3", "@intlify/unplugin-vue-i18n": "^6.0.5",
"@pinia/colada": "^0.13.5", "@pinia/colada": "^0.14.2",
"@primeuix/themes": "^1.0.0", "@primeuix/themes": "^1.0.0",
"@unhead/vue": "^2.0.2", "@unhead/vue": "^2.0.2",
"@vant/use": "^1.6.0", "@vant/use": "^1.6.0",
@ -83,22 +83,22 @@
}, },
"devDependencies": { "devDependencies": {
"@eslint/compat": "^1.2.6", "@eslint/compat": "^1.2.6",
"@faker-js/faker": "^9.4.0", "@faker-js/faker": "^9.6.0",
"@iconify-json/carbon": "^1.2.6", "@iconify-json/carbon": "^1.2.8",
"@iconify/utils": "^2.3.0", "@iconify/utils": "^2.3.0",
"@playwright/test": "^1.50.1", "@playwright/test": "^1.51.1",
"@primevue/auto-import-resolver": "^4.3.1", "@primevue/auto-import-resolver": "^4.3.1",
"@tsconfig/node22": "^22.0.0", "@tsconfig/node22": "^22.0.1",
"@types/archiver": "^6.0.3", "@types/archiver": "^6.0.3",
"@types/mockjs": "^1.0.10", "@types/mockjs": "^1.0.10",
"@types/node": "^22.13.10", "@types/node": "^22.13.14",
"@types/nprogress": "^0.2.3", "@types/nprogress": "^0.2.3",
"@unocss/preset-rem-to-px": "^66.0.0", "@unocss/preset-rem-to-px": "^66.0.0",
"@vant/auto-import-resolver": "^1.2.1", "@vant/auto-import-resolver": "^1.2.1",
"@vitejs/plugin-vue": "^5.2.1", "@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1", "@vitejs/plugin-vue-jsx": "^4.1.1",
"@vue/eslint-config-prettier": "^10.2.0", "@vue/eslint-config-prettier": "^10.2.0",
"@vue/eslint-config-typescript": "^14.3.0", "@vue/eslint-config-typescript": "^14.5.0",
"@vue/test-utils": "^2.4.6", "@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.7.0", "@vue/tsconfig": "^0.7.0",
"archiver": "^7.0.1", "archiver": "^7.0.1",
@ -107,7 +107,7 @@
"depcheck": "^1.4.7", "depcheck": "^1.4.7",
"eruda": "^3.4.1", "eruda": "^3.4.1",
"eslint": "^9.20.1", "eslint": "^9.20.1",
"eslint-plugin-import-x": "^4.6.1", "eslint-plugin-import-x": "^4.9.3",
"eslint-plugin-oxlint": "^0.15.15", "eslint-plugin-oxlint": "^0.15.15",
"eslint-plugin-perfectionist": "^4.8.0", "eslint-plugin-perfectionist": "^4.8.0",
"eslint-plugin-unicorn": "^58.0.0", "eslint-plugin-unicorn": "^58.0.0",
@ -117,7 +117,7 @@
"lint-staged": "^15.4.3", "lint-staged": "^15.4.3",
"mockjs": "^1.1.0", "mockjs": "^1.1.0",
"npm-run-all2": "^7.0.2", "npm-run-all2": "^7.0.2",
"oxlint": "^0.15.13", "oxlint": "^0.15.15",
"prettier": "3.5.3", "prettier": "3.5.3",
"sass-embedded": "^1.83.4", "sass-embedded": "^1.83.4",
"surge": "^0.24.6", "surge": "^0.24.6",
@ -127,19 +127,19 @@
"unocss-preset-animations": "^1.1.1", "unocss-preset-animations": "^1.1.1",
"unocss-preset-chinese": "^0.3.3", "unocss-preset-chinese": "^0.3.3",
"unocss-preset-shadcn": "^0.5.0", "unocss-preset-shadcn": "^0.5.0",
"unplugin-auto-import": "^19.1.1", "unplugin-auto-import": "^19.1.2",
"unplugin-icons": "^22.1.0", "unplugin-icons": "^22.1.0",
"unplugin-vue-components": "^28.4.1", "unplugin-vue-components": "^28.4.1",
"unplugin-vue-macros": "^2.14.5", "unplugin-vue-macros": "^2.14.5",
"unplugin-vue-markdown": "^28.3.1", "unplugin-vue-markdown": "^28.3.1",
"unplugin-vue-router": "^0.12.0", "unplugin-vue-router": "^0.12.0",
"vite": "^6.1.0", "vite": "^6.2.3",
"vite-plugin-cdn-import": "^1.0.1", "vite-plugin-cdn-import": "^1.0.1",
"vite-plugin-fake-server": "^2.2.0", "vite-plugin-fake-server": "^2.2.0",
"vite-plugin-purgecss-updated-v5": "^1.2.4", "vite-plugin-purgecss-updated-v5": "^1.2.4",
"vite-plugin-singlefile": "^2.2.0", "vite-plugin-singlefile": "^2.2.0",
"vite-plugin-static-copy": "^2.3.0", "vite-plugin-static-copy": "^2.3.0",
"vite-plugin-vue-devtools": "^7.7.1", "vite-plugin-vue-devtools": "^7.7.2",
"vite-plugin-vue-layouts": "^0.11.0", "vite-plugin-vue-layouts": "^0.11.0",
"vite-plugin-vue-meta-layouts": "^0.5.1", "vite-plugin-vue-meta-layouts": "^0.5.1",
"vite-plugin-webfont-dl": "^3.10.4", "vite-plugin-webfont-dl": "^3.10.4",

View File

@ -1,59 +1,57 @@
import { defineConfig, devices } from '@playwright/test'; import { defineConfig, devices } from '@playwright/test';
import process from 'node:process';
/** /**
* Read environment variables from file. * Read environment variables from file.
* https://github.com/motdotla/dotenv * https://github.com/motdotla/dotenv
*/ */
// import dotenv from 'dotenv'; // require('dotenv').config();
// import path from 'path';
// dotenv.config({ path: path.resolve(__dirname, '.env') });
/** /**
* See https://playwright.dev/docs/test-configuration. * See https://playwright.dev/docs/test-configuration.
*/ */
export default defineConfig({ export default defineConfig({
expect: { expect: {
timeout: 30 * 1000, /**
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout: 5000,
}, },
/* Fail the build on CI if you accidentally left test.only in the source code. */ /* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI, forbidOnly: !!process.env.CI,
/* Run tests in files in parallel */
fullyParallel: true,
/* Configure projects for major browsers */ /* Configure projects for major browsers */
projects: [ projects: [
{ { name: 'chromium', use: { ...devices['Desktop Chrome'] } },
name: 'chromium', { name: 'firefox', use: { ...devices['Desktop Firefox'] } },
use: { ...devices['Desktop Chrome'] }, { name: 'webkit', use: { ...devices['Desktop Safari'] } },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
/* Test against mobile viewports. */ /* Test against mobile viewports. */
// { // {
// name: 'Mobile Chrome', // name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] }, // use: {
// ...devices['Pixel 5'],
// },
// }, // },
// { // {
// name: 'Mobile Safari', // name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] }, // use: {
// ...devices['iPhone 12'],
// },
// }, // },
/* Test against branded browsers. */ /* Test against branded browsers. */
// { // {
// name: 'Microsoft Edge', // name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' }, // use: {
// channel: 'msedge',
// },
// }, // },
// { // {
// name: 'Google Chrome', // name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' }, // use: {
// channel: 'chrome',
// },
// }, // },
], ],
/* Reporter to use. See https://playwright.dev/docs/test-reporters */ /* Reporter to use. See https://playwright.dev/docs/test-reporters */
@ -61,22 +59,37 @@ export default defineConfig({
/* Retry on CI only */ /* Retry on CI only */
retries: process.env.CI ? 2 : 0, retries: process.env.CI ? 2 : 0,
testDir: './tests/playwright', testDir: './tests/playwright',
/* Maximum time one test can run for. */
timeout: 30 * 1000,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: { use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */ /* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.BASE_URL || 'https://vue-ts-example.oo1.dev', baseURL: process.env.BASE_URL || 'https://vue-ts-example.oo1.dev',
/* Only on CI systems run the tests headless */
headless: !!process.env.CI,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry', trace: 'on-first-retry',
}, },
/* Opt out of parallel tests on CI. */ // /* Run your local dev server before starting the tests */
workers: process.env.CI ? 1 : undefined,
/* Run your local dev server before starting the tests */
// webServer: { // webServer: {
// command: 'npm run start', // /**
// url: 'http://127.0.0.1:3000', // * Use the dev server by default for faster feedback loop.
// * Use the preview server on CI for more realistic testing.
// * Playwright will re-use the local server if there is already a dev-server running.
// */
// command: process.env.CI ? 'npm run preview' : 'npm run dev',
// port: process.env.CI ? 4173 : 5173,
// reuseExistingServer: !process.env.CI, // reuseExistingServer: !process.env.CI,
// }, // },
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
// outputDir: 'test-results/',
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
}); });

3422
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff