Skip to content

Docs: Cross-platform backend dev launcher with automatic command fallback#447

Open
chinhkrb113 wants to merge 1 commit into666ghj:mainfrom
chinhkrb113:contribai/docs/cross-platform-backend-dev-launcher-with
Open

Docs: Cross-platform backend dev launcher with automatic command fallback#447
chinhkrb113 wants to merge 1 commit into666ghj:mainfrom
chinhkrb113:contribai/docs/cross-platform-backend-dev-launcher-with

Conversation

@chinhkrb113
Copy link
Copy Markdown

Description

Add a small Node script that starts backend/run.py in a robust cross-platform way. It should detect and try backend launch commands in order, so Windows users can still use one command (npm run dev) even if uv is not installed but python/py is available.

Changes

  • scripts/dev-backend.js (new)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Testing

  • Code follows the style guidelines of this project
  • Self-review of code completed
  • Changes generate no new warnings
  • Corresponding changes to documentation made (if applicable)

Severity: high

Closes #313

…back

Add a small Node script that starts `backend/run.py` in a robust cross-platform way. It should detect and try backend launch commands in order, so Windows users can still use one command (`npm run dev`) even if `uv` is not installed but `python`/`py` is available.

Affected files: dev-backend.js

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm run dev不能直接使用

1 participant