if anyone is curious I have a cool workflowwhen d...
# sdf
s
if anyone is curious I have a cool workflowwhen deploying
ntl which is Node Task List
gives me my NPM scripts inteactive
I created npm scripts like this
Copy code
"upload": "pretty-quick && suitecloud file:upload -i",
s
I take it you don't use webstorm, which gives you a gui panel you can keep open showing all npm scripts in the project and letting you run (or even debug) them with a click?
r
Where can I find this? Pretty new with webstorm
s
right click
package.json
-> 'show npm scripts'
s
I prefer CLI vs GUI
it faster
w
Is it faster than double-clicking the option in a list? Maybe I like my mouse too much.
s
yes keypad is faster
s
I can't agree with that. I'm not trying to belittle your approach but with ntl you have to navigate around and run scripts, not to mention the overhead of actually running ntl which then runs your command. If I ever want something faster than a double-click I'd just assign it a direct keyboard shortcut in webstorm... but then again the webstorm plugin already has ALT+SHIFT+U bound to upload a file 🙂
that said, I do use CLI for things like sdf deploy - since it doesn't lock up the IDE
s
whith git to you also use gui
if you want to run prettier than test then upload one script
s
I use webstorm gui for basic git operations - because it's faster. Having integrated diffing and commit message entry is a great user experience in webstorm. For advanced git I use cli. Also, I don't run prettier because webstorm also provides automatic formatting per whatever coding standard you prescribe (I use standardjs).
s
I hear
m
Webstorm can do prettier.js formatting on save. You used to have to set up a file watcher but in one of the newer releases its native.
@stalbert if you haven't tried prettier I recommend giving it a shot. It's in a different league compared to IDE formatting
s
does it slow things down? I thought webstorm has built in support for standardjs, which is what we use.
m
I haven't noticed any delay at all. The difference between prettier.js and other formatters is that it completely disregards your original formatting by parsing your code into AST and then reprinting as formatted source code