feat: add react dev tools (#143)

This commit is contained in:
Brandon Keiji
2025-04-24 01:16:15 +00:00
committed by GitHub
parent cf89c030d0
commit c24dc0ec77
3 changed files with 52 additions and 2 deletions

View File

@@ -23,9 +23,11 @@ if scripts/sandbox_command.sh -q; then
scripts/start_sandbox.sh "$@"
else
echo "WARNING: OUTSIDE SANDBOX. See README.md to enable sandboxing."
# DEV=true to enable React Dev Tools (https://github.com/vadimdemedes/ink?tab=readme-ov-file#using-react-devtools)
# CLI_VERSION to display in the app ui footer
if [ -n "${DEBUG:-}" ]; then
CLI_VERSION='development' node --inspect-brk node_modules/@gemini-code/cli "$@"
CLI_VERSION='development' DEV=true node --inspect-brk node_modules/.bin/gemini-code "$@"
else
CLI_VERSION='development' node node_modules/@gemini-code/cli "$@"
CLI_VERSION='development' DEV=true node node_modules/.bin/gemini-code "$@"
fi
fi