const path = require('path');

function createPattern(pattern) {
    return { 'pattern': pattern, 'included': true, 'served': true, 'watched': false };
}

function initReadJson(files) {
    files.unshift(createPattern(require.resolve('json5')));
    files.unshift(createPattern(path.resolve(path.join(__dirname, '/read-json.js'))));
}

initReadJson.$inject = ['config.files'];

module.exports = {
    'framework:readJSON': ['factory', initReadJson]
};

@@ -175,16 +175,24 @@
 on(files
+, config
 ) %7B%0A    
@@ -375,16 +375,26 @@
 g.files'
+, 'config'
 %5D;%0A%0Amodu

Allow to retrieve some configuration