refactor(jshint): reduce duplication & test all JS files

Conflicts:
	src/Angular.js
	src/AngularPublic.js
	src/jqLite.js
	src/ng/directive/input.js
This commit is contained in:
Michał Gołębiowski
2014-06-23 23:17:31 +02:00
committed by Caitlin Potter
parent e1a3a6251f
commit fe1188daf3
41 changed files with 297 additions and 368 deletions

View File

@@ -1,10 +1,12 @@
'use strict';
var fs = require('fs');
var path = require('path');
var shell = require('shelljs');
var semver = require('semver');
var _ = require('lodash');
var currentPackage, previousVersions, cdnVersion;
var currentPackage, previousVersions, cdnVersion, gitRepoInfo;
/**
@@ -154,14 +156,14 @@ var getCdnVersion = function() {
}
return cdnVersion;
}, null);
}
};
/**
* Get the unstable snapshot version
* @return {SemVer} The snapshot version
*/
var getSnapshotVersion = function() {
version = _(previousVersions)
var version = _(previousVersions)
.filter(function(tag) {
return semver.satisfies(tag, currentPackage.branchVersion);
})