Skip to content

Commit

Permalink
update dev script to use bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
tcm390 committed Feb 11, 2025
1 parent 9ca36aa commit f45370f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build:cli": "turbo run build --filter=./packages/cli && cd packages/cli && bun link",
"start": "turbo run start --filter=!./packages/docs",
"agent": "turbo run start --filter=@elizaos/agent",
"dev": "turbo run dev --filter=!./packages/docs --concurrency=20",
"dev": "bash ./scripts/dev.sh",
"release": "bun run build && bun format && npx lerna publish --no-private --force-publish",
"docker:build": "bash ./scripts/docker.sh build",
"docker:run": "bash ./scripts/docker.sh run",
Expand Down
24 changes: 24 additions & 0 deletions scripts/dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# An array of matching commands to run.
COMMANDS=(
"turbo run dev --filter=./packages/core"
"turbo run dev --filter=./packages/plugin-sqlite"
"turbo run dev \
--filter=!./packages/agent \
--filter=!./packages/cli \
--filter=!./packages/docs \
--filter=!./packages/core \
--filter=!./packages/plugin-sqlite \
--concurrency=20"
"turbo run dev --filter=./packages/agent --filter=./packages/cli"
)

# Loop over each command/comment pair
for i in "${!COMMANDS[@]}"; do
${COMMANDS[$i]} &

sleep 3 # 3-second delay before starting each dev command
done

# Wait for all background jobs (dev servers) to keep the script alive
wait

0 comments on commit f45370f

Please sign in to comment.