lib/internal/bower-utils.js
function componentNames(workdir) {
	workdir = workdir || process.cwd();
	try {
		var bowerJson = require(path.join(workdir, 'bower.json'));
		return _(Object.keys(bowerJson.dependencies || {}))
			.union(Object.keys(bowerJson.devDependencies || {}))
			.value();
	} catch (ex) {
		// not found bower
		//console.warn(ex.message);
		return [];
	}
}
function componentNames(workdir) {
	workdir = workdir || process.cwd();
	try {
		var bowerJson = require(path.join(workdir, 'bower.json'));
		return _(Object.keys(bowerJson.dependencies || {}))
			.union(Object.keys(bowerJson.devDependencies || {}))
			.value();
	} catch (ex) {
		// not found bower
		//console.warn(ex.message);
		return [];
	}
}
function componentNames ( workdir ) { workdir = workdir || process . cwd ( ) ; try { var bowerJson = require ( path . join ( workdir , 'bower.json' ) ) ; return _ ( Object . keys ( bowerJson . dependencies || { } ) ) . union ( Object . keys ( bowerJson . devDependencies || { } ) ) . value ( ) ; } catch ( ex ) { // not found bower //console.warn(ex.message); return [ ] ; } }
get bower components names
get bower components names