chore(release): calculate the cdnVersion on every build

The CDN version of angular is now calculated on every build,
by looking at the tags in angular/angular.js, sorting them
by semver and checking against ajax.googleapis.com which
one is available.
This commit is contained in:
Tobias Bosch
2014-03-26 15:51:11 -07:00
parent d6d7fe4b07
commit aa249ae4a2
5 changed files with 27 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ var basePackage = require('./config');
module.exports = function(config) {
var cdnUrl = "//ajax.googleapis.com/ajax/libs/angularjs/" + versionInfo.currentPackage.cdnVersion;
var cdnUrl = "//ajax.googleapis.com/ajax/libs/angularjs/" + versionInfo.cdnVersion;
var getVersion = function(component, sourceFolder, packageFile) {
sourceFolder = sourceFolder || '../bower_components';