summaryrefslogtreecommitdiff
path: root/plugins/react-native/_react-native
diff options
context:
space:
mode:
authordebbbbie <debbbbie@163.com>2016-05-31 05:41:45 -0500
committerMarc Cornellà <marc.cornella@live.com>2016-05-31 12:41:45 +0200
commite1e549ca504b18d3ee5d5ea22d2d99a45ac1f668 (patch)
treee2393791300a74d842866734ddbad6af7d54d3aa /plugins/react-native/_react-native
parent483f1208a5fc1fbe129958452388bdc3c3409e1e (diff)
downloadzsh-e1e549ca504b18d3ee5d5ea22d2d99a45ac1f668.tar.gz
zsh-e1e549ca504b18d3ee5d5ea22d2d99a45ac1f668.tar.bz2
zsh-e1e549ca504b18d3ee5d5ea22d2d99a45ac1f668.zip
add plugin react-native (#4606)
Diffstat (limited to 'plugins/react-native/_react-native')
-rw-r--r--plugins/react-native/_react-native23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/react-native/_react-native b/plugins/react-native/_react-native
new file mode 100644
index 000000000..47ee8c370
--- /dev/null
+++ b/plugins/react-native/_react-native
@@ -0,0 +1,23 @@
+#compdef react-native
+#autoload
+
+local -a _1st_arguments
+_1st_arguments=(
+ 'start:starts the webserver'
+ 'bundle:builds the javascript bundle for offline use'
+ 'new-library:generates a native library bridge'
+ 'android:generates an Android project for your app'
+ 'run-android:builds your app and starts it on a connected Android emulator or device'
+ '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'
+)
+
+
+_arguments \
+ '(--version)--version[show version]' \
+ '(--help)--help[show help]' \
+ '*:: :->subcmds' && return 0
+
+if (( CURRENT == 1 )); then
+ _describe -t commands "react-native subcommand" _1st_arguments
+ return
+fi