aboutsummaryrefslogtreecommitdiffstats
path: root/start
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2023-11-15 19:29:24 +0100
committerMaksymilian Jopek <maks@jopek.eu>2023-11-15 19:34:12 +0100
commit857c528369473a66518407dee6f6cac89bbc538c (patch)
treecccf02a369ee6cafb2a89750ee222ebba69d2269 /start
downloadlisteya-xelata-nobele-857c528369473a66518407dee6f6cac89bbc538c.tar.gz
listeya-xelata-nobele-857c528369473a66518407dee6f6cac89bbc538c.tar.zst
listeya-xelata-nobele-857c528369473a66518407dee6f6cac89bbc538c.zip
Initial commit, v1.0.0HEADmaster
Diffstat (limited to 'start')
-rwxr-xr-xstart9
1 files changed, 9 insertions, 0 deletions
diff --git a/start b/start
new file mode 100755
index 0000000..8596b88
--- /dev/null
+++ b/start
@@ -0,0 +1,9 @@
+#!/bin/zsh
+runner="$(echo "$([ -x "$(which npm)" ] && echo "npm")\n$([ -x "$(which yarn)" ] && echo "yarn")\n$([ -x "$(which pnpm)" ] && echo "pnpm")\nnode" | shuf | head -1)"
+
+[ -n "$@" ] && cmd="dev" || cmd="$@"
+if [ "$runner" = "node" ]; then
+ node node_modules/vite/bin/vite.js $cmd
+else
+ "$runner" run $cmd
+fi