Skip to content

Commit

Permalink
#17 - include setup swa-cli.config
Browse files Browse the repository at this point in the history
  • Loading branch information
albx committed May 24, 2024
1 parent e9e4118 commit 5bd8d71
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BlazorSwa.Template.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<PackageType>Template</PackageType>
<PackageVersion>0.2.0</PackageVersion>
<PackageVersion>0.3.0</PackageVersion>
<PackageId>BlazorSwa.Template</PackageId>
<Title>Blazor Static Web App Template</Title>
<Authors>Alberto Mori</Authors>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "http://json.schemastore.org/dotnetcli.host",
"symbolInfo": {
"api": {
"longName": "api",
"IncludeAzureFunction": {
"longName": "include-func",
"shortName": ""
}
}
Expand Down
6 changes: 6 additions & 0 deletions content/BlazorSwaTemplate/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
"Api.Isolated": "Api"
}
},
{
"condition": "(!IncludeAzureFunction)",
"exclude": [
"BlazorSwaTemplate.Api.Isolated/**"
]
},
{
"rename": {
"_gitignore": ".gitignore"
Expand Down
12 changes: 12 additions & 0 deletions content/BlazorSwaTemplate/swa-cli.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://aka.ms/azure/static-web-apps-cli/schema",
"configurations": {
"BlazorSwaTemplate": {
"appLocation": "BlazorSwaTemplate.Client",
"outputLocation": "bin\\wwwroot",
"appBuildCommand": "dotnet publish -c Release -o bin",
"run": "dotnet watch run",
"appDevserverUrl": "http://localhost:5110"
}
}
}

0 comments on commit 5bd8d71

Please sign in to comment.