Проверьте перед командой и получите звук, когда она завершится

DEV · 22.11.2026 · 10:00

Ваш скрипт развертывания должен выполняться только при успешном прохождении тестов. Вы можете использовать цепочку команд для управления процессами и уведомлений.

Читать в источнике

Оригинал

Run a check before a command, and a sound when it's done

Your deploy script should only run if the tests pass. Your long build should tell you when it's done, so you stop checking the tab. And when you start a server, you want to know when it's actually ready, not just started. How do you do it? You chain it: npm test && ./deploy.sh. Then you add ; say done at the end, and then || say failed, and the one line becomes a puzzle of &&, || and parentheses. For "ready", you watch the log until the line you're waiting for scrolls past. With cmdbook, each