Files
angular.js/docs/config/services/getComponentPath.js
2014-11-22 18:02:44 +00:00

13 lines
404 B
JavaScript

"use strict";
/**
* dgService getVersion
* @description
* Find the current version of the bower component (or npm module)
*/
module.exports = function getComponentPath(getVersion) {
return function(component, item, sourceFolder, packageFile) {
item = item || component + '.js';
return 'components/' + component + '-' + getVersion(component, sourceFolder, packageFile) + '/' + item;
};
};