Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command detection to git import flow #589

Conversation

wonderwhy-er
Copy link
Collaborator

@wonderwhy-er wonderwhy-er commented Dec 8, 2024

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.

@dustinwloring1988
Copy link
Collaborator

@wonderwhy-er Looks nice, trying now

@dustinwloring1988
Copy link
Collaborator

dustinwloring1988 commented Dec 8, 2024

Works great on Windows and Linux

@wonderwhy-er wonderwhy-er merged commit 67f63aa into stackblitz-labs:main Dec 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants