2020-09-07 13:38:17 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-12-02 09:39:39 +01:00
|
|
|
sudo chown penpot:users /home/penpot
|
|
|
|
|
2020-09-07 13:38:17 +02:00
|
|
|
cd ~;
|
2016-11-20 20:08:24 +01:00
|
|
|
|
2020-09-07 13:38:17 +02:00
|
|
|
source ~/.bashrc
|
2020-03-02 16:18:39 +01:00
|
|
|
|
|
|
|
echo "[start-tmux.sh] Installing node dependencies"
|
2020-11-10 12:41:20 +01:00
|
|
|
pushd ~/penpot/frontend/
|
2020-07-03 15:41:00 +02:00
|
|
|
yarn install
|
2024-04-12 10:08:15 +02:00
|
|
|
yarn run playwright install --with-deps chromium
|
2020-03-02 16:18:39 +01:00
|
|
|
popd
|
2020-11-10 12:41:20 +01:00
|
|
|
pushd ~/penpot/exporter/
|
2020-07-03 15:41:00 +02:00
|
|
|
yarn install
|
2024-04-05 10:32:25 +02:00
|
|
|
yarn run playwright install --with-deps chromium
|
2020-07-01 10:38:18 +02:00
|
|
|
popd
|
2020-03-02 16:18:39 +01:00
|
|
|
|
2020-11-10 12:41:20 +01:00
|
|
|
tmux -2 new-session -d -s penpot
|
2016-11-20 20:08:24 +01:00
|
|
|
|
2024-03-01 15:23:35 +01:00
|
|
|
tmux rename-window -t penpot:0 'frontend watch'
|
2021-10-20 11:18:28 +02:00
|
|
|
tmux select-window -t penpot:0
|
|
|
|
tmux send-keys -t penpot 'cd penpot/frontend' enter C-l
|
2024-03-01 15:23:35 +01:00
|
|
|
tmux send-keys -t penpot 'yarn run watch' enter
|
2021-10-20 11:18:28 +02:00
|
|
|
|
2024-03-01 15:23:35 +01:00
|
|
|
tmux new-window -t penpot:1 -n 'frontend shadow'
|
2020-11-10 12:41:20 +01:00
|
|
|
tmux select-window -t penpot:1
|
|
|
|
tmux send-keys -t penpot 'cd penpot/frontend' enter C-l
|
2024-11-04 14:31:59 +01:00
|
|
|
tmux send-keys -t penpot 'yarn run watch:app' enter
|
2016-11-20 20:08:24 +01:00
|
|
|
|
2020-11-10 12:41:20 +01: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
|
2021-03-31 11:36:29 +02:00
|
|
|
tmux send-keys -t penpot 'rm -f target/app.js*' enter C-l
|
2021-06-17 07:58:02 +02:00
|
|
|
tmux send-keys -t penpot 'clojure -M:dev:shadow-cljs watch main' enter
|
2021-03-31 11:36:29 +02:00
|
|
|
|
2020-07-01 10:38:18 +02:00
|
|
|
tmux split-window -v
|
2020-11-10 12:41:20 +01:00
|
|
|
tmux send-keys -t penpot 'cd penpot/exporter' enter C-l
|
|
|
|
tmux send-keys -t penpot './scripts/wait-and-start.sh' enter
|
2020-07-01 10:38:18 +02:00
|
|
|
|
2020-11-10 12:41:20 +01:00
|
|
|
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 20:08:24 +01:00
|
|
|
|
2020-11-10 12:41:20 +01:00
|
|
|
tmux -2 attach-session -t penpot
|