Hi all! Has anyone here used the SDF plugin for We...
# sdf
k
Hi all! Has anyone here used the SDF plugin for WebStorm? Is there a way to select an account when uploading files? Mine only uploads to the first account on the list and there doesn't seem to be a way to tell it which account to upload to.
s
use (right-click then) 'deploy to account...'?
k
Last time I tried that it deployed the entire project. I'm afraid to try it again lol
s
that should present you a dropdown of all accounts you have configured
oh, sorry I misunderstood, you meant the
upload
feature, not deploy
One approach is to just reduce your
deploy.xml
to only the file(s) you want to upload
then use [deploy to account...]
k
Ah, I wish I'd checked back here before trying the deploy to account again. Waiting for it to deploy the whole project now...
s
as far as I know
upload
(i.e. not
deploy
) only considers the 'default' account
I can't use that upload thingie because it doesn't recognize .JS files when I'm using TS and have the project view nest them (.js nests under the corresponding .ts which is sane)
k
There's an option in the debug configuration to build .ts before uploading 🙂
I haven't tried it yet but it looks promising
s
you will need to change the default account of the project
a
Have you guys checked run debug configuration provided by the plugin?
m
@Ali Syed (NS DevTools QA) no I hadn't seen them before and it looks like that will be very handy for example to run tests before deployment. It looks like this only supports Deploy, Preview and Validate, though,. The use case I was trying to solve with these npm scripts is uploading individual files to a specific account easily. We need this because we still have legacy scripts that we haven't yet created individual SDF projects for, so we have a huge SDF project we wouldn't never want to deploy.
k
@michoel your npm script works beautifully! Now I just have to set up hot keys for easily switching accounts. My runner up solution was going to be maintaining three separate directories for dev/qa/prod. I'm not sure yet what the best practice is for maintaining SDF repositories.
s
I think the best practices there are still evolving
k
I think I may still do the three separate folders thing until I can get all three environments in sync (I inherited this mess and it won't be fully resolved until we're fully live in Production and can do Sandbox refreshes).
Trying to synchronize customizations created independently via the UI in all three environments is a headache. >.<