mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-07 08:57:54 +08:00
13 lines
404 B
JavaScript
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;
|
|
};
|
|
}; |