From c3632f6c6e53f6362ee10210007d548a2add0eea Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Wed, 20 Jan 2021 17:05:01 +0100 Subject: [PATCH] Better watch script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d29c610..c01200e 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "npm run build:back && npm run build:front", "watch:back": "tsc --watch -p src/back", "watch:front": "webpack --watch", - "watch": "concurrently npm:watch:back npm:watch:front", + "watch": "tmux new-session -d \"printf '\\033]2;%s\\033\\' 'watch:back' && npm run watch:back\" && tmux split-window -d \"printf '\\033]2;%s\\033\\' 'watch:front' && npm run watch:front\" && tmux select-layout even-horizontal && tmux set -g pane-border-status top && tmux attach", "test-reports": "npm run build && rm -fr .xunit coverage && docker-compose up -d db mailcatcher && npm run test -- --cover --test-report", "cover-html": "npm run test-reports -- --cover-html && xdg-open coverage/lcov-report/index.html" },