From ee2b047e5d33b456d02bc81a5be3320eead9a882 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 11 Apr 2024 10:16:00 +0800 Subject: [PATCH] no message --- cmd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd b/cmd index 8b589d30f..26c4c9d8f 100755 --- a/cmd +++ b/cmd @@ -475,6 +475,13 @@ if [ $# -gt 0 ]; then por="-p 8880:8880" fi docker run -it --rm -v ${cur_path}/resources/mobile:/work -w /work ${por} kuaifan/eeui-cli:0.0.1 eeui ${cli} + elif [[ "$1" == "npm" ]]; then + shift 1 + npm $@ + cd electron + npm $@ + cd .. + docker run --rm -it -v ${cur_path}/resources/mobile:/work -w /work --entrypoint=/bin/bash node:16 -c "npm $@" elif [[ "$1" == "doc" ]]; then shift 1 run_exec php "php app/Http/Controllers/Api/apidoc.php"