Skip to content

Commit 5161624

Browse files
committed
chore(license): update copyright year to 2025
1 parent d5ebc22 commit 5161624

File tree

6 files changed

+87
-13
lines changed

6 files changed

+87
-13
lines changed

Justfile

Lines changed: 82 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,88 @@
1+
# Justfile .NET - Benjamin Abt 2025 - https://benjamin-abt.com
2+
# https://github.com/BenjaminAbt/templates/blob/main/justfile/dotnet
3+
14
set shell := ["pwsh", "-c"]
25

6+
# ===== Configurable defaults =====
7+
CONFIG := "Debug"
8+
TFM := "net10.0"
9+
BENCH_PRJ := "perf/HttpUserAgentParser.Benchmarks/HttpUserAgentParser.Benchmarks.csproj"
10+
11+
# ===== Default / Help =====
12+
default: help
13+
14+
help:
15+
# Overview:
16+
just --list
17+
# Usage:
18+
# just build
19+
# just test
20+
# just bench
321

4-
# Build the solution
5-
build:
6-
dotnet build
22+
# ===== Basic .NET Workflows =====
23+
restore:
24+
dotnet restore
725

8-
# Run benchmarks (Release)
9-
bench:
10-
dotnet run --configuration Release --project "perf/HttpUserAgentParser.Benchmarks/HttpUserAgentParser.Benchmarks.csproj" --framework net10.0
26+
build *ARGS:
27+
dotnet build --configuration "{{CONFIG}}" --nologo --verbosity minimal {{ARGS}}
28+
29+
rebuild *ARGS:
30+
dotnet build --configuration "{{CONFIG}}" --nologo --verbosity minimal --no-incremental {{ARGS}}
1131

12-
# Clean the solution
1332
clean:
14-
dotnet clean
33+
dotnet clean --configuration "{{CONFIG}}" --nologo
34+
35+
run *ARGS:
36+
dotnet run --project --framework "{{TFM}}" --configuration "{{CONFIG}}" --no-launch-profile {{ARGS}}
37+
38+
# ===== Quality / Tests =====
39+
format:
40+
dotnet format --verbosity minimal
41+
42+
format-check:
43+
dotnet format --verify-no-changes --verbosity minimal
44+
45+
test *ARGS:
46+
dotnet test --configuration "{{CONFIG}}" --framework "{{TFM}}" --nologo --verbosity minimal {{ARGS}}
47+
48+
test-cov:
49+
dotnet test --configuration "{{CONFIG}}" --framework "{{TFM}}" --nologo --verbosity minimal /p:CollectCoverage=true /p:CoverletOutputFormat="cobertura,lcov,opencover" /p:CoverletOutput="./TestResults/coverage/coverage"
50+
51+
52+
test-filter QUERY:
53+
dotnet test --configuration "{{CONFIG}}" --framework "{{TFM}}" --nologo --verbosity minimal --filter "{{QUERY}}"
54+
55+
# ===== Packaging / Release =====
56+
pack *ARGS:
57+
dotnet pack --configuration "{{CONFIG}}" --nologo --verbosity minimal -o "./artifacts/packages" {{ARGS}}
58+
59+
publish *ARGS:
60+
dotnet publish --configuration "{{CONFIG}}" --framework "{{TFM}}" --nologo --verbosity minimal -o "./artifacts/publish/{{TFM}}" {{ARGS}}
61+
62+
publish-sc RID *ARGS:
63+
dotnet publish --configuration "{{CONFIG}}" --framework "{{TFM}}" --runtime "{{RID}}" --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=false --nologo --verbosity minimal -o "./artifacts/publish/{{TFM}}-{{RID}}" {{ARGS}}
64+
65+
# ===== Benchmarks =====
66+
bench *ARGS:
67+
dotnet run --configuration Release --project "{{BENCH_PRJ}}" --framework "{{TFM}}" {{ARGS}}
68+
69+
# ===== Housekeeping =====
70+
clean-artifacts:
71+
if (Test-Path "./artifacts") { Remove-Item "./artifacts" -Recurse -Force }
72+
73+
clean-all:
74+
just clean
75+
just clean-artifacts
76+
# Optionally: git clean -xdf
77+
78+
# ===== Combined Flows =====
79+
fmt-build:
80+
just format
81+
just build
82+
83+
ci:
84+
just clean
85+
just restore
86+
just format-check
87+
just build
88+
just test-cov

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2023 MyCSharp
3+
Copyright (c) 2021-2025 MyCSharp
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ by [@BenjaminAbt](https://github.com/BenjaminAbt) and [@gfoidl](https://github.c
141141

142142
MIT License
143143

144-
Copyright (c) 2021-2023 MyCSharp
144+
Copyright (c) 2021-2025 MyCSharp
145145

146146
Permission is hereby granted, free of charge, to any person obtaining a copy
147147
of this software and associated documentation files (the "Software"), to deal

src/HttpUserAgentParser.AspNetCore/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2023 MyCSharp
3+
Copyright (c) 2021-2025 MyCSharp
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/HttpUserAgentParser.MemoryCache/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2023 MyCSharp
3+
Copyright (c) 2021-2025 MyCSharp
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/HttpUserAgentParser/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2023 MyCSharp
3+
Copyright (c) 2021-2025 MyCSharp
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)