|
|
@ -67,42 +67,23 @@
|
|
|
|
<Exec Command="dotnet tool restore" StandardOutputImportance="high" />
|
|
|
|
<Exec Command="dotnet tool restore" StandardOutputImportance="high" />
|
|
|
|
</Target>
|
|
|
|
</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;">
|
|
|
|
<Target Name="WebCompiler" DependsOnTargets="ToolRestore;">
|
|
|
|
<!--compile and minify scss-->
|
|
|
|
<!--compile and minify scss-->
|
|
|
|
<Exec Command="dotnet webcompiler ./Styles/Connected.Components.scss -c excubowebcompiler.json" StandardOutputImportance="high" StandardErrorImportance="high" />
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
|
|
<Target Name="IncludeGeneratedStaticFiles" DependsOnTargets="WebCompiler" BeforeTargets="BeforeBuild">
|
|
|
|
<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.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>
|
|
|
|
<ItemGroup>
|
|
|
|
<!--Include without duplication-->
|
|
|
|
<!--Include without duplication-->
|
|
|
|
<_NewCompiledCssFiles Include="wwwroot\Connected.Components.min.css" Exclude="@(Content)" />
|
|
|
|
<_NewCompiledCssFiles Include="wwwroot\Connected.Components.min.css" Exclude="@(Content)" />
|
|
|
|
<_NewCompiledJsFiles Include="wwwroot\Connected.Components.min.js" Exclude="@(Content)" />
|
|
|
|
|
|
|
|
<Content Include="@(_NewCompiledCssFiles)" />
|
|
|
|
<Content Include="@(_NewCompiledCssFiles)" />
|
|
|
|
<Content Include="@(_NewCompiledJsFiles)" />
|
|
|
|
|
|
|
|
</ItemGroup>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
|
|
<Target Name="Delete sass/js compiler artifacts" AfterTargets="AfterBuild">
|
|
|
|
<Target Name="Delete sass/js compiler artifacts" AfterTargets="AfterBuild">
|
|
|
|
<Delete Files="./Styles/Connected.Components.css" />
|
|
|
|
<Delete Files="./Styles/Connected.Components.css" />
|
|
|
|
<Delete Files="./Styles/Connected.Components.min.css" />
|
|
|
|
<Delete Files="./Styles/Connected.Components.min.css" />
|
|
|
|
<Delete Files="./TScripts/combined/Connected.Components.js" />
|
|
|
|
|
|
|
|
<Delete Files="./TScripts/combined/Connected.Components.min.js" />
|
|
|
|
|
|
|
|
</Target>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
|
|
<!--Dont Include in build output-->
|
|
|
|
<!--Dont Include in build output-->
|
|
|
@ -110,26 +91,14 @@
|
|
|
|
<Content Remove="compilerconfig.json" />
|
|
|
|
<Content Remove="compilerconfig.json" />
|
|
|
|
<Content Remove="excubowebcompiler.json" />
|
|
|
|
<Content Remove="excubowebcompiler.json" />
|
|
|
|
<Content Remove="wwwroot/DoNotRemove.txt" />
|
|
|
|
<Content Remove="wwwroot/DoNotRemove.txt" />
|
|
|
|
<Compile Remove="ComponentsN\**" />
|
|
|
|
|
|
|
|
<!--macOS hidden file (causes problems with dotnet pack)-->
|
|
|
|
<!--macOS hidden file (causes problems with dotnet pack)-->
|
|
|
|
<Content Remove="**/*/.DS_Store" />
|
|
|
|
<Content Remove="**/*/.DS_Store" />
|
|
|
|
<Content Remove="ComponentsN\**" />
|
|
|
|
|
|
|
|
</ItemGroup>
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<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" />
|
|
|
|
<Watch Include="**/*.scss" />
|
|
|
|
</ItemGroup>
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
|
|
|
<EmbeddedResource Remove="ComponentsN\**" />
|
|
|
|
|
|
|
|
<None Remove="ComponentsN\**" />
|
|
|
|
|
|
|
|
<Watch Remove="ComponentsN\**" />
|
|
|
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<Watch Remove="Styles\Connected.Components.scss" />
|
|
|
|
<Watch Remove="Styles\Connected.Components.scss" />
|
|
|
|
</ItemGroup>
|
|
|
|
</ItemGroup>
|
|
|
@ -137,9 +106,4 @@
|
|
|
|
<ItemGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<Content Include=".config\dotnet-tools.json" />
|
|
|
|
<Content Include=".config\dotnet-tools.json" />
|
|
|
|
</ItemGroup>
|
|
|
|
</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>
|
|
|
|
</Project>
|
|
|
|