Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/templates/compage-template-rust
24 changes: 24 additions & 0 deletions run_launch_commands.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Open the first tab and execute the "App" command
gnome-terminal -- bash -c 'echo -ne "\033]0;App\007"; cd app && npm run dev; $SHELL'

# Wait for the terminal to launch
sleep 2

# Simulate the keypress for opening a new tab in gnome-terminal (Ctrl+Shift+T)
xdotool key ctrl+shift+t

# Give some time for the tab to open
sleep 1

# Type in the "Core" command, set its title, and execute
xdotool type 'echo -ne "\033]0;Core\007"; cd ../core && go run main.go'
xdotool key Return

# Repeat the steps for the "UI" command
sleep 2
xdotool key ctrl+shift+t
sleep 1
xdotool type 'echo -ne "\033]0;UI\007"; cd ../ui && npm run dev-start'
xdotool key Return
2 changes: 1 addition & 1 deletion ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
- Navigate to ui directory [`cd ui`] from root directory of compage
- Fire `npm install` to install the dependencies
- If you find some other error apart from the above error, that means you couldn't complete the installation of CRDs.
- Run `npm run start-dev` command to start the react-server. This command will auto-reload the changes you make to app directory.
- Run `npm run dev-start` command to start the react-server. This command will auto-reload the changes you make to app directory.
Loading