-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.justfile
More file actions
95 lines (58 loc) · 1.77 KB
/
Copy path.justfile
File metadata and controls
95 lines (58 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Edvantix Project Justfile
# Cross-platform task runner for the Edvantix application
# Set shell for different platforms
set windows-shell := ["pwsh.exe", "-NoLogo", "-ExecutionPolicy", "Bypass", "-Command"]
# Variables
solution := "Edvantix.slnx"
# Default recipe when running just 'just'
default: run
# Restore NuGet packages and tools
restore:
dotnet restore
dotnet tool restore
# Build the solution
build: restore
dotnet build {{ solution }}
# Run tests
test: build
dotnet test {{ solution }}
# Format C# code
format-cs:
dnx csharpier format .
# Format frontend code
format-fe:
cd src/Clients && pnpm format
# Format Keycloakify
format-keycloakify:
cd src/Aspire/Edvantix.AppHost/Container/keycloak/keycloakify && bun run format
# Format K6
format-k6:
cd src/Aspire/Edvantix.AppHost/Container/k6 && bun run format
# Format all code
format: format-cs format-fe format-keycloakify format-k6
echo "All code formatted successfully!"
# Clean build artifacts
clean:
dotnet clean {{ solution }}
# Setup pre-commit hooks
hook:
git config core.hooksPath .husky
echo "Pre-commit hook setup complete"
# First-time setup after cloning
prepare: restore hook
echo "Setup complete! Run 'just run' to start the application."
# Run the application
run:
aspire start
# Update Keycloakify bun packages
update-keycloakify:
cd src/Aspire/Edvantix.AppHost/Container/keycloak/keycloakify && bun update --latest
# Update K6 bun packages
update-k6:
cd src/Aspire/Edvantix.AppHost/Container/k6 && bun update --latest
# Update frontend packages
update-fe:
cd src/Clients && pnpm update --recursive --latest
# Update all packages
update: update-keycloakify update-fe update-k6
echo "All packages updated successfully!"