2019-06-05 03:41:12 -05:00
|
|
|
#!/usr/bin/env zsh
|
2016-11-20 14:08:24 -05:00
|
|
|
|
2020-03-02 10:18:39 -05:00
|
|
|
set -e;
|
|
|
|
source ~/.zshrc
|
|
|
|
|
|
|
|
echo "[start-tmux.sh] Installing node dependencies"
|
|
|
|
pushd ~/uxbox/frontend/
|
|
|
|
rm -rf node_modules;
|
|
|
|
npm ci;
|
|
|
|
popd
|
|
|
|
|
2016-11-20 14:08:24 -05:00
|
|
|
tmux -2 new-session -d -s uxbox
|
|
|
|
|
2020-03-29 07:33:54 -05:00
|
|
|
tmux new-window -t uxbox:1 -n 'shadow watch'
|
2016-11-20 14:08:24 -05:00
|
|
|
tmux select-window -t uxbox:1
|
2016-11-20 14:40:30 -05:00
|
|
|
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
|
2020-03-29 07:33:54 -05:00
|
|
|
tmux send-keys -t uxbox 'shadow-cljs watch main' enter
|
2016-11-20 14:08:24 -05:00
|
|
|
|
|
|
|
tmux new-window -t uxbox:2 -n 'backend'
|
|
|
|
tmux select-window -t uxbox:2
|
2016-11-20 14:40:30 -05:00
|
|
|
tmux send-keys -t uxbox 'cd uxbox/backend' enter C-l
|
2019-12-18 04:54:28 -05:00
|
|
|
tmux send-keys -t uxbox './bin/start-dev' enter
|
2016-11-20 14:08:24 -05:00
|
|
|
|
|
|
|
tmux rename-window -t uxbox:0 'gulp'
|
|
|
|
tmux select-window -t uxbox:0
|
2016-11-20 14:40:30 -05:00
|
|
|
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
|
2019-07-19 03:37:21 -05:00
|
|
|
tmux send-keys -t uxbox 'npx gulp watch' enter
|
2016-11-20 14:08:24 -05:00
|
|
|
|
|
|
|
tmux -2 attach-session -t uxbox
|