Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

123
Views
Converting multipe TypeScript files into into individual JavaScript files

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:

  1. I am using gulp
  2. The development environment is WebStorm on Windows 10

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;
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!