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,3 +1,5 @@
'use strict';
var fs = require('fs');
var http = require('http');
var BrowserStackTunnel = require('browserstacktunnel-wrapper');

View File

@@ -1,3 +1,5 @@
'use strict';
var bower = require('bower');
var util = require('./utils.js');
var shelljs = require('shelljs');

View File

@@ -1,3 +1,5 @@
'use strict';
var fs = require('fs');
var path = require('path');
var shell = require('shelljs');

View File

@@ -1,4 +1,7 @@
var isFunction = function isFunction(value){return typeof value == 'function';}
/* global qFactory: false */
'use strict';
var isFunction = function isFunction(value){return typeof value == 'function';};
var $q = qFactory(process.nextTick, function noopExceptionHandler() {});

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);
})