Add command detection to git import flow #589
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I already added this for folder import before #426
Now extracted and reused for git import as well
Here is video:
2024-12-08.12-21-05.mp4
Purpose:
Removes couple of steps, especially for non developers, in seeing preview of loaded project.
Way it works is that it checks if there is package.json file, reads it, checks for commands, runs install and tries to run commands
https://github.com/coleam00/bolt.new-any-llm/pull/589/files#diff-6974fdf2657c6325130ca11f89326ffe1297cb97971c3c377e712387ce45cec5R30
In case there is no package.json but there is index.html it does npx serve
If nothing is found it just adds message that standard ways to run project were not found and proposes to send request to AI to analyse how to run the project.