is it possible to add a pre-deploy build hook in S...
# suitescript
k
is it possible to add a pre-deploy build hook in SDF for vscode? 😅
e
I don't know about VSCode specifically. Hooks can be defined in the project's
suitecloud.config.js
file.
k
i did find my way there, but it's unclear how to use it to just run some shell code
would i have to use execSync or something? that seems a bit painful
e
You'll probably have to do something else for shell code; that's a JS file. Does webpack have a JS that you can invoke?
k
i could do it, but it's also quite painful. i think i'll shift to the suitescript cli and just use a package.json script
e.g.
"scripts": { "deploy": "npm run build && suitescript deploy" }
i can explore a JS integration later, i don't want to bring myself more integration pain at the moment 😂
f
Maybe build it into your CI/CD pipeline.