versacompiler 2.4.0 → 2.5.0

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 (33) hide show
  1. package/README.md +722 -722
  2. package/dist/compiler/compile-worker-pool.js +96 -0
  3. package/dist/compiler/compile-worker-thread.cjs +72 -0
  4. package/dist/compiler/compile.js +81 -2
  5. package/dist/compiler/integrity-validator.js +1 -1
  6. package/dist/compiler/module-resolution-optimizer.js +23 -20
  7. package/dist/compiler/performance-monitor.js +61 -61
  8. package/dist/compiler/pipeline/build-pipeline.js +127 -0
  9. package/dist/compiler/pipeline/core-plugins.js +218 -0
  10. package/dist/compiler/pipeline/module-graph.js +63 -0
  11. package/dist/compiler/pipeline/plugin-driver.js +87 -0
  12. package/dist/compiler/pipeline/types.js +2 -0
  13. package/dist/compiler/transforms.js +222 -16
  14. package/dist/compiler/typescript-manager.js +3 -1
  15. package/dist/compiler/typescript-sync-validator.js +33 -31
  16. package/dist/compiler/typescript-worker-pool.js +66 -19
  17. package/dist/compiler/typescript-worker-thread.cjs +482 -469
  18. package/dist/compiler/vuejs.js +32 -32
  19. package/dist/config.js +2 -0
  20. package/dist/hrm/VueHRM.js +359 -359
  21. package/dist/hrm/errorScreen.js +83 -83
  22. package/dist/hrm/getInstanciaVue.js +313 -313
  23. package/dist/hrm/initHRM.js +628 -586
  24. package/dist/main.js +2 -1
  25. package/dist/servicios/browserSync.js +8 -2
  26. package/dist/servicios/file-watcher.js +48 -6
  27. package/dist/servicios/readConfig.js +129 -54
  28. package/dist/servicios/versacompile.config.types.js +2 -0
  29. package/dist/utils/module-resolver.js +74 -40
  30. package/dist/utils/vue-types-setup.js +248 -248
  31. package/dist/wrappers/eslint-node.js +3 -1
  32. package/dist/wrappers/oxlint-node.js +3 -1
  33. package/package.json +73 -54
package/package.json CHANGED
@@ -1,27 +1,61 @@
1
1
  {
2
2
  "name": "versacompiler",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "Una herramienta para compilar y minificar archivos .vue, .js y .ts para proyectos de Vue 3 con soporte para TypeScript.",
5
- "main": "dist/main.js",
5
+ "keywords": [
6
+ "compiler",
7
+ "linter",
8
+ "minifier",
9
+ "typescript",
10
+ "versacompiler",
11
+ "vue",
12
+ "vue3"
13
+ ],
14
+ "homepage": "https://github.com/kriollo/versaCompiler#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/kriollo/versaCompiler/issues"
17
+ },
18
+ "license": "MIT",
19
+ "author": "Jorge Jara H (kriollone@gmail.com)",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/kriollo/versaCompiler.git"
23
+ },
6
24
  "bin": {
7
25
  "versacompiler": "dist/main.js"
8
26
  },
9
- "publishConfig": {
10
- "access": "public"
11
- },
12
27
  "files": [
13
28
  "dist",
14
29
  "LICENSE",
15
30
  "README.md"
16
31
  ],
17
32
  "type": "module",
33
+ "main": "dist/main.js",
34
+ "types": "dist/config.d.ts",
35
+ "exports": {
36
+ ".": {
37
+ "import": "./dist/main.js",
38
+ "types": "./dist/main.d.ts"
39
+ },
40
+ "./config": {
41
+ "import": "./dist/config.js",
42
+ "types": "./dist/config.d.ts"
43
+ }
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
18
48
  "scripts": {
19
49
  "dev": "tsx --watch src/main.ts --watch --verbose --tailwind",
20
50
  "file": "tsx src/main.ts ",
21
- "build": "tsx src/main.ts --all -t --cc --co -y --verbose",
51
+ "build": "tsx src/main.ts --all --cc --co -y && pnpm build:types",
52
+ "build:types": "tsc -p tsconfig.declarations.json",
22
53
  "compileDev": "tsx src/main.ts --all --ci --cc -y -t --linter --verbose",
23
54
  "vlint": "tsx src/main.ts --all --cc --co -y --linter",
24
- "vtlint": "tsx src/main.ts --all --cc --co -y -t",
55
+ "vtlint": "tsx src/main.ts --all --cc --co -y -t --verbose",
56
+ "e2e": "playwright test",
57
+ "e2e:ui": "playwright test --ui",
58
+ "e2e:report": "playwright show-report playwright-report",
25
59
  "test": "vitest run",
26
60
  "test:watch": "vitest",
27
61
  "test:ui": "vitest --ui",
@@ -29,83 +63,68 @@
29
63
  "lint": "oxlint --fix --config .oxlintrc.json",
30
64
  "lint:eslint": "eslint --ext .js,.ts,.vue src/ --fix"
31
65
  },
32
- "keywords": [
33
- "vue",
34
- "compiler",
35
- "minifier",
36
- "vue3",
37
- "versacompiler",
38
- "typescript",
39
- "linter"
40
- ],
41
- "author": "Jorge Jara H (kriollone@gmail.com)",
42
- "license": "MIT",
43
- "repository": {
44
- "type": "git",
45
- "url": "git+https://github.com/kriollo/versaCompiler.git"
46
- },
47
- "bugs": {
48
- "url": "https://github.com/kriollo/versaCompiler/issues"
49
- },
50
- "homepage": "https://github.com/kriollo/versaCompiler#readme",
51
66
  "dependencies": {
52
- "@vue/compiler-dom": "^3.5.29",
53
- "@vue/reactivity": "^3.5.29",
54
- "@vue/runtime-core": "^3.5.29",
55
- "@vue/runtime-dom": "^3.5.29",
67
+ "@vue/compiler-dom": "^3.5.31",
68
+ "@vue/reactivity": "^3.5.31",
69
+ "@vue/runtime-core": "^3.5.31",
70
+ "@vue/runtime-dom": "^3.5.31",
56
71
  "browser-sync": "^3.0.4",
57
72
  "chalk": "5.6.2",
58
73
  "chokidar": "^5.0.0",
59
- "enhanced-resolve": "^5.20.0",
74
+ "enhanced-resolve": "^5.20.1",
60
75
  "execa": "^9.6.1",
61
76
  "find-root": "^1.1.0",
62
77
  "fs-extra": "^11.3.4",
63
- "get-port": "^7.1.0",
78
+ "get-port": "^7.2.0",
64
79
  "minify-html-literals": "^1.3.5",
65
- "minimatch": "^10.2.4",
66
- "oxc-minify": "^0.116.0",
67
- "oxc-parser": "^0.116.0",
68
- "oxc-transform": "^0.116.0",
80
+ "minimatch": "^10.2.5",
81
+ "oxc-minify": "^0.121.0",
82
+ "oxc-parser": "^0.121.0",
83
+ "oxc-transform": "^0.121.0",
69
84
  "resolve": "^1.22.11",
70
85
  "tsx": "^4.21.0",
71
- "typescript": "^5.9.3",
72
- "vue": "3.5.29",
86
+ "typescript": "^6.0.2",
87
+ "vue": "3.5.31",
73
88
  "yargs": "^18.0.0"
74
89
  },
75
90
  "devDependencies": {
76
91
  "@eslint/eslintrc": "^3.3.5",
77
- "@tailwindcss/cli": "^4.2.1",
92
+ "@playwright/test": "^1.58.2",
93
+ "@tailwindcss/cli": "^4.2.2",
78
94
  "@types/browser-sync": "^2.29.1",
79
95
  "@types/find-root": "^1.1.4",
80
96
  "@types/fs-extra": "^11.0.4",
81
97
  "@types/jest": "^30.0.0",
82
98
  "@types/mocha": "^10.0.10",
83
- "@types/node": "^25.3.5",
99
+ "@types/node": "^25.5.0",
84
100
  "@types/resolve": "^1.20.6",
85
101
  "@types/yargs": "^17.0.35",
86
- "@typescript-eslint/eslint-plugin": "^8.56.1",
87
- "@typescript-eslint/parser": "^8.56.1",
88
- "@vitest/coverage-v8": "^4.0.18",
89
- "@vitest/ui": "^4.0.18",
102
+ "@typescript-eslint/eslint-plugin": "^8.58.0",
103
+ "@typescript-eslint/parser": "^8.58.0",
104
+ "@vitest/coverage-v8": "^4.1.2",
105
+ "@vitest/ui": "^4.1.2",
90
106
  "@vue/eslint-config-typescript": "^14.7.0",
91
107
  "@vue/test-utils": "^2.4.6",
108
+ "@vueuse/core": "^14.2.1",
92
109
  "code-tag": "^1.2.0",
93
- "eslint": "^10.0.3",
110
+ "eslint": "^10.1.0",
94
111
  "eslint-import-resolver-typescript": "^4.4.4",
95
- "eslint-plugin-import-x": "^4.16.1",
96
- "eslint-plugin-oxlint": "^1.51.0",
112
+ "eslint-plugin-import-x": "^4.16.2",
113
+ "eslint-plugin-oxlint": "^1.57.0",
97
114
  "eslint-plugin-promise": "^7.2.1",
98
- "eslint-plugin-unicorn": "^63.0.0",
115
+ "eslint-plugin-unicorn": "^64.0.0",
99
116
  "eslint-plugin-vue": "^10.8.0",
100
- "oxlint": "^1.51.0",
117
+ "oxfmt": "^0.42.0",
118
+ "oxlint": "^1.57.0",
101
119
  "pinia": "^3.0.4",
102
120
  "prettier": "3.8.1",
103
121
  "rimraf": "^6.1.3",
104
- "sweetalert2": "^11.26.22",
105
- "tailwindcss": "^4.2.1",
106
- "vitest": "^4.0.18",
122
+ "sweetalert2": "^11.26.24",
123
+ "tailwindcss": "^4.2.2",
124
+ "vitest": "^4.1.2",
107
125
  "vue-eslint-parser": "^10.4.0",
108
- "vue-router": "^5.0.3"
126
+ "vue-router": "^5.0.4",
127
+ "zod": "^4.3.6"
109
128
  },
110
- "packageManager": "pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b"
129
+ "packageManager": "pnpm@10.33.0"
111
130
  }