react-native-navigation的迁移库

clean.js 418B

1234567891011121314
  1. const exec = require('shell-utils').exec;
  2. run();
  3. function run() {
  4. exec.kill('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. }