27 lines
936 B
Plaintext
27 lines
936 B
Plaintext
project_root := justfile_directory()
|
|
store_dir := project_root + "/Store"
|
|
local_compose := project_root + "/Docker/docker-compose.local.dev.yaml"
|
|
node_modules_volume := "royal_pop_store_node_modules"
|
|
|
|
# Recreate the storefront node_modules Docker volume.
|
|
node_modules:
|
|
docker compose -f '{{local_compose}}' rm -sf store >/dev/null 2>&1 || true
|
|
docker volume rm -f '{{node_modules_volume}}' >/dev/null 2>&1 || true
|
|
docker compose -f '{{local_compose}}' up -d --remove-orphans --force-recreate store
|
|
|
|
# Build the storefront.
|
|
build:
|
|
cd '{{store_dir}}' && npm run build
|
|
|
|
# Print the local client dashboard URL.
|
|
client-url:
|
|
printf '%s\n' 'Client dashboard: http://localhost:4321/client/'
|
|
|
|
# Print the local client orders URL.
|
|
client-orders-url:
|
|
printf '%s\n' 'Client orders: http://localhost:4321/client/orders/'
|
|
|
|
# Print the local client stock URL.
|
|
client-stock-url:
|
|
printf '%s\n' 'Client stock: http://localhost:4321/client/stock/'
|