gulp-typescript npm package of node.js


Overview

This is a typescript compiler for gulp which is used to convert typescript files into javascript .

Code


													
var gulp = require('gulp');
var type = require('gulp-typescript');

gulp.task('default', function () {
    return gulp.src('source/*.ts')
        .pipe(type({
            noImplicitAny: true,
            out: 'type.js'
        }))
        .pipe(gulp.dest('./css'));
});
          
		
				
													
												

Run

  • Now run the snippet using the following command :
    													
    $ gulp