tasks/packager.js
function getProjectName(componentPath, optionsName){
		if (typeof optionsName == 'string') return optionsName;
		var projectName;
		for (var prj in optionsName){
			if(~componentPath.indexOf(optionsName[prj])) projectName = prj;
		}
		if (!projectName) grunt.fail.warn('Missing name in options for component with path: ' + componentPath);
		return projectName;
	}
function getProjectName(componentPath, optionsName){
		if (typeof optionsName == 'string') return optionsName;
		var projectName;
		for (var prj in optionsName){
			if(~componentPath.indexOf(optionsName[prj])) projectName = prj;
		}
		if (!projectName) grunt.fail.warn('Missing name in options for component with path: ' + componentPath);
		return projectName;
	}
function getProjectName ( componentPath , optionsName ) { if ( typeof optionsName == 'string' ) return optionsName ; var projectName ; for ( var prj in optionsName ) { if ( ~ componentPath . indexOf ( optionsName [ prj ] ) ) projectName = prj ; } if ( ! projectName ) grunt . fail . warn ( 'Missing name in options for component with path: ' + componentPath ) ; return projectName ; }
matches project name with component's path
matches project name with component s path