generated from alecodes/base-template
build: simplify build & run process of FE files
use external bun packages to bundle files, run this package in the build.rs script
This commit is contained in:
parent
e379967907
commit
6ee345763f
6 changed files with 40 additions and 77 deletions
15
.justfile
15
.justfile
|
|
@ -6,7 +6,7 @@ set dotenv-load := true
|
|||
bin_name := "compendium"
|
||||
release_mode := "dev"
|
||||
container_registry := "git.alecodes.page/alecodes"
|
||||
container_image_name := container_registry / bin_name
|
||||
container_image_name := container_registry / bin_name
|
||||
|
||||
[private]
|
||||
docker-compose +ARGS:
|
||||
|
|
@ -14,23 +14,10 @@ docker-compose +ARGS:
|
|||
|
||||
start-dev-services: (docker-compose "up --remove-orphans")
|
||||
|
||||
kitty-dev:
|
||||
kitten @ goto-layout tall
|
||||
kitten @ launch --cwd=current --dont-take-focus just build-frontend-watch
|
||||
kitten @ launch --cwd=current --dont-take-focus just start-dev-services
|
||||
kitten @ launch --cwd=current --dont-take-focus just dev
|
||||
nvim ./src/main.rs
|
||||
|
||||
migrate: (docker-compose "run dbmate migrate")
|
||||
|
||||
rollback: (docker-compose "run dbmate rollback")
|
||||
|
||||
build-frontend-watch:
|
||||
watchexec --restart --watch frontend just build-frontend
|
||||
|
||||
build-frontend:
|
||||
bun ./.devfiles/scripts/build-frontend.ts
|
||||
|
||||
build:
|
||||
podman build --tag {{ container_image_name }}:latest --cache-to {{ container_image_name }}-cache --cache-from {{ container_image_name }}-cache .
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue