src/modules.js
function getModulesTasks(baseTask, app) {
	var tasks = [];
	var modules = getModules(app);

	if (modules) {
		for (index = 0; index < modules.length; ++index) {
		    tasks.push(baseTask + '.' + modules[index]);
		}
	}

	return tasks;
}
function getModulesTasks(baseTask, app) {
	var tasks = [];
	var modules = getModules(app);

	if (modules) {
		for (index = 0; index < modules.length; ++index) {
		    tasks.push(baseTask + '.' + modules[index]);
		}
	}

	return tasks;
}
function getModulesTasks ( baseTask , app ) { var tasks = [ ] ; var modules = getModules ( app ) ; if ( modules ) { for ( index = 0 ; index < modules . length ; ++ index ) { tasks . push ( baseTask + '.' + modules [ index ] ) ; } } return tasks ; }
Function to ease the modules management

@param   string  baseTask  Task to use as root. Example: 'clean:modules'
@param   string  app       'frontend', 'backend'

@return  array
Function to ease the modules management