create-vue 3.18.2 → 3.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/LICENSE +0 -29
  2. package/README.md +1 -1
  3. package/bundle.js +276 -608
  4. package/package.json +8 -9
  5. package/template/base/package.json +4 -4
  6. package/template/config/cypress/package.json +2 -2
  7. package/template/config/cypress-ct/package.json +2 -2
  8. package/template/config/jsx/package.json +3 -3
  9. package/template/config/nightwatch/package.json +5 -5
  10. package/template/config/nightwatch-ct/package.json +1 -1
  11. package/template/config/pinia/package.json +2 -2
  12. package/template/config/playwright/package.json +1 -1
  13. package/template/config/router/package.json +2 -2
  14. package/template/config/typescript/package.json +3 -3
  15. package/template/config/vitest/package.json +3 -3
  16. package/template/formatting/oxfmt/.vscode/settings.json +14 -0
  17. package/template/formatting/oxfmt/_oxfmtrc.jsonc +5 -0
  18. package/template/formatting/oxfmt/_prettierrc.json +7 -0
  19. package/template/formatting/oxfmt/package.json +13 -0
  20. package/template/formatting/prettier/.vscode/extensions.json +3 -0
  21. package/template/formatting/prettier/.vscode/settings.json +4 -0
  22. package/template/formatting/prettier/package.json +8 -0
  23. package/template/linting/base/_editorconfig +8 -0
  24. package/template/linting/base/package.json +9 -0
  25. package/template/linting/core/js/eslint.config.js.data.mjs +15 -0
  26. package/template/linting/core/js/eslint.config.js.ejs +27 -0
  27. package/template/linting/core/js/package.json +8 -0
  28. package/template/linting/core/ts/eslint.config.js.data.mjs +15 -0
  29. package/template/linting/core/ts/eslint.config.js.ejs +24 -0
  30. package/template/linting/core/ts/package.json +9 -0
  31. package/template/linting/cypress/eslint.config.js.data.mjs +19 -0
  32. package/template/linting/cypress/package.json +5 -0
  33. package/template/linting/cypress-ct/eslint.config.js.data.mjs +25 -0
  34. package/template/linting/oxlint/.vscode/extensions.json +3 -0
  35. package/template/linting/oxlint/_ oxlintrc.json +10 -0
  36. package/template/linting/oxlint/eslint.config.js.data.mjs +12 -0
  37. package/template/linting/oxlint/package.json +12 -0
  38. package/template/linting/playwright/eslint.config.js.data.mjs +16 -0
  39. package/template/linting/playwright/package.json +5 -0
  40. package/template/linting/prettier/eslint.config.js.data.mjs +12 -0
  41. package/template/linting/prettier/package.json +6 -0
  42. package/template/linting/vitest/eslint.config.js.data.mjs +16 -0
  43. package/template/linting/vitest/package.json +5 -0
  44. package/template/tsconfig/base/package.json +1 -1
  45. package/template/tsconfig/base/tsconfig.node.json +1 -1
  46. package/template/tsconfig/nightwatch/nightwatch/tsconfig.json +1 -1
  47. package/template/tsconfig/playwright/e2e/tsconfig.json +1 -1
  48. package/template/config/prettier/.vscode/extensions.json +0 -3
  49. package/template/config/prettier/.vscode/settings.json +0 -4
  50. package/template/config/prettier/package.json +0 -8
  51. package/template/eslint/package.json +0 -7
  52. /package/template/{config/oxlint → formatting/oxfmt}/.vscode/extensions.json +0 -0
  53. /package/template/{config → formatting}/prettier/_prettierrc.json +0 -0
  54. /package/template/{config/eslint → linting/base}/.vscode/extensions.json +0 -0
  55. /package/template/{config/eslint → linting/base}/.vscode/settings.json +0 -0
  56. /package/template/{config/prettier → linting/base}/_gitattributes +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue",
3
- "version": "3.18.2",
3
+ "version": "3.18.4",
4
4
  "description": "🛠️ The recommended way to start a Vite-powered Vue project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -28,25 +28,24 @@
28
28
  "homepage": "https://github.com/vuejs/create-vue#readme",
29
29
  "devDependencies": {
30
30
  "@clack/prompts": "^0.11.0",
31
- "@tsconfig/node22": "^22.0.2",
31
+ "@tsconfig/node24": "^24.0.3",
32
32
  "@types/eslint": "^9.6.1",
33
- "@types/node": "^22.18.12",
33
+ "@types/node": "^24.10.4",
34
34
  "@types/prompts": "^2.4.9",
35
- "@vue/create-eslint-config": "^0.13.0",
36
35
  "@vue/tsconfig": "^0.8.1",
37
36
  "ejs": "^3.1.10",
38
37
  "husky": "^9.1.7",
39
- "lint-staged": "^16.2.5",
38
+ "lint-staged": "^16.2.7",
40
39
  "picocolors": "^1.1.1",
41
- "prettier": "3.6.2",
42
- "rolldown": "1.0.0-beta.43",
40
+ "prettier": "3.7.4",
41
+ "rolldown": "1.0.0-beta.57",
43
42
  "rollup-plugin-license": "^3.6.0",
44
- "vitest": "^3.2.4",
43
+ "vitest": "^4.0.16",
45
44
  "zx": "^8.8.5"
46
45
  },
47
46
  "lint-staged": {
48
47
  "*.{js,ts,vue,json}": [
49
- "prettier --write"
48
+ "prettier --write --experimental-cli"
50
49
  ]
51
50
  },
52
51
  "publishConfig": {
@@ -10,11 +10,11 @@
10
10
  "preview": "vite preview"
11
11
  },
12
12
  "dependencies": {
13
- "vue": "^3.5.22"
13
+ "vue": "^3.5.26"
14
14
  },
15
15
  "devDependencies": {
16
- "@vitejs/plugin-vue": "^6.0.1",
17
- "vite": "^7.1.11",
18
- "vite-plugin-vue-devtools": "^8.0.3"
16
+ "@vitejs/plugin-vue": "^6.0.3",
17
+ "vite": "^7.3.0",
18
+ "vite-plugin-vue-devtools": "^8.0.5"
19
19
  }
20
20
  }
@@ -5,7 +5,7 @@
5
5
  "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'"
6
6
  },
7
7
  "devDependencies": {
8
- "cypress": "^15.5.0",
9
- "start-server-and-test": "^2.1.2"
8
+ "cypress": "^15.8.1",
9
+ "start-server-and-test": "^2.1.3"
10
10
  }
11
11
  }
@@ -4,9 +4,9 @@
4
4
  "test:unit:dev": "cypress open --component"
5
5
  },
6
6
  "dependencies": {
7
- "vue": "^3.5.22"
7
+ "vue": "^3.5.26"
8
8
  },
9
9
  "devDependencies": {
10
- "cypress": "^15.5.0"
10
+ "cypress": "^15.8.1"
11
11
  }
12
12
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.5.22"
3
+ "vue": "^3.5.26"
4
4
  },
5
5
  "devDependencies": {
6
- "@vitejs/plugin-vue-jsx": "^5.1.1",
7
- "vite": "^7.1.11"
6
+ "@vitejs/plugin-vue-jsx": "^5.1.3",
7
+ "vite": "^7.3.0"
8
8
  }
9
9
  }
@@ -4,12 +4,12 @@
4
4
  },
5
5
  "devDependencies": {
6
6
  "@nightwatch/vue": "^3.1.2",
7
- "@vitejs/plugin-vue": "^6.0.1",
8
- "chromedriver": "^141.0.3",
9
- "geckodriver": "^6.0.2",
10
- "nightwatch": "^3.12.2",
7
+ "@vitejs/plugin-vue": "^6.0.3",
8
+ "chromedriver": "^143.0.3",
9
+ "geckodriver": "^6.1.0",
10
+ "nightwatch": "^3.14.0",
11
11
  "ts-node": "^10.9.2",
12
- "vite": "^7.1.11",
12
+ "vite": "^7.3.0",
13
13
  "vite-plugin-nightwatch": "^0.4.6"
14
14
  }
15
15
  }
@@ -3,7 +3,7 @@
3
3
  "test:unit": "nightwatch src/**/__tests__/*"
4
4
  },
5
5
  "dependencies": {
6
- "vue": "^3.5.22"
6
+ "vue": "^3.5.26"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@vue/test-utils": "^2.4.6"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "pinia": "^3.0.3",
4
- "vue": "^3.5.22"
3
+ "pinia": "^3.0.4",
4
+ "vue": "^3.5.26"
5
5
  }
6
6
  }
@@ -3,6 +3,6 @@
3
3
  "test:e2e": "playwright test"
4
4
  },
5
5
  "devDependencies": {
6
- "@playwright/test": "^1.56.1"
6
+ "@playwright/test": "^1.57.0"
7
7
  }
8
8
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.5.22",
4
- "vue-router": "^4.6.3"
3
+ "vue": "^3.5.26",
4
+ "vue-router": "^4.6.4"
5
5
  }
6
6
  }
@@ -5,9 +5,9 @@
5
5
  "type-check": "vue-tsc --build"
6
6
  },
7
7
  "devDependencies": {
8
- "@types/node": "^22.18.11",
8
+ "@types/node": "^24.10.4",
9
9
  "npm-run-all2": "^8.0.4",
10
- "typescript": "~5.9.0",
11
- "vue-tsc": "^3.1.1"
10
+ "typescript": "~5.9.3",
11
+ "vue-tsc": "^3.2.1"
12
12
  }
13
13
  }
@@ -3,11 +3,11 @@
3
3
  "test:unit": "vitest"
4
4
  },
5
5
  "dependencies": {
6
- "vue": "^3.5.22"
6
+ "vue": "^3.5.26"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@vue/test-utils": "^2.4.6",
10
- "jsdom": "^27.0.1",
11
- "vitest": "^3.2.4"
10
+ "jsdom": "^27.3.0",
11
+ "vitest": "^4.0.16"
12
12
  }
13
13
  }
@@ -0,0 +1,14 @@
1
+ {
2
+ "[javascript]": {
3
+ "editor.defaultFormatter": "oxc.oxc-vscode"
4
+ },
5
+ "[javascriptreact]": {
6
+ "editor.defaultFormatter": "oxc.oxc-vscode"
7
+ },
8
+ "[typescript]": {
9
+ "editor.defaultFormatter": "oxc.oxc-vscode"
10
+ },
11
+ "[typescriptreact]": {
12
+ "editor.defaultFormatter": "oxc.oxc-vscode"
13
+ }
14
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "./node_modules/oxfmt/configuration_schema.json",
3
+ "semi": false,
4
+ "singleQuote": true,
5
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/prettierrc",
3
+ "semi": false,
4
+ "singleQuote": true,
5
+ "printWidth": 100,
6
+ "plugins": ["@prettier/plugin-oxc"]
7
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "scripts": {
3
+ "format:oxfmt": "oxfmt src/",
4
+ "format:prettier": "prettier --write --experimental-cli src/ '!**/*.{js,jsx,ts,tsx}'",
5
+ "format": "run-p format:oxfmt format:prettier"
6
+ },
7
+ "devDependencies": {
8
+ "@prettier/plugin-oxc": "^0.1.3",
9
+ "npm-run-all2": "^8.0.4",
10
+ "prettier": "3.7.4",
11
+ "oxfmt": "^0.20.0"
12
+ }
13
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["prettier.prettier-vscode"]
3
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "editor.formatOnSave": true,
3
+ "editor.defaultFormatter": "prettier.prettier-vscode"
4
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "scripts": {
3
+ "format": "prettier --write --experimental-cli src/"
4
+ },
5
+ "devDependencies": {
6
+ "prettier": "3.7.4"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ [*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
2
+ charset = utf-8
3
+ indent_size = 2
4
+ indent_style = space
5
+ insert_final_newline = true
6
+ trim_trailing_whitespace = true
7
+ end_of_line = lf
8
+ max_line_length = 100
@@ -0,0 +1,9 @@
1
+ {
2
+ "scripts": {
3
+ "lint": "eslint . --fix --cache"
4
+ },
5
+ "devDependencies": {
6
+ "eslint-plugin-vue": "~10.6.2",
7
+ "eslint": "^9.39.2"
8
+ }
9
+ }
@@ -0,0 +1,15 @@
1
+ export default function getData() {
2
+ return {
3
+ configs: [
4
+ {
5
+ importer: `import js from '@eslint/js'`,
6
+ content: ` js.configs.recommended,`,
7
+ },
8
+
9
+ {
10
+ importer: `import pluginVue from 'eslint-plugin-vue'`,
11
+ content: ` ...pluginVue.configs['flat/essential'],`,
12
+ },
13
+ ],
14
+ }
15
+ }
@@ -0,0 +1,27 @@
1
+ import { defineConfig, globalIgnores } from 'eslint/config'
2
+ import globals from 'globals'
3
+ <%_ for (const { importer } of configs) { _%>
4
+ <%_ if (importer) { _%><%- importer %>
5
+ <%_ } _%>
6
+ <%_ } _%>
7
+
8
+ export default defineConfig([
9
+ {
10
+ name: 'app/files-to-lint',
11
+ files: ['**/*.{vue,js,mjs,jsx}'],
12
+ },
13
+
14
+ globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
15
+
16
+ {
17
+ languageOptions: {
18
+ globals: {
19
+ ...globals.browser,
20
+ },
21
+ },
22
+ },
23
+
24
+ <%_ for (const { content } of configs) { _%>
25
+ <%- content %>
26
+ <%_ } _%>
27
+ ])
@@ -0,0 +1,8 @@
1
+ {
2
+ "devDependencies": {
3
+ "@eslint/js": "^9.39.2",
4
+ "eslint-plugin-vue": "~10.6.2",
5
+ "eslint": "^9.39.2",
6
+ "globals": "^16.5.0"
7
+ }
8
+ }
@@ -0,0 +1,15 @@
1
+ export default function getData() {
2
+ return {
3
+ configs: [
4
+ {
5
+ importer: `import pluginVue from 'eslint-plugin-vue'`,
6
+ content: ` ...pluginVue.configs['flat/essential'],`,
7
+ },
8
+
9
+ {
10
+ // skipped importer for this one because it was already there
11
+ content: ` vueTsConfigs.recommended,`,
12
+ },
13
+ ],
14
+ }
15
+ }
@@ -0,0 +1,24 @@
1
+ import { globalIgnores } from 'eslint/config'
2
+ import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
3
+ <%_ for (const { importer } of configs) { _%>
4
+ <%_ if (importer) { _%><%- importer %>
5
+ <%_ } _%>
6
+ <%_ } _%>
7
+
8
+ // To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
9
+ // import { configureVueProject } from '@vue/eslint-config-typescript'
10
+ // configureVueProject({ scriptLangs: ['ts', 'tsx'] })
11
+ // More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup
12
+
13
+ export default defineConfigWithVueTs(
14
+ {
15
+ name: 'app/files-to-lint',
16
+ files: ['**/*.{vue,ts,mts,tsx}'],
17
+ },
18
+
19
+ globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
20
+
21
+ <%_ for (const { content } of configs) { _%>
22
+ <%- content %>
23
+ <%_ } _%>
24
+ )
@@ -0,0 +1,9 @@
1
+ {
2
+ "devDependencies": {
3
+ "@vue/eslint-config-typescript": "^14.6.0",
4
+ "eslint": "^9.39.2",
5
+ "eslint-plugin-vue": "~10.6.2",
6
+ "jiti": "^2.6.1",
7
+ "typescript": "~5.9.3"
8
+ }
9
+ }
@@ -0,0 +1,19 @@
1
+ export default function getData({ oldData }) {
2
+ return {
3
+ ...oldData,
4
+ configs: [
5
+ ...oldData.configs,
6
+ {
7
+ importer: `import pluginCypress from 'eslint-plugin-cypress'`,
8
+ content: `
9
+ {
10
+ ...pluginCypress.configs.recommended,
11
+ files: [
12
+ 'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}',
13
+ 'cypress/support/**/*.{js,ts,jsx,tsx}',
14
+ ],
15
+ },`,
16
+ },
17
+ ],
18
+ }
19
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "devDependencies": {
3
+ "eslint-plugin-cypress": "^5.2.0"
4
+ }
5
+ }
@@ -0,0 +1,25 @@
1
+ export default function getData({ oldData }) {
2
+ return {
3
+ ...oldData,
4
+ configs: oldData.configs.map((c) => {
5
+ if (!c.content.includes('pluginCypress')) {
6
+ return c
7
+ }
8
+
9
+ return {
10
+ ...c,
11
+
12
+ // modify the files pattern to include component testing files
13
+ content: `
14
+ {
15
+ ...pluginCypress.configs.recommended,
16
+ files: [
17
+ '**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}',
18
+ 'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}',
19
+ 'cypress/support/**/*.{js,ts,jsx,tsx}',
20
+ ],
21
+ },`,
22
+ }
23
+ }),
24
+ }
25
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["oxc.oxc-vscode"]
3
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ "plugins": ["eslint", "typescript", "unicorn", "oxc", "vue"],
4
+ "env": {
5
+ "browser": true
6
+ },
7
+ "categories": {
8
+ "correctness": "error"
9
+ }
10
+ }
@@ -0,0 +1,12 @@
1
+ export default function getData({ oldData }) {
2
+ return {
3
+ ...oldData,
4
+ configs: [
5
+ ...oldData.configs,
6
+ {
7
+ importer: `import pluginOxlint from 'eslint-plugin-oxlint'`,
8
+ content: `\n ...pluginOxlint.configs['flat/recommended'],`,
9
+ },
10
+ ],
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "scripts": {
3
+ "lint:oxlint": "oxlint . --fix",
4
+ "lint:eslint": "eslint . --fix --cache",
5
+ "lint": "run-s lint:*"
6
+ },
7
+ "devDependencies": {
8
+ "eslint-plugin-oxlint": "~1.35.0",
9
+ "npm-run-all2": "^8.0.4",
10
+ "oxlint": "~1.35.0"
11
+ }
12
+ }
@@ -0,0 +1,16 @@
1
+ export default function getData({ oldData }) {
2
+ return {
3
+ ...oldData,
4
+ configs: [
5
+ ...oldData.configs,
6
+ {
7
+ importer: "import pluginPlaywright from 'eslint-plugin-playwright'",
8
+ content: `
9
+ {
10
+ ...pluginPlaywright.configs['flat/recommended'],
11
+ files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'],
12
+ },`,
13
+ },
14
+ ],
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "devDependencies": {
3
+ "eslint-plugin-playwright": "^2.4.0"
4
+ }
5
+ }
@@ -0,0 +1,12 @@
1
+ export default function getData({ oldData }) {
2
+ return {
3
+ ...oldData,
4
+ configs: [
5
+ ...oldData.configs,
6
+ {
7
+ importer: `import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'`,
8
+ content: `\n skipFormatting,`,
9
+ },
10
+ ],
11
+ }
12
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "devDependencies": {
3
+ "@vue/eslint-config-prettier": "^10.2.0",
4
+ "prettier": "3.7.4"
5
+ }
6
+ }
@@ -0,0 +1,16 @@
1
+ export default function getData({ oldData }) {
2
+ return {
3
+ ...oldData,
4
+ configs: [
5
+ ...oldData.configs,
6
+ {
7
+ importer: `import pluginVitest from '@vitest/eslint-plugin'`,
8
+ content: `
9
+ {
10
+ ...pluginVitest.configs.recommended,
11
+ files: ['src/**/__tests__/*'],
12
+ },`,
13
+ },
14
+ ],
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "devDependencies": {
3
+ "@vitest/eslint-plugin": "^1.6.4"
4
+ }
5
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@tsconfig/node22": "^22.0.2",
3
+ "@tsconfig/node24": "^24.0.3",
4
4
  "@vue/tsconfig": "^0.8.1"
5
5
  }
6
6
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "@tsconfig/node22/tsconfig.json",
2
+ "extends": "@tsconfig/node24/tsconfig.json",
3
3
  "include": [
4
4
  "vite.config.*",
5
5
  "vitest.config.*",
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "@tsconfig/node22/tsconfig.json",
2
+ "extends": "@tsconfig/node24/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "noEmit": true,
5
5
  "tsBuildInfoFile": "../node_modules/.tmp/tsconfig.nightwatch.tsbuildinfo",
@@ -1,4 +1,4 @@
1
1
  {
2
- "extends": "@tsconfig/node22/tsconfig.json",
2
+ "extends": "@tsconfig/node24/tsconfig.json",
3
3
  "include": ["./**/*"]
4
4
  }
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["esbenp.prettier-vscode"]
3
- }
@@ -1,4 +0,0 @@
1
- {
2
- "editor.formatOnSave": true,
3
- "editor.defaultFormatter": "esbenp.prettier-vscode"
4
- }
@@ -1,8 +0,0 @@
1
- {
2
- "scripts": {
3
- "format": "prettier --write src/"
4
- },
5
- "devDependencies": {
6
- "prettier": "3.6.2"
7
- }
8
- }
@@ -1,7 +0,0 @@
1
- {
2
- "devDependencies": {
3
- "@vitest/eslint-plugin": "^1.3.23",
4
- "eslint-plugin-cypress": "^5.2.0",
5
- "eslint-plugin-playwright": "^2.2.2"
6
- }
7
- }