Skip to content

Commit

Permalink
Merge pull request #492 from SprocketBot/personal/gankoji/buildTweaks
Browse files Browse the repository at this point in the history
Personal/gankoji/build tweaks
  • Loading branch information
ItsMeBrianD authored Jun 27, 2023
2 parents 2fcfdab + a8393ac commit ec86d76
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 15 deletions.
25 changes: 25 additions & 0 deletions aUsefulTmuxScript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/zsh

SESSIONNAME="sprocket"
tmux has-session -t $SESSIONNAME &> /dev/null

if [ $? != 0 ]
then
tmux new-session -s $SESSIONNAME -n script -d
tmux split-window -h
tmux selectp -t 0
tmux send-keys 'npm run build --workspaces --if-present' C-m
tmux split-window -v
tmux selectp -t 1
tmux send-keys 'cd $PWD/core' C-m
tmux send-keys 'sleep 120; npm run dev;' C-m
tmux selectp -t 2
tmux send-keys 'cd $PWD/clients/web' C-m 'reset' C-m
tmux send-keys 'export PUBLIC_GQL_URL=http://localhost:3001; sleep 240; npm run dev' C-m
tmux split-window -v
tmux selectp -t 3
tmux send-keys 'cd $PWD/common' C-m 'reset' C-m
tmux selectp -t 0
fi

tmux attach -t $SESSIONNAME
1 change: 1 addition & 0 deletions clients/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@faker-js/faker": "^7.6.0",
"@fontsource/montserrat": "^4.5.14",
"@sveltejs/adapter-node": "^1.0.0-next.106",
"@tanstack/svelte-table": "^8.9.3",
"echarts": "^5.4.1",
"jwt-decode": "^3.1.2",
"lodash.startcase": "^4.4.0",
Expand Down
32 changes: 17 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions startTmuxAndBuildSprocket.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/zsh

SESSIONNAME="sprocket"
tmux has-session -t $SESSIONNAME &> /dev/null

if [ $? != 0 ]
then
tmux new-session -s $SESSIONNAME -n script -d
tmux split-window -h
tmux selectp -t 0
tmux send-keys 'npm run build --workspaces --if-present' C-m
tmux split-window -v
tmux selectp -t 1
tmux send-keys 'cd $PWD/core' C-m
tmux send-keys 'sleep 120; npm run dev;' C-m
tmux selectp -t 2
tmux send-keys 'cd $PWD/clients/web' C-m 'reset' C-m
tmux send-keys 'export PUBLIC_GQL_URL=http://localhost:3001; sleep 240; npm run dev' C-m
tmux split-window -v
tmux selectp -t 3
tmux send-keys 'cd $PWD/common' C-m 'reset' C-m
tmux selectp -t 0
fi

tmux attach -t $SESSIONNAME

0 comments on commit ec86d76

Please sign in to comment.