src/transport.js
function loadAll( state, resourcePath ) {
	var loadActions = [ loadResources( state, resourcePath ) ] || [];
	if ( state.config.modules ) {
		_.each( state.config.modules, function( mod ) {
			var modPath;
			if ( /[\/]/.test( mod ) ) {
				modPath = require.resolve( path.resolve( process.cwd(), mod ) );
			} else {
				modPath = require.resolve( mod );
			}
			loadActions.push( loadModule( state, modPath ) );
		} );
	}
	loadActions.push( loadModule( state, './ahResource' ) );
	return when.all( loadActions );
}
function loadAll( state, resourcePath ) {
	var loadActions = [ loadResources( state, resourcePath ) ] || [];
	if ( state.config.modules ) {
		_.each( state.config.modules, function( mod ) {
			var modPath;
			if ( /[\/]/.test( mod ) ) {
				modPath = require.resolve( path.resolve( process.cwd(), mod ) );
			} else {
				modPath = require.resolve( mod );
			}
			loadActions.push( loadModule( state, modPath ) );
		} );
	}
	loadActions.push( loadModule( state, './ahResource' ) );
	return when.all( loadActions );
}
function loadAll ( state , resourcePath ) { var loadActions = [ loadResources ( state , resourcePath ) ] || [ ] ; if ( state . config . modules ) { _ . each ( state . config . modules , function ( mod ) { var modPath ; if ( / [\/] / . test ( mod ) ) { modPath = require . resolve ( path . resolve ( process . cwd ( ) , mod ) ) ; } else { modPath = require . resolve ( mod ) ; } loadActions . push ( loadModule ( state , modPath ) ) ; } ) ; } loadActions . push ( loadModule ( state , './ahResource' ) ) ; return when . all ( loadActions ) ; }
loads internal resources, resources from config path and node module resources
loads internal resources resources from config path and node module resources