quick question: is there a way to run scripts befo...
# sst
t
quick question: is there a way to run scripts before and after
sst start
?
t
what are you looking to do?
t
just running a local command
this is just when running
sst
locally
t
I'm looking to understand what specifically you're looking to do
t
e.g. console
t
you can of course you do
mycommand && yarn sst start && othercommand
t
I want to start a new instance of
temporalite
t
but this is pretty uncommon
t
you can of course you do mycommand && yarn sst start && othercommand
yeah sure haha
just looking if there was an alternative
t
that's the only way I can think of there's no specific thing in SST that allows this
but we've been thinking about supporting a plugin system for this kind of thing
t
yes! that's kinda it
would be lovely
thanks ❤️
k
couldn't you use npm's "prestart" script? that should trip before the "start" entry when you do npm start. https://docs.npmjs.com/cli/v8/using-npm/scripts
t
didn't know about this!
k
Yeah it's handy. They also have post scripts for those as well. I've also installed
concurrently
as a npm dependency and fired off things in parallel with it. Very handy if you have to launch a React front-end and a Proxy server for example.
m
yeah i recommend
concurrently
- pnpm has something similar built-in although not as flexible