grunt-tvm-tsc
Compile TypeScript files to JavaScript with TypeScript Version Manager.
Getting Started
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
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:
grunt.loadNpmTasks('grunt-tvm-tsc');
Compile TypeScript with Version Manager task
Run this task with the grunt tvm_tsc
command.
Usage Examples
tvm_tsc: {
all: {
options: {
version: '1.0.1', // default: latest
option: '--target ES5 --removeComments'
},
files: {
'path/to/result.js': 'path/to/source.ts'
}
}
}
Options
version
- Type:
String
- Default: 'latest'
- TypeScript compiler version
option
- Type:
String
- Default: empty
- tsc Command-line argument as option: tsc [options]