Closed RuntimeRascal closed 5 years ago
Hi, I've added tentative support to gulpfile.ts
, let me if it works as intended.
Seems to work great. Thank you so much.
From: Kaiyuan Liu notifications@github.com Sent: Thursday, September 27, 2018 1:33 PM To: lkytal/quickTask Cc: Tommy; Author Subject: Re: [lkytal/quickTask] Please add typescript gulp files (#28)
Hi, I've added tentative support to gulpfile.ts, let me if it works as intended.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flkytal%2FquickTask%2Fissues%2F28%23issuecomment-425178161&data=02%7C01%7C%7C4dfe04d4a88341a0e9a208d6249f5517%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636736664070651364&sdata=17tmcxdmXRCj4wuWtMG%2FIoyjaQv6yEXRGJVxJjlgFxQ%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACT1zpuXK0-WsJRbd-kPWM6HL3B-egXXks5ufQvlgaJpZM4W5z3f&data=02%7C01%7C%7C4dfe04d4a88341a0e9a208d6249f5517%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636736664070651364&sdata=6Fr6qfAep5xxLG6AHIJsGyyLUEebm7HzOraXVyIb274%3D&reserved=0.
Gulp has built-in support for typescript.
If you have
ts-node
installed eg:npm i -D ts-node
then you can include agulpfile.ts
file and simply run thegulp
command.gulp
will automatically register withts-node
to transpile in memory and execute the resulting javascript. I think it does it like sogulp --require ts-node/register
I use
typescript
for my gulp files as it gives me great intellisense and library discovery. Also, everything in my project is typescript so the uniformity is nice. I allready hadts-node
sincemocha
requires it to usetypescript
.I really like your extension and use for my vs tasks and npm scripts.
Please allow
.ts
files for gulp file globs to allow typescript.