lib/devour.js
function preload() {
		var path = config.gulpFiles;

		if (/^[^\/]/.test(path)) {
			path = config.basePath + '/' + path;
		}

		glob.sync(path + '/*/*.js').map(function(file) {
			return file.replace(path, '').split('/').filter(function(split) {
				return !!split;
			});
		}).forEach(function(file) {
			register(
				file[0],
				file[file.length - 1].replace(/\.js$/, ''),
				require(path + '/' + file.join('/'))
			);
		});

		console.log(chalk.cyan('Devour initialized'));

		if (config.verbose) {
			['task', 'pipe'].forEach(function(what) {
				console.log(
					'  - available %ss: %s',
					what,
					what in definitions ? chalk.green(Object.keys(definitions[what]).join(', ')) : chalk.yellow('none')
				);
			});
			console.log('');
		}
	}
function preload() {
		var path = config.gulpFiles;

		if (/^[^\/]/.test(path)) {
			path = config.basePath + '/' + path;
		}

		glob.sync(path + '/*/*.js').map(function(file) {
			return file.replace(path, '').split('/').filter(function(split) {
				return !!split;
			});
		}).forEach(function(file) {
			register(
				file[0],
				file[file.length - 1].replace(/\.js$/, ''),
				require(path + '/' + file.join('/'))
			);
		});

		console.log(chalk.cyan('Devour initialized'));

		if (config.verbose) {
			['task', 'pipe'].forEach(function(what) {
				console.log(
					'  - available %ss: %s',
					what,
					what in definitions ? chalk.green(Object.keys(definitions[what]).join(', ')) : chalk.yellow('none')
				);
			});
			console.log('');
		}
	}
function preload ( ) { var path = config . gulpFiles ; if ( / ^[^\/] / . test ( path ) ) { path = config . basePath + '/' + path ; } glob . sync ( path + '/*/*.js' ) . map ( function ( file ) { return file . replace ( path , '' ) . split ( '/' ) . filter ( function ( split ) { return ! ! split ; } ) ; } ) . forEach ( function ( file ) { register ( file [ 0 ] , file [ file . length - 1 ] . replace ( / \.js$ / , '' ) , require ( path + '/' + file . join ( '/' ) ) ) ; } ) ; console . log ( chalk . cyan ( 'Devour initialized' ) ) ; if ( config . verbose ) { [ 'task' , 'pipe' ] . forEach ( function ( what ) { console . log ( '  - available %ss: %s' , what , what in definitions ? chalk . green ( Object . keys ( definitions [ what ] ) . join ( ', ' ) ) : chalk . yellow ( 'none' ) ) ; } ) ; console . log ( '' ) ; } }
Load all available tasks and pipes
@name    preload
@access  internal
@return  void
Load all available tasks and pipes