Skip to content

Commit

Permalink
Update project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDayIsMyEnemy committed Feb 26, 2024
1 parent af636ac commit 8e3601b
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 24 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/dotnet.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
7 changes: 2 additions & 5 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ on:
- main

permissions:
actions: write
checks: write
contents: write
pull-requests: write
statuses: write

jobs:
configure-new-repo:
Expand All @@ -27,7 +23,8 @@ jobs:
find . -maxdepth 2 -type d -name "$old_name*" -exec bash -c 'mv "{}" "$(echo "{}" | sed -e "s/'"${old_name}"'/'"${new_name}"'/")"' \;
find . -maxdepth 5 -type f \( -name '*.sln' -o -name '*.csproj' -o -name '*.cshtml' -o -name '*.razor' -o -name '*.cs' -o -name '*.md' \) -exec bash -c 'mv "{}" "$(echo "{}" | sed -e "s/'"${old_name}"'/'"${new_name}"'/")"' \;
find . -type f \( -name '*.sln' -o -name '*.csproj' -o -name '*.cshtml' -o -name '*.razor' -o -name '*.cs' -o -name '*.md' \) -exec sed -i "s/$old_name/$new_name/g" {} +
rm .github/workflows/configure-new-repo.yml
find . -type f \( -name '*.sln' \) -exec sed -i "s/TheDayIsMyEnemy/${{ github.actor }}/g" {} +
rm .github/workflows/template.yml
- name: Commit changes
run: |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# BlazorTemplate

[![Build and Test](https://github.com/TheDayIsMyEnemy/BlazorTemplate/actions/workflows/build.yml/badge.svg)](https://github.com/TheDayIsMyEnemy/BlazorTemplate/actions/workflows/build.yml) [![CodeQL](https://github.com/TheDayIsMyEnemy/BlazorTemplate/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/TheDayIsMyEnemy/BlazorTemplate/actions/workflows/github-code-scanning/codeql)
# BlazorTemplate

[![Build](https://github.com/TheDayIsMyEnemy/BlazorTemplate/actions/workflows/build.yml/badge.svg)](https://github.com/TheDayIsMyEnemy/BlazorTemplate/actions/workflows/build.yml) [![CodeQL](https://github.com/TheDayIsMyEnemy/BlazorTemplate/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/TheDayIsMyEnemy/BlazorTemplate/actions/workflows/github-code-scanning/codeql) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/dwyl/esta/issues)
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<ProjectReference Include="..\BlazorTemplate.Infrastructure\BlazorTemplate.Infrastructure.csproj" />
<ProjectReference Include="..\BlazorTemplate.Domain\BlazorTemplate.Domain.csproj" />
<ItemGroup>
<ProjectReference Include="..\BlazorTemplate.Infrastructure\BlazorTemplate.Infrastructure.csproj" />
<ProjectReference Include="..\BlazorTemplate.Domain\BlazorTemplate.Domain.csproj" />
</ItemGroup>

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/BlazorTemplate.Domain/BlazorTemplate.Domain.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/BlazorTemplate.Server/BlazorTemplate.Server.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.2">
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MudBlazor" Version="6.2.2" />
<PackageReference Include="Serilog.AspNetCore" Version="7.0.0" />
<PackageReference Include="MudBlazor" Version="6.16.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
Expand All @@ -12,9 +12,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="7.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.11" />
<PackageReference Include="MudBlazor" Version="6.2.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="8.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.2" />
<PackageReference Include="MudBlazor" Version="6.16.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 8e3601b

Please sign in to comment.