Hi all, could someone please suggest how to use ty...
# sdf
c
Hi all, could someone please suggest how to use typescript for developing Suitescripts and SDF deploy. Is there any references for the same is really helpful.
s
For TypeScript, I think the best environment is using NFT https://github.com/ExploreConsulting/netsuite-fasttrack-toolkit-ss2. For SDF, we just manipulate our
manifest
and
deploy
files
c
Thanks @stalbert. But it seems this needs third party libraries which needs approvals from our end. Is there any other alternatives? Once again thank you so much for answering.
s
I recommend not writing code without third party libraries 🙂 I think a couple people have written blogs on TS and SuiteScript, but you could also just swipe the
tsconfig.json
file from that NFT project as a starting point
c
I will try as you suggested. Thanks once again 🙂
m
There are typing and an example tsconfig file at https://www.npmjs.com/package/@hitc/netsuite-types. Personally I use sdfcli instead of the IDE plugins, and keep my SDF project in a
/dist
subfolder so that my node_modules folder doesn't get included, and I have a gulp build step (it's changed a bit but the basic idea is https://github.com/michoelchaikin/netsuite-deploy/blob/master/sample/gulpfile.js). However if you don't want a build step, you could just watch the files with typescript or your IDE and have the .ts files sit in your SDF project like I am doing in this project: https://github.com/michoelchaikin/netsuite-mapreduce-util
👍🏽 4
🙏 1
c
Thank you @michoel