Files
Plume/justfile

53 lines
1.1 KiB
Makefile

# Sorcerer build commands
# Install just: https://github.com/casey/just
set dotenv-load
src_path := "src"
server_path := "src/Server"
test_path := "tests"
dist_path := "dist"
# Default recipe - show available commands
default:
@just --list
# Clean build artifacts
clean:
rm -rf {{dist_path}}
# Build production bundle
bundle: clean
dotnet publish -tl -c Release -o {{dist_path}} {{server_path}}
# Build debug bundle
bundle-debug: clean
dotnet publish -tl -c Debug -o {{dist_path}} {{server_path}}
# Run development server
run: clean
dotnet run {{server_path}}
# Run server in watch mode
server:
dotnet watch run {{server_path}}
# Build server in watch mode
server-watch:
dotnet watch build {{server_path}}
# Create NuGet package
pack: clean
dotnet pack -c Release -o {{pack_path}} {{lib_path}}
# Format code with Fantomas
format:
fantomas {{src_path}} -r
# Run tests (parallel server and client if tests exist)
test: clean
#!/usr/bin/env bash
if [ -d "{{test_path}}" ]; then
dotnet run {{test_path}}/Server
fi