# 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"

Add bash script to automate more tasks
Add bash script to automate more tasks

To make sure we always perform the replace and to format automatically,
as well as making sure that the build actually works.

R=993fcadce4d04090da2fefd557a0995e7966c8d5@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 <dba8716ee7f8d16236046f74d2167cb94410f6ed@chromium.org>
Commit-Queue: Jack Franklin <993fcadce4d04090da2fefd557a0995e7966c8d5@chromium.org>
Auto-Submit: Tim van der Lippe <dba8716ee7f8d16236046f74d2167cb94410f6ed@chromium.org>
Reviewed-by: Jack Franklin <993fcadce4d04090da2fefd557a0995e7966c8d5@chromium.org>
