react-native-navigation的迁移库

1234567891011121314151617
  1. const exec = require('shell-utils').exec;
  2. run();
  3. function run() {
  4. exec.killPort(8081);
  5. exec.execSync(`watchman watch-del-all || true`);
  6. exec.execSync(`adb reverse tcp:8081 tcp:8081 || true`);
  7. exec.execSync(`rm -rf lib/ios/DerivedData`);
  8. exec.execSync(`rm -rf playground/ios/DerivedData`);
  9. exec.execSync(`rm -rf lib/android/build`);
  10. exec.execSync(`rm -rf lib/android/app/build`);
  11. exec.execSync(`rm -rf playground/android/build`);
  12. exec.execSync(`rm -rf playground/android/app/build`);
  13. exec.execSync(`rm -rf lib/dist`);
  14. }