npm scripts for typechecking public .d.ts-es and running tslint (#2934)

* npm scripts for typechecking public .d.ts-es and running tslint

* Update test.ts
This commit is contained in:
Panayot Cankov
2016-10-27 15:18:54 +03:00
committed by Vladimir Enchev
parent fd23197851
commit 05cd636fc8
20 changed files with 42 additions and 23 deletions

View File

@@ -28,7 +28,7 @@
"nativescript-typedoc-theme": "0.0.7",
"shelljs": "^0.7.0",
"time-grunt": "1.3.0",
"tslint": "3.4.0",
"tslint": "^3.15.1",
"typedoc": "0.4.5",
"typescript": "^2.0.3"
},
@@ -53,6 +53,8 @@
"test-watch-ios": "npm run pretest && concurrently --kill-others \"npm run tsc-tiw\" \"tns livesync ios --path tests --watch\"",
"prepublish": "echo \"Development reminder: npm run setup\n\"",
"typedoc": "typedoc --tsconfig tsconfig.typedoc.json --out bin/dist/apiref --mode file --includeDeclarations --name NativeScript --theme ./node_modules/nativescript-typedoc-theme",
"dev-typedoc": "npm run typedoc && cd bin/dist/apiref && http-server"
"dev-typedoc": "npm run typedoc && cd bin/dist/apiref && http-server",
"test-tsc-es2016": "tsc -p tsconfig.public.es2016.json",
"tslint": "tslint --config build/tslint.json 'tns-core-modules/**/*.ts' 'tests/**/*.ts' 'apps/**/*.ts' -e '**/node_modules/**' -e '**/platforms/**'"
}
}