Feat: First Commit + Project Scaffolding + Initialize Styling
License Added
This commit is contained in:
36
Commands/Local/dev.just
Normal file
36
Commands/Local/dev.just
Normal file
@@ -0,0 +1,36 @@
|
||||
project_root := justfile_directory()
|
||||
frontend_dir := project_root + "/Frontend"
|
||||
frontend_bake := project_root + "/Frontend/docker-bake.hcl"
|
||||
local_compose := project_root + "/Docker/docker-compose.local.dev.yaml"
|
||||
|
||||
# Build the Frontend development image.
|
||||
build:
|
||||
cd '{{frontend_dir}}' && docker buildx bake -f '{{frontend_bake}}' dev
|
||||
|
||||
# Start the local development stack in the background using the current image.
|
||||
up:
|
||||
docker compose -f '{{local_compose}}' up -d --remove-orphans --force-recreate
|
||||
|
||||
# Build first, then start the local development stack in the background.
|
||||
start: build
|
||||
docker compose -f '{{local_compose}}' up -d --remove-orphans --force-recreate
|
||||
|
||||
# Alias for the main local development flow.
|
||||
dev: start
|
||||
|
||||
# Stop and remove the local development stack.
|
||||
down:
|
||||
docker compose -f '{{local_compose}}' down --remove-orphans --volumes
|
||||
|
||||
# Rebuild the Frontend development image and recreate the stack.
|
||||
rebuild:
|
||||
cd '{{frontend_dir}}' && docker buildx bake -f '{{frontend_bake}}' dev
|
||||
docker compose -f '{{local_compose}}' up -d --remove-orphans --force-recreate
|
||||
|
||||
# Follow logs for the local development stack.
|
||||
logs:
|
||||
docker compose -f '{{local_compose}}' logs -f
|
||||
|
||||
# Restart the local development stack.
|
||||
restart:
|
||||
docker compose -f '{{local_compose}}' restart
|
||||
2
Commands/Local/mod.just
Normal file
2
Commands/Local/mod.just
Normal file
@@ -0,0 +1,2 @@
|
||||
mod dev
|
||||
mod prod
|
||||
11
Commands/Local/prod.just
Normal file
11
Commands/Local/prod.just
Normal file
@@ -0,0 +1,11 @@
|
||||
project_root := justfile_directory()
|
||||
frontend_dir := project_root + "/Frontend"
|
||||
frontend_bake := project_root + "/Frontend/docker-bake.hcl"
|
||||
|
||||
# Build the Frontend production image locally.
|
||||
build:
|
||||
cd '{{frontend_dir}}' && docker buildx bake -f '{{frontend_bake}}' prod
|
||||
|
||||
# Rebuild the Frontend production image locally.
|
||||
rebuild:
|
||||
cd '{{frontend_dir}}' && docker buildx bake -f '{{frontend_bake}}' --set '*.no-cache=true' prod
|
||||
Reference in New Issue
Block a user