custom-element-flow
Advanced tools
Comparing version 1.0.52 to 1.0.53
@@ -42,8 +42,13 @@ #! /usr/bin/env node | ||
console.log("ALL COMPS", webComponents); | ||
console.log("ALL FILES", files); | ||
await Promise.all( | ||
files.map(async (filePath) => { | ||
const fileJson = await readFile(filePath, 'utf-8'); | ||
console.log("FILE", filePath, fileJson); | ||
const fileData = JSON.parse(fileJson); | ||
console.log("FILE PATH", filePath); | ||
console.log("FILE JSON", fileJson); | ||
const comp = webComponents.find((e: any) => e.compId === fileData.id); | ||
console.log("COMP", comp); | ||
const settings = comp.compData.webComponentData.gfppSettings.tabs; | ||
@@ -50,0 +55,0 @@ const activeTabs = settings.filter((tab: any) => tab.hidden === false && tab.label !== "Main"); |
@@ -42,7 +42,11 @@ #! /usr/bin/env node | ||
const files = yield glob(`${projectDir}/src/components/**/*/.component.json`); | ||
console.log("ALL COMPS", webComponents); | ||
console.log("ALL FILES", files); | ||
yield Promise.all(files.map((filePath) => __awaiter(void 0, void 0, void 0, function* () { | ||
const fileJson = yield readFile(filePath, 'utf-8'); | ||
console.log("FILE", filePath, fileJson); | ||
const fileData = JSON.parse(fileJson); | ||
console.log("FILE PATH", filePath); | ||
console.log("FILE JSON", fileJson); | ||
const comp = webComponents.find((e) => e.compId === fileData.id); | ||
console.log("COMP", comp); | ||
const settings = comp.compData.webComponentData.gfppSettings.tabs; | ||
@@ -49,0 +53,0 @@ const activeTabs = settings.filter((tab) => tab.hidden === false && tab.label !== "Main"); |
{ | ||
"name": "custom-element-flow", | ||
"version": "1.0.52", | ||
"version": "1.0.53", | ||
"description": "My New Project description.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
53827
1373