_react-native 760 B

1234567891011121314151617181920212223
  1. #compdef react-native
  2. #autoload
  3. local -a _1st_arguments
  4. _1st_arguments=(
  5. 'start:starts the webserver'
  6. 'bundle:builds the javascript bundle for offline use'
  7. 'new-library:generates a native library bridge'
  8. 'android:generates an Android project for your app'
  9. 'run-android:builds your app and starts it on a connected Android emulator or device'
  10. 'upgrade:upgrade your apps template files to the latest version; run this after updating the react-native version in your package.json and running npm install'
  11. )
  12. _arguments \
  13. '(--version)--version[show version]' \
  14. '(--help)--help[show help]' \
  15. '*:: :->subcmds' && return 0
  16. if (( CURRENT == 1 )); then
  17. _describe -t commands "react-native subcommand" _1st_arguments
  18. return
  19. fi