@sdetweil said in Divide Config.js into modules:
Well, there is one problem.
Once u put the info in each module folder, you will lose the ability to order the modules differently
Nope the modules are declared in /config/config.js not that I have much experience but my new noob experience of MM is that with complexity it starts to get a bit cumbersome.
As an example would you really want to add compliments to your main config.js.
I am just wondering if it could be split and presented slightly more cleanly and simpler for the likes of me.
module: "calendar",
header: "Calendar",
position: "top_left",
Would still be the same place and it would in essence just be the same but the bloat of
config: {
Would be elsewhere.
Also if it was loaded serially as different objects declared by config.js then each module config could have some form of isolation and error checking?
Gson gson = new Gson();
JsonObject jsonObj = gson.fromJson (jsonStr, JsonElement.class).getAsJsonObject();
jsonObj.add(“criterias”, “Location”);
Dunno as really know naff about NodeJS but thinking you could even make it more robust with feedback to which module config error?