enhance configHelpers with new properties HOME / CONFIG_PATH add new methods loadConfigFile : to properly reload configuration file and avoid spread of variable init : to run the initialize sequence, centralize default config path setHome : to properly change home directory of running module instance watchConfig : let others properly subscribe to configuration file changes modulePath : provides module installation path
enhance configHelpers with new properties HOME / CONFIG_PATH
add new methods
loadConfigFile : to properly reload configuration file and avoid spread of variable
init : to run the initialize sequence, centralize default config path
setHome : to properly change home directory of running module instance
watchConfig : let others properly subscribe to configuration file changes
modulePath : provides module installation path

when app is reloaded, clear require.cache in order to update source code

updated actions.displayConfig to avoid require cache

Then lots of code refactoring to take advantage of those new additions

cozy-labs/cozy-light,cozy-labs/cozy-light