react-native-navigation的迁移库

clean.js 473B

123456789101112131415
  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(`cd lib/android && ./gradlew clean`);
  10. exec.execSync(`cd playground/android && ./gradlew clean`);
  11. exec.execSync(`cd AndroidE2E && ./gradlew clean`);
  12. }