Skip to content

Commit f94da6c

Browse files
Add script to test locally that the template builds
1 parent 7c1e8d9 commit f94da6c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dev/test-template.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env zsh
2+
set -eo pipefail
3+
4+
SCRIPT_PATH="${0:A:h}"
5+
PROJ_TEMP=$(mktemp -d)
6+
7+
dotnet new install "$SCRIPT_PATH/.." || true
8+
9+
pushd "$PROJ_TEMP"
10+
dotnet new lncdproj --project-name TestProj --context TestProj --allow-scripts Yes || true
11+
(cd backend && dotnet build) || true
12+
popd
13+
14+
rm -rf "$PROJ_TEMP"

0 commit comments

Comments
 (0)