Create a gulpfile.js
In the project root, create the file gulpfile.js
:
1 2 3 4 5 6 7 8 9 | var gulp = require( "gulp" ); var ts = require( "gulp-typescript" ); var tsProject = ts.createProject( "tsconfig.json" ); gulp.task( "default" , function () { return tsProject.src() .pipe(ts(tsProject)) .js.pipe(gulp.dest( "dist" )); }); |
Please login to continue.