bin/cli.js
function( fileName ) {
        // console.log('Read configuration from ' + fileName);
        var pathSep = require('path').sep;
        var inFileName = process.cwd() + pathSep + fileName;

        var config = require( inFileName );

        // TODO: validate config

        for ( var procs in config ) {
            if ( config.hasOwnProperty(procs) ) {
                config[procs].forEach(function(proc){
                    if ( proc.hasOwnProperty('fileName') ) {
                        proc.fileName = process.cwd() + pathSep + proc.fileName;
                    }
                });
            }
        }
        return config;
    }
function( fileName ) {
        // console.log('Read configuration from ' + fileName);
        var pathSep = require('path').sep;
        var inFileName = process.cwd() + pathSep + fileName;

        var config = require( inFileName );

        // TODO: validate config

        for ( var procs in config ) {
            if ( config.hasOwnProperty(procs) ) {
                config[procs].forEach(function(proc){
                    if ( proc.hasOwnProperty('fileName') ) {
                        proc.fileName = process.cwd() + pathSep + proc.fileName;
                    }
                });
            }
        }
        return config;
    }
function ( fileName ) { // console.log('Read configuration from ' + fileName); var pathSep = require ( 'path' ) . sep ; var inFileName = process . cwd ( ) + pathSep + fileName ; var config = require ( inFileName ) ; // TODO: validate config for ( var procs in config ) { if ( config . hasOwnProperty ( procs ) ) { config [ procs ] . forEach ( function ( proc ) { if ( proc . hasOwnProperty ( 'fileName' ) ) { proc . fileName = process . cwd ( ) + pathSep + proc . fileName ; } } ) ; } } return config ; }
Read the config file
@param  {string} fileName The name of the config file
@return {Object}          The configuration object
Read the config file