Skip to content

Commit

Permalink
fix: solving discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoRodriguesGithub committed Mar 13, 2024
1 parent 6f2ae2a commit 2d3c0a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 34 deletions.
8 changes: 8 additions & 0 deletions samples/KafkaFlow.Sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ Position the terminal in that folder and run the following command.
docker-compose up -d
```

### Build Dashboard UI

Using your terminal of choice, navigate to `kafkaflow\src\KafkaFlow.Admin.Dashboard\ClientApp` folder and run the following command:

```bash
ng build
```

### Run the Sample

Using your terminal of choice, start the sample for the sample folder.
Expand Down
39 changes: 5 additions & 34 deletions src/KafkaFlow.Admin.Dashboard/KafkaFlow.Admin.Dashboard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,52 +21,23 @@
<EmbeddedResource Remove="ClientApp\node_modules\**" />
<Content Remove="ClientApp\node_modules\**" />
</ItemGroup>

<PropertyGroup>
<SpaRoot>ClientApp\</SpaRoot>
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
<AssemblyName>KafkaFlow.Admin.Dashboard</AssemblyName>
</PropertyGroup>

<Target Name="EnsureNode">
<Exec WorkingDirectory="$(SpaRoot)" Command="node --version" ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
</Target>

<Target Name="DebugRunNgBuild" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' ">
<CallTarget Targets="EnsureNode" />
<Message Importance="high" Text="Install packages..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
<Message Importance="high" Text="Performing ng build for prd build..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" />
</Target>

<Target Name="ReleaseRunNgBuild" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Release' ">
<CallTarget Targets="EnsureNode" />
<Message Importance="high" Text="Install packages..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
<Message Importance="high" Text="Performing ng build for prd build..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:prod" />
</Target>


<ItemGroup>
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="6.0.25" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

<ItemGroup>
<Compile Remove="ClientApp\node_modules\**" />
</ItemGroup>

<ItemGroup>
<Compile Remove="ClientApp\node_modules\**" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\KafkaFlow.Admin\KafkaFlow.Admin.csproj" />
<ProjectReference Include="..\KafkaFlow\KafkaFlow.csproj" />
</ItemGroup>

</Project>

0 comments on commit 2d3c0a5

Please sign in to comment.