2019-06-05 10:41:12 +02:00
|
|
|
#!/usr/bin/env zsh
|
2016-11-20 20:08:24 +01:00
|
|
|
|
2020-03-02 16:18:39 +01:00
|
|
|
set -e;
|
|
|
|
source ~/.zshrc
|
|
|
|
|
|
|
|
echo "[start-tmux.sh] Installing node dependencies"
|
|
|
|
pushd ~/uxbox/frontend/
|
2020-07-03 15:41:00 +02:00
|
|
|
yarn install
|
2020-03-02 16:18:39 +01:00
|
|
|
popd
|
2020-07-01 10:38:18 +02:00
|
|
|
pushd ~/uxbox/exporter/
|
2020-07-03 15:41:00 +02:00
|
|
|
yarn install
|
2020-07-01 10:38:18 +02:00
|
|
|
popd
|
2020-03-02 16:18:39 +01:00
|
|
|
|
2016-11-20 20:08:24 +01:00
|
|
|
tmux -2 new-session -d -s uxbox
|
|
|
|
|
2020-03-29 14:33:54 +02:00
|
|
|
tmux new-window -t uxbox:1 -n 'shadow watch'
|
2016-11-20 20:08:24 +01:00
|
|
|
tmux select-window -t uxbox:1
|
2016-11-20 20:40:30 +01:00
|
|
|
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
|
2020-07-01 10:38:18 +02:00
|
|
|
tmux send-keys -t uxbox 'npx shadow-cljs watch main' enter
|
2016-11-20 20:08:24 +01:00
|
|
|
|
2020-07-01 10:38:18 +02:00
|
|
|
tmux new-window -t uxbox:2 -n 'exporter'
|
2016-11-20 20:08:24 +01:00
|
|
|
tmux select-window -t uxbox:2
|
2020-07-01 10:38:18 +02:00
|
|
|
tmux send-keys -t uxbox 'cd uxbox/exporter' enter C-l
|
|
|
|
tmux send-keys -t uxbox 'npx shadow-cljs watch main' enter
|
|
|
|
tmux split-window -v
|
|
|
|
tmux send-keys -t uxbox 'cd uxbox/exporter' enter C-l
|
2020-07-02 10:42:01 +02:00
|
|
|
tmux send-keys -t uxbox './scripts/wait-and-start.sh' enter
|
2020-07-01 10:38:18 +02:00
|
|
|
|
|
|
|
tmux new-window -t uxbox:3 -n 'backend'
|
|
|
|
tmux select-window -t uxbox:3
|
2016-11-20 20:40:30 +01:00
|
|
|
tmux send-keys -t uxbox 'cd uxbox/backend' enter C-l
|
2019-12-18 10:54:28 +01:00
|
|
|
tmux send-keys -t uxbox './bin/start-dev' enter
|
2016-11-20 20:08:24 +01:00
|
|
|
|
|
|
|
tmux rename-window -t uxbox:0 'gulp'
|
|
|
|
tmux select-window -t uxbox:0
|
2016-11-20 20:40:30 +01:00
|
|
|
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
|
2020-04-08 11:57:29 +03:00
|
|
|
tmux send-keys -t uxbox 'npx gulp --theme=${UXBOX_THEME} watch' enter
|
2016-11-20 20:08:24 +01:00
|
|
|
|
|
|
|
tmux -2 attach-session -t uxbox
|