misc: simplify the build scripts

This commit is contained in:
Andrey Antukh 2019-07-19 08:37:21 +00:00
parent 53e74ec5cd
commit 3f62d7cb65
6 changed files with 22 additions and 37 deletions

View file

@ -1,10 +0,0 @@
#!/usr/bin/env bash
source ~/.bashrc
echo `env`
cd /home/uxbox/uxbox/frontend
npm install || exit 1;
npm run dist
# TODO: WIP

View file

@ -5,7 +5,7 @@ tmux -2 new-session -d -s uxbox
tmux new-window -t uxbox:1 -n 'figwheel'
tmux select-window -t uxbox:1
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
tmux send-keys -t uxbox 'npm run start' enter
tmux send-keys -t uxbox 'clojure -Adev tools.clj figwheel' enter
tmux new-window -t uxbox:2 -n 'backend'
tmux select-window -t uxbox:2
@ -16,7 +16,7 @@ tmux send-keys -t uxbox 'clojure -Adev:repl' enter
tmux rename-window -t uxbox:0 'gulp'
tmux select-window -t uxbox:0
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
tmux send-keys -t uxbox 'if [ ! -e ./node_modules ]; then npm install; fi' enter C-l
tmux send-keys -t uxbox 'npm run watch' enter
tmux send-keys -t uxbox 'if [ ! -e ./node_modules ]; then npm ci; fi' enter C-l
tmux send-keys -t uxbox 'npx gulp watch' enter
tmux -2 attach-session -t uxbox