react-native-navigation的迁移库

clean.js 649B

12345678910111213141516171819
  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 AndroidE2E/android/build`);
  14. exec.execSync(`rm -rf AndroidE2E/android/app/build`);
  15. exec.execSync(`rm -rf lib/dist`);
  16. }