0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00
penpot/docker/devenv/files/start-tmux.sh

40 lines
1.1 KiB
Bash
Raw Normal View History

#!/usr/bin/env zsh
2016-11-20 14:08:24 -05:00
set -e;
source ~/.zshrc
echo "[start-tmux.sh] Installing node dependencies"
pushd ~/uxbox/frontend/
2020-07-03 08:41:00 -05:00
yarn install
popd
pushd ~/uxbox/exporter/
2020-07-03 08:41:00 -05:00
yarn install
popd
2016-11-20 14:08:24 -05:00
tmux -2 new-session -d -s uxbox
tmux new-window -t uxbox:1 -n 'shadow watch'
2016-11-20 14:08:24 -05:00
tmux select-window -t uxbox:1
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
tmux send-keys -t uxbox 'npx shadow-cljs watch main' enter
2016-11-20 14:08:24 -05:00
tmux new-window -t uxbox:2 -n 'exporter'
2016-11-20 14:08:24 -05:00
tmux select-window -t uxbox:2
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
tmux send-keys -t uxbox './scripts/wait-and-start.sh' enter
tmux new-window -t uxbox:3 -n 'backend'
tmux select-window -t uxbox:3
tmux send-keys -t uxbox 'cd uxbox/backend' enter C-l
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
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
2020-04-08 03:57:29 -05:00
tmux send-keys -t uxbox 'npx gulp --theme=${UXBOX_THEME} watch' enter
2016-11-20 14:08:24 -05:00
tmux -2 attach-session -t uxbox