mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 03:51:24 +08:00
To make sure we always perform the replace and to format automatically, as well as making sure that the build actually works. R=jacktfranklin@chromium.org Bug: 1222126 Change-Id: I83d44282024f9ffa33a345e05b8c1a5c48923068 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3219235 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
11 lines
515 B
Bash
Executable File
11 lines
515 B
Bash
Executable File
# This script expects to be called from the root of the repository
|
|
# Example:
|
|
# scripts/migration/class-fields/migrate.sh panels/console
|
|
#
|
|
$PWD/third_party/node/node.py --output scripts/migration/class-fields/migrate.js $1/
|
|
find $PWD/front_end/$1/ -type f -exec sed -i -e 's/SOME_STUPID_PREFIX_/#/g' {} \;
|
|
git cl format --js
|
|
NINJA_SUMMARIZE_BUILD=1 autoninja -C out/Default front_end/$1:bundle
|
|
git add .
|
|
git commit -m "Migrate to private class fields in $1" -m "" -m "R=szuend@chromium.org" -m "" -m "Bug: 1222126"
|