Is anyone using WebStorm + TypeScript + the SDF p...
# sdf
r
Is anyone using WebStorm + TypeScript + the SDF plugin? How is it?
d
Awesome! 🙂
I have a dilemma though. WebStorm supports SDF plugin. And Idea supports FreeMaker plugin. Cannot have them both. 😞
r
Do you have to do anything specific in terms of configuring WebStorm/SDF to use TypeScript? We're currently in the process of moving everything over to a new SDF repo as before we were just using a gulp task from HITC in VS Code.
Now I'm deploying via npm commands but interested in how WebStorm plays and if you can upload single files rather than the whole project
d
I actually didn't try pushing the file one by one, but I believe SDF can do that. In my environment I use gulp basically to run 2 commands: tsc in the project folder and suitecloud project:deploy (which also runs units tests for me)
s
It’s not ideal, but you can use the plug in with IntelliJ IDEA. It cannot create projects, but you can create them using the SDF CLI tool, then open the project with IntelliJ IDEA.
d
Yes, I know that. But what I wanted from SDF plugin is to create custom objects. But this only works in Webstorm
s
yes, there are other limitations too. I really wish they would fully support IDEA, since it is supposed to be the comprehensive IDEA (with all features of WebStorm, plus more).
For me, I usually always start by building custom objects in a developer account, then once I am satisfied with it, import it into my SDF project and then make incremental changes to it from there. Sad, but if you are stuck with IDEA, that is one possibility. It’s currently possible to also use Eclipse just for a few things like this, but they are dropping support for it soon, and Eclipse is just painful to use anyway.
👍 1
s
I'll also suggest that webstorm+sdf+ts (and well, NFT) is a winning combo for NetSuite development.
s
I use IDEA for Java & Groovy development in our other applications, and WebStorm doesn’t support those. For any of us that maintain multiple projects in different languages, it’s a tough sell to say we need to pay additionally for WebStorm when we already have IDEA.
s
you guys don't have jetbrains subscriptions? That solves the problem pretty cleanly for a fairly modest fee for business use.
Heck, I used to pay for the subscription personally when I was doing more Scala work.
s
We do have jetbrains subscriptions, actually. I was told WebStorm had to be licensed separately. Last time I tried, my subscription didn’t work for WebStorm. Perhaps it requires a different kind or level of subscription?
I actually just tried it a few weeks ago, and WebStorm wouldn’t accept the subscription
r
@stalbert - Could you elaborate a bit more on your dev workflow? Do you upload the whole project when making changes or single files? I'm interested as sometimes we may have multiple people on the same repo but diff branches and that could get messy 😄
s
we use feature branches, and configure
deploy.xml
to just deploy the files for the specific feature.
r
That makes a lot of sense, I've just created a 'generic'
deploy.xml
for starting the repo - example:
Copy code
<deploy>
    <configuration>
        <path>~/AccountConfiguration/*</path>
    </configuration>
    <files>
        <path>~/FileCabinet/*</path>
    </files>
    <objects>
        <path>~/Objects/*</path>
    </objects>
    <translationimports>
        <path>~/Translations/*</path>
    </translationimports>
</deploy>
Apologies for the second ping @stalbert but interested in the NFT stuff too - I've heard and read about it but never implemented it. How much hassle is it to implement? Can you still have 'legacy' scripts and start using NFT in new ones? Interested as to how you structure it in SDF.
s
Yes, you simply choose to use NFT libs in a given script or not. The only extra step NFT needs is to 'advanced add' the NFT ZIP file to the file cabinet. Since that code never changes, no need to deploy it again.
r
That's great, thanks! I'm going to look into that once I return from leave
👍 1
d
Sorry, I know I was told about that before, but what are NFT libs for?