@hybridly/vite 0.4.0 → 0.4.2

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.
package/dist/index.cjs CHANGED
@@ -86,8 +86,15 @@ function generateTsConfig(options, config) {
86
86
  include: [
87
87
  ...config.components.views.map(({ path: path2 }) => `../${path2}`),
88
88
  ...config.components.layouts.map(({ path: path2 }) => `../${path2}`),
89
+ ...config.components.components.map(({ path: path2 }) => `../${path2}`),
89
90
  `../${config.architecture.root}/**/*`,
90
- "./*"
91
+ "../app/**/*",
92
+ "../src/**/*",
93
+ "./php-types.d.ts",
94
+ "./global-types.d.ts",
95
+ "./routes.d.ts",
96
+ "./components.d.ts",
97
+ "./auto-imports.d.ts"
91
98
  ],
92
99
  exclude: [
93
100
  "../public/**/*",
@@ -221,7 +228,7 @@ const initialize = (options, config) => {
221
228
  if (file.endsWith("config/hybridly.php")) {
222
229
  return await forceRestart("Configuration file changed");
223
230
  }
224
- if (/routes\/.*\.php/.test(file)) {
231
+ if (/routes\/.*\.php/.test(file) || /routes\.php/.test(file)) {
225
232
  return await forceRestart("Routing changed");
226
233
  }
227
234
  if (/.*\.vue$/.test(file)) {
@@ -341,6 +348,7 @@ function getLaravelOptions(options, config) {
341
348
  const HybridlyImports = {
342
349
  "hybridly/vue": [
343
350
  "useProperty",
351
+ "setProperty",
344
352
  "useRefinements",
345
353
  "useProperties",
346
354
  "useBackForward",
@@ -351,12 +359,12 @@ const HybridlyImports = {
351
359
  "usePaginator",
352
360
  "defineLayout",
353
361
  "defineLayoutProperties",
354
- "registerHook"
362
+ "registerHook",
363
+ "useRoute"
355
364
  ],
356
365
  "hybridly": [
357
366
  "router",
358
367
  "route",
359
- "current",
360
368
  "can"
361
369
  ]
362
370
  };
@@ -475,7 +483,7 @@ function getVueOptions(options) {
475
483
  },
476
484
  script: {
477
485
  globalTypeFiles: [
478
- path__default.resolve(".hybridly/back-end.d.ts")
486
+ path__default.resolve(".hybridly/php-types.d.ts")
479
487
  ]
480
488
  }
481
489
  },
package/dist/index.mjs CHANGED
@@ -69,8 +69,15 @@ function generateTsConfig(options, config) {
69
69
  include: [
70
70
  ...config.components.views.map(({ path: path2 }) => `../${path2}`),
71
71
  ...config.components.layouts.map(({ path: path2 }) => `../${path2}`),
72
+ ...config.components.components.map(({ path: path2 }) => `../${path2}`),
72
73
  `../${config.architecture.root}/**/*`,
73
- "./*"
74
+ "../app/**/*",
75
+ "../src/**/*",
76
+ "./php-types.d.ts",
77
+ "./global-types.d.ts",
78
+ "./routes.d.ts",
79
+ "./components.d.ts",
80
+ "./auto-imports.d.ts"
74
81
  ],
75
82
  exclude: [
76
83
  "../public/**/*",
@@ -204,7 +211,7 @@ const initialize = (options, config) => {
204
211
  if (file.endsWith("config/hybridly.php")) {
205
212
  return await forceRestart("Configuration file changed");
206
213
  }
207
- if (/routes\/.*\.php/.test(file)) {
214
+ if (/routes\/.*\.php/.test(file) || /routes\.php/.test(file)) {
208
215
  return await forceRestart("Routing changed");
209
216
  }
210
217
  if (/.*\.vue$/.test(file)) {
@@ -324,6 +331,7 @@ function getLaravelOptions(options, config) {
324
331
  const HybridlyImports = {
325
332
  "hybridly/vue": [
326
333
  "useProperty",
334
+ "setProperty",
327
335
  "useRefinements",
328
336
  "useProperties",
329
337
  "useBackForward",
@@ -334,12 +342,12 @@ const HybridlyImports = {
334
342
  "usePaginator",
335
343
  "defineLayout",
336
344
  "defineLayoutProperties",
337
- "registerHook"
345
+ "registerHook",
346
+ "useRoute"
338
347
  ],
339
348
  "hybridly": [
340
349
  "router",
341
350
  "route",
342
- "current",
343
351
  "can"
344
352
  ]
345
353
  };
@@ -458,7 +466,7 @@ function getVueOptions(options) {
458
466
  },
459
467
  script: {
460
468
  globalTypeFiles: [
461
- path.resolve(".hybridly/back-end.d.ts")
469
+ path.resolve(".hybridly/php-types.d.ts")
462
470
  ]
463
471
  }
464
472
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybridly/vite",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Vite plugin for Hybridly",
5
5
  "keywords": [
6
6
  "hybridly",
@@ -40,20 +40,20 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@vitejs/plugin-vue": "^4.2.3",
43
- "fast-glob": "^3.2.12",
43
+ "fast-glob": "^3.3.0",
44
44
  "laravel-vite-plugin": "^0.7.8",
45
45
  "local-pkg": "^0.4.3",
46
46
  "throttle-debounce": "^5.0.0",
47
- "unplugin-auto-import": "^0.16.4",
48
- "unplugin-icons": "^0.16.2",
47
+ "unplugin-auto-import": "^0.16.6",
48
+ "unplugin-icons": "^0.16.3",
49
49
  "unplugin-vue-components": "^0.25.1",
50
50
  "vite-plugin-run": "^0.4.1",
51
- "@hybridly/core": "0.4.0"
51
+ "@hybridly/core": "0.4.2"
52
52
  },
53
53
  "devDependencies": {
54
- "@iconify/json": "^2.2.74",
55
- "rollup": "^3.23.1",
56
- "vite": "^4.3.9",
54
+ "@iconify/json": "^2.2.89",
55
+ "rollup": "^3.26.2",
56
+ "vite": "^4.4.3",
57
57
  "vue": "^3.3.4"
58
58
  },
59
59
  "scripts": {