How do you write Gulp tasks in TypeScript?

How do you write Gulp tasks in TypeScript?

I saw projects like this where they write Gulp tasks in TypeScript, so I know that it’s possible, m having a hard time finding out how they installed it.

+4
source share
1 answer

Well, after I dug up and cut this project a bit, I found it.

To run gulpfile.ts without compiling the file, you can use the ts-node package . This package allows you to run TypeScript directly in node, in which case you can use it to run gulp, which will compile and run TypeScript on the fly when performing gulp tasks.

, , .

+6

Source: https://habr.com/ru/post/1655119/


All Articles