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

42 lines
1.1 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
cd ~;
2016-11-20 14:08:24 -05:00
set -e;
source ~/.bashrc
echo "[start-tmux.sh] Installing node dependencies"
pushd ~/penpot/frontend/
2020-07-03 08:41:00 -05:00
yarn install
popd
pushd ~/penpot/exporter/
2020-07-03 08:41:00 -05:00
yarn install
popd
tmux -2 new-session -d -s penpot
2016-11-20 14:08:24 -05:00
tmux new-window -t penpot:1 -n 'shadow watch'
tmux select-window -t penpot:1
tmux send-keys -t penpot 'cd penpot/frontend' enter C-l
tmux send-keys -t penpot 'npx shadow-cljs watch main' enter
2016-11-20 14:08:24 -05:00
tmux new-window -t penpot:2 -n 'exporter'
tmux select-window -t penpot:2
tmux send-keys -t penpot 'cd penpot/exporter' enter C-l
tmux send-keys -t penpot 'npx shadow-cljs watch main' enter
tmux split-window -v
tmux send-keys -t penpot 'cd penpot/exporter' enter C-l
tmux send-keys -t penpot './scripts/wait-and-start.sh' enter
tmux new-window -t penpot:3 -n 'backend'
tmux select-window -t penpot:3
tmux send-keys -t penpot 'cd penpot/backend' enter C-l
tmux send-keys -t penpot './scripts/start-dev' enter
2016-11-20 14:08:24 -05:00
tmux rename-window -t penpot:0 'gulp'
tmux select-window -t penpot:0
tmux send-keys -t penpot 'cd penpot/frontend' enter C-l
tmux send-keys -t penpot 'npx gulp --theme=${PENPOT_THEME} watch' enter
2016-11-20 14:08:24 -05:00
tmux -2 attach-session -t penpot