mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-08 05:03:49 -05:00
Optimize workflows (#25)
feat: optimize workflows --------- Co-authored-by: Stavros <steveiliop56@gmail.com>
This commit is contained in:
13
build.sh
13
build.sh
@@ -1,7 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf src/static
|
||||
# This is kind of like a shim that makes sure the frontend is rebuilt when running a build. For example you can run `./build.sh cargo build --release`
|
||||
|
||||
# Frontend
|
||||
cd web/
|
||||
|
||||
# Build
|
||||
bun run build
|
||||
|
||||
# Copy UI to src folder
|
||||
cp -r dist/ ../src/static
|
||||
cargo build $@
|
||||
|
||||
# Run command from argv
|
||||
|
||||
$@
|
||||
Reference in New Issue
Block a user