index.js
function(_gulp, _config) {
  if (!_gulp) {
    throw 'Error: A Gulp instance should be passed to the gulpConfig method.';
  }
  gulp = _gulp;
  config = _config || { paths: { src: {}, out: {} } };

  plugins = elaboratePlugins();
  paths = elaboratePaths();

  lrport = _config.liveReloadPort || lrport;
  server = _config.server || (console.error(
      'An Express server should be passed in the configuration.')),
  serverport = _config.port || serverport;

  cleanTmp = function(done) {
    del(paths.src.tmp, { force: _config.forceClean || false }, done);
  };
}
function(_gulp, _config) {
  if (!_gulp) {
    throw 'Error: A Gulp instance should be passed to the gulpConfig method.';
  }
  gulp = _gulp;
  config = _config || { paths: { src: {}, out: {} } };

  plugins = elaboratePlugins();
  paths = elaboratePaths();

  lrport = _config.liveReloadPort || lrport;
  server = _config.server || (console.error(
      'An Express server should be passed in the configuration.')),
  serverport = _config.port || serverport;

  cleanTmp = function(done) {
    del(paths.src.tmp, { force: _config.forceClean || false }, done);
  };
}
function ( _gulp , _config ) { if ( ! _gulp ) { throw 'Error: A Gulp instance should be passed to the gulpConfig method.' ; } gulp = _gulp ; config = _config || { paths : { src : { } , out : { } } } ; plugins = elaboratePlugins ( ) ; paths = elaboratePaths ( ) ; lrport = _config . liveReloadPort || lrport ; server = _config . server || ( console . error ( 'An Express server should be passed in the configuration.' ) ) , serverport = _config . port || serverport ; cleanTmp = function ( done ) { del ( paths . src . tmp , { force : _config . forceClean || false } , done ) ; } ; }
Gladius Forge configuration function.
@param  {Object} _gulp: The gulp instance created from the gulpfile.js
@param  {Object} config: Configuration object
Gladius Forge configuration function .