Skip to content

Commit

Permalink
🔖 Release 8.0.0-preview.5.15
Browse files Browse the repository at this point in the history
  • Loading branch information
jasontaylordev committed Jul 12, 2023
1 parent 6d4fd9a commit d13c0b9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 deletions.
10 changes: 1 addition & 9 deletions .template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,12 @@
"source": "./",
"target": "./",
"exclude": [
"README.md",
"**/[Bb]in/**",
"**/[Oo]bj/**",
".template.config/**/*",
"templates/**/*",
".vs/**/*",
"**/*.filelist",
"**/*.user",
"**/*.lock.json",
"**/.git/**",
"*.nuspec",
"**/node_modules/**",
"**/web-api-client.ts",
"src/WebUI/wwwroot/api/**"
"*.nuspec"
],
"modifiers": [
{
Expand Down
6 changes: 3 additions & 3 deletions CleanArchitecture.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<metadata>

<id>Clean.Architecture.Solution.Template</id>
<version>8.0.0-preview.5.14</version>
<version>8.0.0-preview.5.15</version>
<title>Clean Architecture Solution Template</title>
<authors>JasonTaylorDev</authors>
<description>Clean Architecture Solution Template for .NET 8.</description>
<summary>
A Clean Architecture Solution Template for creating a Single-Page Application (SPA) with ASP.NET Core.
</summary>
<releaseNotes>
Fixed migrations for SQLite and LocalDB.
Added full CI/CD pipeline with GitHub Actions.
</releaseNotes>

<projectUrl>https://github.com/JasonTaylorDev/CleanArchitecture</projectUrl>
Expand All @@ -32,7 +32,7 @@
<files>
<file src=".template.config\icon.png" />
<file src="README.md" />
<file src=".\**" target="content" exclude="**\node_modules\**;**\bin\**;**\obj\**;**\.vs\**;**\.vscode\**;**\ClientApp\dist\**;**\wwwroot\dist\**;content\Directory.Build.*;**\.git\**;**\.github\**;**\CODE_OF_CONDUCT.md;**\LICENSE;**\README.md;" />
<file src=".\**" target="content" exclude="**\node_modules\**;**\bin\**;**\obj\**;.\.vs\**;.\.vscode\**;**\ClientApp\dist\**;**\wwwroot\dist\**;content\Directory.Build.*;.\.git\**;.\.github\workflows\package.yml;.\.github\workflows\codeql.yml;.\.github\ISSUE_TEMPLATE\**;.\.github\icon.png;.\CODE_OF_CONDUCT.md;.\LICENSE;.\README.md;" />
</files>

</package>
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ If you find this project useful, please give it a star. Thanks! ⭐

## Getting Started

The solution template requires the latest version of [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0) and [Node.js LTS](https://nodejs.org/en/) (optional). Node.js is only required for Angular and React solutions.

First, install the [.NET template](https://www.nuget.org/packages/Clean.Architecture.Solution.Template):
```bash
dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.5.14
The easiest way to get started is to install the [.NET template](https://www.nuget.org/packages/Clean.Architecture.Solution.Template):
```
dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.5.15
```

Once installed, create a new solution using the template. You can choose to use Angular, React, or create a Web API-only solution. Specify the client framework using the `-cf` or `--client-framework` option, and provide the output directory where your project will be created. Here are some examples:
Expand Down Expand Up @@ -74,8 +72,6 @@ dotnet new ca-sln --use-sqlite

When you run the application the database will be automatically created (if necessary) and the latest migrations will be applied.

### Database Migrations

Running database migrations is easy. Ensure you add the following flags to your command (values assume you are executing from repository root)

* `--project src/Infrastructure` (optional if in this folder)
Expand All @@ -86,6 +82,10 @@ For example, to add a new migration from the root folder:

`dotnet ef migrations add "SampleMigration" --project src\Infrastructure --startup-project src\WebUI --output-dir Data\Migrations`

## Deploy

The template includes a full CI/CD pipeline. The pipeline is responsible for building, testing, publishing and deploying the solution to Azure. If you would like to learn more, read the [deployment instructions](https://github.com/jasontaylordev/CleanArchitecture/wiki/Deployment).

## Technologies

* [ASP.NET Core 8](https://docs.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core)
Expand Down
8 changes: 4 additions & 4 deletions src/WebUI/WebUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --configuration production" Condition="'$(UseAngular)' != 'True'" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" Condition="'$(UseReact)' != 'True'" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --configuration production" Condition="'$(UseAngular)' == 'True'" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" Condition="'$(UseReact)' == 'True'" />

<!-- Include the newly-built files in the publish output -->
<ItemGroup>
<DistFiles Include="$(SpaRoot)dist\**; $(SpaRoot)dist-server\**" Condition="'$(UseAngular)' != 'True'" />
<DistFiles Include="$(SpaRoot)build\**" Condition="'$(UseReact)' != 'True'" />
<DistFiles Include="$(SpaRoot)dist\**; $(SpaRoot)dist-server\**" Condition="'$(UseAngular)' == 'True'" />
<DistFiles Include="$(SpaRoot)build\**" Condition="'$(UseReact)' == 'True'" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>wwwroot\%(RecursiveDir)%(FileName)%(Extension)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
Expand Down

0 comments on commit d13c0b9

Please sign in to comment.