Compile TypeScript files to JavaScript with tvm
npm install grunt-tvm-tsc``shell`
npm install grunt-tvm-tsc --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-tvm-tsc');
_Run this task with the grunt tvm_tsc command._
`js`
tvm_tsc: {
all: {
options: {
version: '1.0.1', // default: latest
option: '--target ES5 --removeComments'
},
files: {
'path/to/result.js': 'path/to/source.ts'
}
}
}
+ Default: 'latest'
+ TypeScript compiler version$3
+ Type: String`