Skip to content

Commit

Permalink
Updated dependencies (microsoft#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergoncharov-zz authored Jul 19, 2019
1 parent 6461b8a commit 6e2875a
Show file tree
Hide file tree
Showing 14 changed files with 1,743 additions and 1,309 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion bin/www/codePushUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var CodePushUtil = (function () {
};
CodePushUtil.logError = function (message, error) {
var errorMessage = (message || "") + " " + CodePushUtil.getErrorMessage(error);
var stackTrace = error && error.stack ? ". StackTrace: " + error.stack : '';
var stackTrace = error && error.stack ? ". StackTrace: " + error.stack : "";
console.error(CodePushUtil.TAG + " " + errorMessage + stackTrace);
};
CodePushUtil.TAG = "[CodePush]";
Expand Down
13 changes: 8 additions & 5 deletions bin/www/localPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@

"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
Expand Down Expand Up @@ -159,8 +162,8 @@ var LocalPackage = (function (_super) {
};
LocalPackage.prototype.getSignatureFromUpdate = function (deployDir, callback) {
var rootUri = cordova.file.dataDirectory;
var path = deployDir.fullPath + '/www';
var fileName = '.codepushrelease';
var path = deployDir.fullPath + "/www";
var fileName = ".codepushrelease";
FileUtil.fileExists(rootUri, path, fileName, function (error, result) {
if (!result) {
callback(null, null);
Expand Down
9 changes: 6 additions & 3 deletions bin/www/remotePackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@

"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
Expand Down
46 changes: 1 addition & 45 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,52 +171,8 @@ gulp.task("tslint", function () {
// Configuration options adapted from TypeScript project:
// https://github.com/Microsoft/TypeScript/blob/master/tslint.json

var config = {
"rules": {
"class-name": true,
"comment-format": [true,
"check-space"
],
"indent": [true,
"spaces"
],
"one-line": [true,
"check-open-brace"
],
"no-unused-variable": true,
"no-use-before-declare": true,
"quotemark": [true,
"double"
],
"semicolon": true,
"whitespace": [true,
"check-branch",
"check-operator",
"check-separator",
"check-type"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
}
}

return gulp.src([sourcePath + tsFiles, testPath + tsFiles])
.pipe(tslint({ configuration: config, formatter: "verbose" }))
.pipe(tslint({ configuration: "./tslint.json", formatter: "verbose" }))
.pipe(tslint.report());
});

Expand Down
Loading

0 comments on commit 6e2875a

Please sign in to comment.