Remove unnecessary csproj entries left over from MudBlazor

features/new
Matija Koželj 2 years ago
parent 9832ec01d8
commit 38d5bd0149

@ -67,42 +67,23 @@
<Exec Command="dotnet tool restore" StandardOutputImportance="high" />
</Target>
<!--combine js files
<Target Name="CombineJS">
<CreateItem Include="./TScripts/*.js" Exclude="./TScripts/*.min.js">
<Output TaskParameter="Include" ItemName="jsFilesToCombine" />
</CreateItem>
<ReadLinesFromFile File="%(jsFilesToCombine.FullPath)">
<Output TaskParameter="Lines" ItemName="jsLines" />
</ReadLinesFromFile>
<WriteLinesToFile File="./TScripts/combined/Connected.Components.js" Lines="@(jsLines)" Overwrite="true" />
</Target>
<Target Name="WebCompiler" DependsOnTargets="ToolRestore;CombineJS">-->
<Target Name="WebCompiler" DependsOnTargets="ToolRestore;">
<!--compile and minify scss-->
<Exec Command="dotnet webcompiler ./Styles/Connected.Components.scss -c excubowebcompiler.json" StandardOutputImportance="high" StandardErrorImportance="high" />
<!--minify js-->
<Exec Command="dotnet webcompiler ./TScripts/combined/Connected.Components.js -c excubowebcompiler.json" StandardOutputImportance="high" StandardErrorImportance="high" />
</Target>
<Target Name="IncludeGeneratedStaticFiles" DependsOnTargets="WebCompiler" BeforeTargets="BeforeBuild">
<Error Condition="!Exists('$(MSBuildProjectDirectory)/wwwroot/Connected.Components.min.css')" Text="Missing Connected.Components.min.css in wwwroot" />
<Error Condition="!Exists('$(MSBuildProjectDirectory)/wwwroot/Connected.Components.min.js')" Text="Missing Connected.Components.min.js in wwwroot" />
<ItemGroup>
<!--Include without duplication-->
<_NewCompiledCssFiles Include="wwwroot\Connected.Components.min.css" Exclude="@(Content)" />
<_NewCompiledJsFiles Include="wwwroot\Connected.Components.min.js" Exclude="@(Content)" />
<Content Include="@(_NewCompiledCssFiles)" />
<Content Include="@(_NewCompiledJsFiles)" />
</ItemGroup>
</Target>
<Target Name="Delete sass/js compiler artifacts" AfterTargets="AfterBuild">
<Delete Files="./Styles/Connected.Components.css" />
<Delete Files="./Styles/Connected.Components.min.css" />
<Delete Files="./TScripts/combined/Connected.Components.js" />
<Delete Files="./TScripts/combined/Connected.Components.min.js" />
</Target>
<!--Dont Include in build output-->
@ -110,26 +91,14 @@
<Content Remove="compilerconfig.json" />
<Content Remove="excubowebcompiler.json" />
<Content Remove="wwwroot/DoNotRemove.txt" />
<Compile Remove="ComponentsN\**" />
<!--macOS hidden file (causes problems with dotnet pack)-->
<Content Remove="**/*/.DS_Store" />
<Content Remove="ComponentsN\**" />
</ItemGroup>
<ItemGroup>
<!--For automatic compile on save of the scss use
cd ./src/MudBlazor
dotnet watch webcompiler ./Styles/MudBlazor.scss -c excubowebcompiler.json
-->
<Watch Include="**/*.scss" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="ComponentsN\**" />
<None Remove="ComponentsN\**" />
<Watch Remove="ComponentsN\**" />
</ItemGroup>
<ItemGroup>
<Watch Remove="Styles\Connected.Components.scss" />
</ItemGroup>
@ -137,9 +106,4 @@
<ItemGroup>
<Content Include=".config\dotnet-tools.json" />
</ItemGroup>
<Target Name="UploadLocalPackages" AfterTargets="CopyPackages" >
<Exec Command="dotnet nuget push -s LocalNugetServer $(OutputPath)..\$(PackageId).$(PackageVersion).nupkg --api-key $([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET_SERVER_TOKEN'))" IgnoreExitCode="true"></Exec>
<Exec Command="dotnet nuget push -s LocalNugetServer $(OutputPath)..\$(PackageId).$(PackageVersion).snupkg --api-key $([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET_SERVER_TOKEN'))" IgnoreExitCode="true"></Exec>
</Target>
</Project>

Loading…
Cancel
Save