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