-
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
Mobile: Improve npm clean scripts for react-native-editor #38752
Conversation
"clean:install": "npm run clean; npm install", | ||
"clean:jest": "jest --clearCache --config ../../test/native/jest.config.js; rm -rf $TMPDIR/jest_*", | ||
"clean:metro": "rm -rf $TMPDIR/metro-cache-*;", | ||
"clean:metro": "rm -rf $TMPDIR/metro-cache/", | ||
"clean:react": "rm -rf $TMPDIR/react-*", |
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.
I'm not seeing any $TMPDIR/react-*
files. Perhaps we don't need the clean:react
command anymore?
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.
I don't have any $TMPDIR/react-*
either, probably ok to remove the command.
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.
👍 Updated the PR to remove clean:react
as well. I'll re-request your review in case you have any additional thoughts.
Size Change: 0 B Total Size: 1.15 MB ℹ️ View Unchanged
|
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.
npm run clean
worked as expected, 👍
These files don't seem to get created anymore, so we don't need to clean them either
0443860
to
f757670
Compare
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.
👍
Description
Updating the clean scripts to delete the proper cache files.
It seems like these cache files have moved (possibly due to one of the React Native upgrades) since these scripts were last updated. I am basing these updates on the files that I am seeing on my local machine. Let me know if you think that these might be different for different people.
I did notice that there was also a
kotlin-compiler-in-wordpressreactnativebridge-17156846827643056472.alive
in the$TMPDIR
. I am not adding anything to remove that at this time since I don't know what it is used for, but it might be something we want to consider in the future.Testing Instructions
npm run bundle
from gutenberg-mobilehaste-map-metro-*
file and ametro-cache/
file in "$TMPDIR"npm run clean
from gutenberg-mobile$TMPDIR/
(apart from the earlier mentionedkotlin-compiler-in...
file.Types of changes
Infrastructure improvement
Checklist:
*.native.js
files for terms that need renaming or removal).