added Minify.bat and MinifierConfig.xml to specify the files and their required outputs to minify using AjaxMinifier.exe
added build event to run AjaxMinifier with the correct arguments. #65
This commit is contained in:
parent
f2685ec7e1
commit
d1f03ac8b3
@ -0,0 +1,14 @@
|
|||||||
|
<root>
|
||||||
|
<output path="..\www\admin.min.js">
|
||||||
|
<input path="..\www\admin.js"/>
|
||||||
|
</output>
|
||||||
|
<output path="..\www\Helpers.min.js">
|
||||||
|
<input path="..\www\Helpers.js"/>
|
||||||
|
</output>
|
||||||
|
<output path="..\www\spa.min.js">
|
||||||
|
<input path="..\www\spa.js"/>
|
||||||
|
</output>
|
||||||
|
<output path="..\www\spa.min.css">
|
||||||
|
<input path="..\www\spa.css"/>
|
||||||
|
</output>
|
||||||
|
</root>
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
set "SolutionDir=%~1"
|
||||||
|
set "Directory=%~1..\..\Tools\Minifier\AjaxMinifier.exe"
|
||||||
|
echo "normalising.."
|
||||||
|
echo "1 - %Directory%"
|
||||||
|
echo "1a - %SolutionDir%"
|
||||||
|
call :normalise "%Directory%"
|
||||||
|
|
||||||
|
start /wait "" "%Directory%" -xml "%SolutionDir%WindowsDataCenter\Minifier\MinifierConfig.xml"
|
||||||
|
|
||||||
|
GOTO :EOF
|
||||||
|
|
||||||
|
:normalise
|
||||||
|
SET "Directory=%~f1"
|
||||||
|
echo "2 - %Directory%"
|
||||||
|
EXIT /b
|
||||||
|
|
||||||
|
:EOF
|
||||||
|
exit 0
|
||||||
@ -174,6 +174,7 @@
|
|||||||
<Compile Include="Controllers\ValuesController.cs" />
|
<Compile Include="Controllers\ValuesController.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Content Include="Minifier\MinifierConfig.xml" />
|
||||||
<Content Include="NinjectConfig.xml">
|
<Content Include="NinjectConfig.xml">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
@ -240,6 +241,7 @@
|
|||||||
<Content Include="Help\DalSoft.WebApi.HelpPage.Views\index.cshtml">
|
<Content Include="Help\DalSoft.WebApi.HelpPage.Views\index.cshtml">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<None Include="Minifier\Minify.bat" />
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
<None Include="www\css\bootstrap-theme.css.map">
|
<None Include="www\css\bootstrap-theme.css.map">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
@ -295,6 +297,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Error Condition="!Exists('..\packages\System.Data.SQLite.Core.1.0.104.0\build\net451\System.Data.SQLite.Core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\System.Data.SQLite.Core.1.0.104.0\build\net451\System.Data.SQLite.Core.targets'))" />
|
<Error Condition="!Exists('..\packages\System.Data.SQLite.Core.1.0.104.0\build\net451\System.Data.SQLite.Core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\System.Data.SQLite.Core.1.0.104.0\build\net451\System.Data.SQLite.Core.targets'))" />
|
||||||
</Target>
|
</Target>
|
||||||
|
<PreBuildEvent>call "$(ProjectDir)Minifier\Minify.bat" "$(SolutionDir)"</PreBuildEvent>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user