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

Run clean-project-auto without React Native CLI #45

Open
sonicdoe opened this issue Oct 19, 2020 · 10 comments · May be fixed by #90
Open

Run clean-project-auto without React Native CLI #45

sonicdoe opened this issue Oct 19, 2020 · 10 comments · May be fixed by #90

Comments

@sonicdoe
Copy link

If clean-project-auto were available through the react-native-clean-project executable (or a separate react-native-clean-project-auto executable), npx could be used without having to install the React Native CLI.

In short, it would be useful to have npx react-native-clean-project --auto.

@pmadruga
Copy link
Owner

What happens when you run npx react-native-clean-project?

@sonicdoe
Copy link
Author

It runs the main executable. Therefore, it asks “Wipe iOS build folder? (Y/n)”.

@plaa
Copy link

plaa commented Nov 6, 2020

I was trying to find a command line argument for this as well. Also npx react-native-clean-project --help just starts the interactive wiping.

Command line help should be provided with -h/--help and unknown command line parameters should cause an error (like every other command line tool).

@gwendall
Copy link

+1

@pmadruga
Copy link
Owner

pmadruga commented Feb 15, 2021

To be sure, what you're requesting is the ability to do the same as clean-project-auto (meaning, that there's no brew update/upgrade, no yarn install and no pod update ).

Shouldn't be a problem, going to aim to work on it this week or the next.

@sonicdoe
Copy link
Author

Exactly. In other words, provide react-native clean-project-auto through direct execution.

@pmadruga
Copy link
Owner

What this would create is some opinionated cleanup. Meaning that it would run all the commands. Is this OK for everyone?

@sonicdoe
Copy link
Author

Do you mean all commands that react-native clean-project-auto would run (for example, not pod update)?

@pmadruga
Copy link
Owner

Yes, if that's what the community wants. What do you suggest?

@sonicdoe
Copy link
Author

I think that’s good 👍 After all, that’s exactly how the existing react-native clean-project-auto command already works.

taylorkline added a commit to taylorkline/react-native-clean-project that referenced this issue Feb 4, 2022
taylorkline added a commit to taylorkline/react-native-clean-project that referenced this issue Feb 4, 2022
…ect-auto

Closes pmadruga#45 by allowing `npx react-native-clean-project --auto` to work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
@gwendall @sonicdoe @plaa @pmadruga and others