function (cozyHome, port) {
    fs.mkdirsSync(cozyHome);

    configHelpers.setHomePath(cozyHome);
    configHelpers.setMainAppPort(parseInt(port));
    configHelpers.setDefaultAppsPort(parseInt(port) + 100);

    configHelpers.copyDependency('pouchdb');

    configHelpers.createConfigFile();
    configHelpers.watcher = configWatcher;
    configHelpers.watcher.init(configHelpers.getConfigPath());

    return configHelpers.loadConfigFile();
  }
function (cozyHome, port) {
    fs.mkdirsSync(cozyHome);

    configHelpers.setHomePath(cozyHome);
    configHelpers.setMainAppPort(parseInt(port));
    configHelpers.setDefaultAppsPort(parseInt(port) + 100);

    configHelpers.copyDependency('pouchdb');

    configHelpers.createConfigFile();
    configHelpers.watcher = configWatcher;
    configHelpers.watcher.init(configHelpers.getConfigPath());

    return configHelpers.loadConfigFile();
  }
function ( cozyHome , port ) { fs . mkdirsSync ( cozyHome ) ; configHelpers . setHomePath ( cozyHome ) ; configHelpers . setMainAppPort ( parseInt ( port ) ) ; configHelpers . setDefaultAppsPort ( parseInt ( port ) + 100 ) ; configHelpers . copyDependency ( 'pouchdb' ) ; configHelpers . createConfigFile ( ) ; configHelpers . watcher = configWatcher ; configHelpers . watcher . init ( configHelpers . getConfigPath ( ) ) ; return configHelpers . loadConfigFile ( ) ; }
Initialize config instance
Initialize config instance