Epic React update-deps script

Whenever I update react-workshop-app, I need to update all my EpicReact workshop repos. I have a script in each one called update-deps which looks like this:


So I've put together a little script that opens an individual terminal window for each of the repos and runs the update-deps script and pushes. Really straightforward and saves me a lot of time.

// Menu: Update EpicReact deps
// Description: Update all the dependencies in the epicreact workshop repos
const repos = [
const script = `git add -A && git stash && git checkout main && git pull && ./scripts/update-deps && git commit -am "update all deps" --no-verify && git push && git status`
for (const repo of repos) {
const scriptString = JSON.stringify(
`cd ~/code/epic-react/${repo} && ${script}`,
`osascript -e 'tell application "Terminal" to activate' -e 'tell application "Terminal" to do script ${scriptString}'`,