diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2023-11-15 19:29:24 +0100 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2023-11-15 19:34:12 +0100 |
| commit | 857c528369473a66518407dee6f6cac89bbc538c (patch) | |
| tree | cccf02a369ee6cafb2a89750ee222ebba69d2269 /start | |
| download | listeya-xelata-nobele-857c528369473a66518407dee6f6cac89bbc538c.tar.gz listeya-xelata-nobele-857c528369473a66518407dee6f6cac89bbc538c.tar.zst listeya-xelata-nobele-857c528369473a66518407dee6f6cac89bbc538c.zip | |
Diffstat (limited to 'start')
| -rwxr-xr-x | start | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |
