juxscript 1.1.94 → 1.1.95
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/dom-structure-map.json +1 -1
- package/machinery/compiler3.js +12 -3
- package/package.json +1 -1
package/dom-structure-map.json
CHANGED
package/machinery/compiler3.js
CHANGED
|
@@ -309,17 +309,26 @@ export class JuxCompiler {
|
|
|
309
309
|
return entry;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
+
reportValidationIssues() {
|
|
313
|
+
if (!this._validationIssues || this._validationIssues.length === 0) return;
|
|
314
|
+
|
|
315
|
+
console.log('\n⚠️ Validation Issues:\n');
|
|
316
|
+
this._validationIssues.forEach(issue => {
|
|
317
|
+
const icon = issue.type === 'error' ? '❌' : '⚠️';
|
|
318
|
+
console.log(` ${icon} ${issue.view}:${issue.line} - ${issue.message}`);
|
|
319
|
+
});
|
|
320
|
+
console.log('');
|
|
321
|
+
}
|
|
322
|
+
|
|
312
323
|
/**
|
|
313
|
-
* ✅ Generate routes based on folder structure
|
|
324
|
+
* ✅ Generate routes based on folder structure (SINGLE DEFINITION)
|
|
314
325
|
*/
|
|
315
326
|
_generateRouter(views) {
|
|
316
327
|
let routeMap = '';
|
|
317
328
|
|
|
318
329
|
views.forEach(v => {
|
|
319
|
-
// ✅ Generate route from folder structure
|
|
320
330
|
const routePath = this._generateRoutePath(v.file);
|
|
321
331
|
const functionName = this._generateFunctionName(v.name);
|
|
322
|
-
|
|
323
332
|
routeMap += ` '${routePath}': render${functionName},\n`;
|
|
324
333
|
});
|
|
325
334
|
|