Skip to content

Commit 05cd636

Browse files
PanayotCankovenchev
authored andcommitted
npm scripts for typechecking public .d.ts-es and running tslint (NativeScript#2934)
* npm scripts for typechecking public .d.ts-es and running tslint * Update test.ts
1 parent fd23197 commit 05cd636

File tree

20 files changed

+42
-23
lines changed

20 files changed

+42
-23
lines changed

apps/app/gallery-app/main-page.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ export function itemTap(args: observable.EventData) {
66
moduleName: "gallery-app/" + args.object.get("tag"),
77
});
88
}
9-

build/tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"curly": true,
55
"forin": false,
66
"indent": true,
7-
"jsdoc-format": true,
7+
"jsdoc-format": false,
88
"max-line-length": [false, 120],
99
"no-arg": true,
1010
"no-consecutive-blank-lines": true,

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"nativescript-typedoc-theme": "0.0.7",
2929
"shelljs": "^0.7.0",
3030
"time-grunt": "1.3.0",
31-
"tslint": "3.4.0",
31+
"tslint": "^3.15.1",
3232
"typedoc": "0.4.5",
3333
"typescript": "^2.0.3"
3434
},
@@ -53,6 +53,8 @@
5353
"test-watch-ios": "npm run pretest && concurrently --kill-others \"npm run tsc-tiw\" \"tns livesync ios --path tests --watch\"",
5454
"prepublish": "echo \"Development reminder: npm run setup\n\"",
5555
"typedoc": "typedoc --tsconfig tsconfig.typedoc.json --out bin/dist/apiref --mode file --includeDeclarations --name NativeScript --theme ./node_modules/nativescript-typedoc-theme",
56-
"dev-typedoc": "npm run typedoc && cd bin/dist/apiref && http-server"
56+
"dev-typedoc": "npm run typedoc && cd bin/dist/apiref && http-server",
57+
"test-tsc-es2016": "tsc -p tsconfig.public.es2016.json",
58+
"tslint": "tslint --config build/tslint.json 'tns-core-modules/**/*.ts' 'tests/**/*.ts' 'apps/**/*.ts' -e '**/node_modules/**' -e '**/platforms/**'"
5759
}
5860
}

tests/app/location-tests.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ export var testLocation = function (done) {
8484

8585
//TKUnit.waitUntilReady(isReady, 10);
8686

87-
88-
8987
//TKUnit.assert(true === locationReceived, locationReceived);
9088
};
9189

tests/app/pages/page17.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ export function buttonTap(args: observable.EventData) {
3636
}
3737
}
3838
}
39-

tests/app/platform-tests.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ export function testIsIOSandIsAndroid() {
3838
TKUnit.assertTrue(!!android, "isAndroid is true but common 'android' package is not available.");
3939
}
4040
}
41-

tests/app/ui/button/button-tests-native.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ export declare function getNativeColor(button: buttonModule.Button): colorModule
99
export declare function getNativeBackgroundColor(button: buttonModule.Button): colorModule.Color;
1010
export declare function getNativeTextAlignment(button: buttonModule.Button): string;
1111
export declare function performNativeClick(button: buttonModule.Button): void;
12-

tests/app/ui/list-picker/list-picker-tests-native.ios.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@ export function selectNativeItem(listPicker: listPickerModule.ListPicker, index:
88
listPicker.ios.selectRowInComponentAnimated(index, 0, false);
99
(<UIPickerViewDelegate>(<any>listPicker)._delegate).pickerViewDidSelectRowInComponent(listPicker.ios, index, 0);
1010
}
11-
12-

tests/app/ui/list-view/list-view-tests.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,6 @@ export class ListViewTest extends testModule.UITest<listViewModule.ListView> {
800800
TKUnit.assertEqual(templateKey1, "green", "itemTemplateSelector result for second item");
801801
}
802802

803-
804803
public test_ItemTemplateSelector_IsCorrectlyUsedAsAFunction() {
805804
let listView = this.testView;
806805
listView.itemTemplateSelector = selectItemTemplate;

tests/app/ui/repeater/repeater-tests.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,4 +453,3 @@ function getChildAt(repeater: repeaterModule.Repeater, index: number): viewModul
453453
function getChildAtText(repeater: repeaterModule.Repeater, index: number): string {
454454
return (<labelModule.Label>getChildAt(repeater, index)).text + "";
455455
}
456-

0 commit comments

Comments
 (0)