-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux-dev.sh
25 lines (25 loc) · 831 Bytes
/
tmux-dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
tmux new-session \;\
set-option destroy-unattached \;\
new-window -n Server -c journaling-server \;\
split-window -h -c journaling-server \;\
select-pane -t 0 \;\
split-window -v -c journaling-server \;\
select-pane -t 0 \;\
\
send-keys 'npm run typecheck -- --watch' C-m \;\
select-pane -t 1 \;\
send-keys 'npm run generate:types:gql -- --watch' C-m \;\
select-pane -t 2 \;\
send-keys 'npm run start:dev' C-m \;\
new-window -n Client -c journaling-client \;\
split-window -h -c journaling-client \;\
select-pane -t 0 \;\
split-window -v -c journaling-client \;\
select-pane -t 0 \;\
\
send-keys 'npm run typecheck -- --watch' C-m \;\
select-pane -t 1 \;\
send-keys 'npm run typegen:gql -- --watch' C-m \;\
select-pane -t 2 \;\
send-keys 'npm run start' C-m \;\
kill-window -t 0 \;\