Not sure if this has been answered before so applogies. I am working on a project where I have two typescript files List.ts and TelephoneNumbers.ts. What I want to do is to transpile the files into List.js and TelephoneNumbers.js and then minify them. I do not want is the files to be transpiled into one file.
Additional information:
Edit
So how do I do this? If gulp is not a viable option then what tooling should I use?
This is the relevant method in my gulp.js
const ts = require('gulp-typescript');
function typescriptPreProcessor(fileName) {
fileName = fileName.replaceAll(/\.ts$/gi, '.js');
let tsProject = ts.createProject('Source/Scripts/tsconfig.json')
tsProject.src().pipe(tsProject()).js.pipe(gulp.dest(fileName));
return fileName;
}