Skip to content

Commit d66436b

Browse files
committed
Add build scripts
1 parent 7be708b commit d66436b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
rm output -force -recurse
2+
dotnet clean
3+
4+
# publish the app
5+
dotnet publish -c Release -o output BlazorApp1
6+
7+
# Set the render output (use $PSScriptRoot instead of $pwd inside of *.ps1 script files)
8+
$env:RenderOutputDirectory="$pwd/output/wwwroot"
9+
10+
# Generate the output
11+
dotnet test -c Release --filter Category=PreRender
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SLN_DIR="$(pwd)"
2+
dotnet clean
3+
dotnet publish -c Release -o "output" BlazorApp1
4+
RenderOutputDirectory="${SLN_DIR}/output/wwwroot" \
5+
dotnet test -c Release --filter Category=PreRender

0 commit comments

Comments
 (0)