@@ -321,59 +321,6 @@ module.exports = function(grunt) {
321321 dest : "<%= grunt.option('path') %>/node_modules/tns-core-modules/" ,
322322 }
323323 } ,
324- ts : {
325- build : {
326- tsconfig : {
327- tsconfig : 'tsconfig.json' ,
328- passThrough : true ,
329- } ,
330- outDir : localCfg . outDir ,
331- dest : localCfg . outDir ,
332- options : tsOptions
333- } ,
334- buildNodeTests : {
335- src : [
336- 'tns-core-modules/js-libs/easysax/**/*.ts' ,
337- 'tns-core-modules/module.d.ts' ,
338- 'tns-core-modules/xml/**/*.ts' ,
339- 'tns-core-modules/lib.core.d.ts' ,
340- 'tns-core-modules/lib.dom.d.ts' ,
341- 'tns-core-modules/es-collections.d.ts' ,
342- 'tns-core-modules/declarations.d.ts' ,
343- 'tns-core-modules/es6-promise.d.ts' ,
344- 'node-tests/**/*.ts'
345- ] ,
346- outDir : localCfg . outDir ,
347- dest : localCfg . outDir ,
348- options : tsOptions
349- } ,
350- buildDts : {
351- src : [
352- 'tns-core-modules/**/*.d.ts' ,
353- '!org.nativescript.widgets.d.ts' ,
354- '!**/*.android.d.ts' ,
355- '!**/node_modules/**/*' ,
356- '!**/platforms/**/*' ,
357- '!bin/**/*' ,
358- '!**/references.d.ts' ,
359- '!tns-core-modules/references.d.ts' ,
360- '!tns-core-modules/android17.d.ts' ,
361- '!tns-core-modules/ios/**/*' ,
362- '!tns-core-modules/org.nativescript.widgets.d.ts' ,
363- ] ,
364- outDir : localCfg . outDir ,
365- dest : localCfg . outDir ,
366- options : tsOptions
367- } ,
368- testCombinedDts : {
369- src : [
370- path . join ( localCfg . outTnsCoreModules , 'tns-core-modules.d.ts' ) ,
371- ] ,
372- outDir : localCfg . outDir ,
373- dest : localCfg . outDir ,
374- options : Object . assign ( { } , tsOptions , { noLib : false } )
375- }
376- } ,
377324 tslint : {
378325 build : {
379326 files : {
@@ -400,6 +347,10 @@ module.exports = function(grunt) {
400347 callback : assignGitSHA
401348 }
402349 } ,
350+ compileAll : "npm run compile-all" ,
351+ compileNodeTests : "npm run compile-node-tests" ,
352+ compileCheckBaseDts : "npm run compile-check-base-dts" ,
353+ compileCheckCombinedDts : "npm run compile-check-combined-dts" ,
403354 } ,
404355 simplemocha : {
405356 node : {
@@ -431,7 +382,6 @@ module.exports = function(grunt) {
431382
432383 grunt . loadNpmTasks ( "grunt-contrib-clean" ) ;
433384 grunt . loadNpmTasks ( "grunt-contrib-copy" ) ;
434- grunt . loadNpmTasks ( "grunt-ts" ) ;
435385 grunt . loadNpmTasks ( "grunt-tslint" ) ;
436386 grunt . loadNpmTasks ( "grunt-exec" ) ;
437387 grunt . loadNpmTasks ( "grunt-shell" ) ;
@@ -446,8 +396,8 @@ module.exports = function(grunt) {
446396 ] ) ;
447397
448398 grunt . registerTask ( "compile-ts" , [
449- "ts:buildDts " ,
450- "ts:build " ,
399+ "shell:compileCheckBaseDts " ,
400+ "shell:compileAll " ,
451401 "clean:typeScriptLeftovers" ,
452402 "copy:childPackageFiles"
453403 ] ) ;
@@ -508,12 +458,12 @@ module.exports = function(grunt) {
508458 "copy:definitionFiles" ,
509459 "copy:jsLibs" ,
510460 "generate-tns-core-modules-dts" ,
511- "ts:testCombinedDts " ,
461+ "shell:compileCheckCombinedDts " ,
512462 ] ) ;
513463
514464 grunt . registerTask ( "node-tests" , [
515465 "clean:nodeTests" ,
516- "ts:buildNodeTests " ,
466+ "shell:compileNodeTests " ,
517467 "copy:childPackageFiles" ,
518468 "copy:jsLibs" ,
519469 "env:nodeTests" ,
0 commit comments