* Bootstrap modules by setting the module data and loading the scripts & styles. * @param {object} module Information about the module we want to load. * @param {Module} mObj Modules instance.
(module, mObj)
| 169 | * @param {Module} mObj Modules instance. |
| 170 | */ |
| 171 | async function bootstrapModule (module, mObj) { |
| 172 | Log.info(`Bootstrapping module: ${module.name}`); |
| 173 | mObj.setData(module); |
| 174 | |
| 175 | await mObj.loadScripts(); |
| 176 | Log.log(`Scripts loaded for: ${module.name}`); |
| 177 | |
| 178 | await mObj.loadStyles(); |
| 179 | Log.log(`Styles loaded for: ${module.name}`); |
| 180 | |
| 181 | await mObj.loadTranslations(); |
| 182 | Log.log(`Translations loaded for: ${module.name}`); |
| 183 | |
| 184 | moduleObjects.push(mObj); |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * Load a script or stylesheet by adding it to the dom. |
no test coverage detected