My project has a bunch of folders with typescript files within them that need to be compiled into one js file per folder. I want to have incremental building, so I've used ts.createProject outside of the task. To accomplish this I'm calling createProject dynamically to create a project per folder, then referring back to those folders in the gulp task.
This seems like a lot of acrobatics to pull something fairly "standard" together. Also, it doesn't work the way I have it setup. Nothing is output, I think because the projects are not getting any file input as it stands currently.
Is there a simple way to do this that I'm overlooking? How do I pass in files to the tsProject like in the 2nd tap function I wrote below?
For anyone with a similar issue, I've switched to rollup for this particular use-case, seems to be a better fit for the job. Things are now working as I needed.
My project has a bunch of folders with typescript files within them that need to be compiled into one js file per folder. I want to have incremental building, so I've used ts.createProject outside of the task. To accomplish this I'm calling createProject dynamically to create a project per folder, then referring back to those folders in the gulp task.
This seems like a lot of acrobatics to pull something fairly "standard" together. Also, it doesn't work the way I have it setup. Nothing is output, I think because the projects are not getting any file input as it stands currently.
Is there a simple way to do this that I'm overlooking? How do I pass in files to the tsProject like in the 2nd tap function I wrote below?