From: anthony Date: Wed, 13 Jun 2018 01:29:04 +0000 (-0400) Subject: finalizing the init stage of the app, reading the module list and X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=69adbbad96c368ce9ce0a6347b477580f56313ee;p=WP-Themes%2FglmOrigin.git finalizing the init stage of the app, reading the module list and building the initial app state --- diff --git a/setup/renderer.js b/setup/renderer.js index 8cbe6fd..59e900c 100644 --- a/setup/renderer.js +++ b/setup/renderer.js @@ -3,6 +3,7 @@ const fs = require('fs'); const merge = require('merge-stream'); const dir = require('node-dir'); const appState = {}; + // PHP Functions File Libraries index file var functionsFileReader = require('readline').createInterface({ input: require('fs').createReadStream('dev/modules.php') @@ -45,7 +46,6 @@ function getModules(){ } function updateModule(appState){ let allMods = getModules(); - let newMods = getModuleByName(appState.name); allMods[appState.modType].forEach(function(mod, index){ if(mod.name === appState.name){ allMods[appState.modType][index] = appState; @@ -74,56 +74,69 @@ function getDevDirs(){ console.log(item) }); } -function buildList(){ - getModuleTypes(getModules()).forEach(function(modType){ - $(`

${modType}

`).appendTo( $("#module-list-container")); - $(`