-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Available Scripts #41
Comments
Hi @davidsonsns Thanks for opening the issue 👍 I already thought about this feature, but the problem is that the project might be something like a library or a CLI. In this case, suggest scripts command from the Please let me know if you have a solution anyway 😄 |
I have a partial solution for this. Look for the |
And how to know if it's a standard project (like an app) or a library ? |
One Idea that just came to mind is to check the "main" file for exports. If exports are present then we are most likely looking at a library. If there is no export then I would think that the whole thing starts a self contained something... This could also work with transpiled code like typescript #justanidea |
Hmmm that might be a solution indeed 😉 Are you interested in doing a PR ? |
Hey, I think @dejanfajfar idea to detect if the project is a library or an actuel app is great. So here is my proposal : no matter the project type, ask if she/he wants to display the available scripts, if yes, ask if we should display all scripts. Finaly if the answer is no, display a list of all available scripts and allow the user to select which ones he wants to see on the readme. What do you think :) ? |
Or maybe always display the list of all available scripts (items are not selected by default), and let the user choose which one he want to embed? |
Hum my guess is it would cause problem if we do that in one step. Like : Display available scripts ?
If the user chooses "No", we should go to the next step, same for "All". But for the other options, he/she should be able to choose many. It might be confusing to have some option which directly make you go to the next step, and some others not. So maybe it would be simpler to have something like :) ? Display available scripts ?
If "Yes" :
If "Only some of them" :
|
I'll work on it :) |
What do you think about a session
Available Scripts
?Getting all your
scrpts
commands onpackage.json
file. Like generated apps withcreate-react-app
.If is ok I can try to do this.
The text was updated successfully, but these errors were encountered: