-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Delete node_modules when running gradle's clean task #23391
Delete node_modules when running gradle's clean task #23391
Conversation
Size Change: 0 B Total Size: 1.12 MB ℹ️ View Unchanged
|
👋 @hypest! Just wanted to call your attention to the fact that I pushed a small, unrelated update in 8a87e41 where I am now constructing a file object a single time outside of the loop instead of doing it repeatedly inside the loop. Doing this just for the sake of performance, it should not change any behavior. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ 4. Verify that the libs/gutenberg-mobile/node_modules and libs/gutenberg-mobile/gutenberg/node_modules directories no longer exist
✅ 6. Verify that you can load the gutenberg editor when running the generated apk
✅ 7. Verify that the libs/gutenberg-mobile/node_modules and libs/gutenberg-mobile/gutenberg/node_modules directories do not exist (confirms that the clean task does not interfere with the order of the tasks needed to generate the js bundle for android).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified node_modules is cleaned up as described in steps 4, 6, 7, and that the specified edited files are correctly using spaces after the .editorconfig update. LGTM!
Will merge this one with "preserve commits" mode. |
Description
Updating the
react-native-bridge
's clean task to also delete thenode_modules
directory. This will help ensure that developers who are not familiar with js development have a good chance of recovering from a bad state using the gradle build.In addition:
resetExtractedRNTools
task to print during the execution phase instead of the configuration phase;gutenberg/
, Android Studio was overriding my settings and using tabs instead of spaces inside thegutenberg-mobile/gutenberg
directory.How has this been tested?
Cleaning
libs/gutenberg-mobile/node_modules
andlibs/gutenberg-mobile/gutenberg/node_modules
directories are NOT empty. A dummy file is fine.gradle.properties
file haswp.BUILD_GUTENBERG_FROM_SOURCE
set to false (or is missing that variable entirely)../gradlew clean
libs/gutenberg-mobile/node_modules
andlibs/gutenberg-mobile/gutenberg/node_modules
directories no longer exist./gradlew clean installWasabiDebug
libs/gutenberg-mobile/node_modules
andlibs/gutenberg-mobile/gutenberg/node_modules
directories do not exist (confirms that the clean task does not interfere with the order of the tasks needed to generate the js bundle for android)..editorconfig
Do the following for a (1) .gradle, (2) .java, (3) .kt, and (4) .XML file somewhere within
packages/react-native-*/
.Checklist: