Created
February 9, 2013 06:20
-
-
Save michaeljacobdavis/4744182 to your computer and use it in GitHub Desktop.
R.js Minification on TFS build and Publish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd "$(ProjectDir)Scripts" | |
node.exe r.js -o build.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" /> | |
<!-- Add --> | |
<PropertyGroup> | |
<CopyAllFilesToSingleFolderForPackageDependsOn> | |
MinifiedFiles;$(CopyAllFilesToSingleFolderForPackageDependsOn); | |
</CopyAllFilesToSingleFolderForPackageDependsOn> | |
</PropertyGroup> | |
<Target Name="MinifiedFiles" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |
<ItemGroup> | |
<MinifiedScripts Include="Scripts\**\*.built.js" /> | |
<FilesForPackagingFromProject Include="%(MinifiedScripts.Identity)"> | |
<DestinationRelativePath>Scripts\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath> | |
</FilesForPackagingFromProject> | |
</ItemGroup> | |
<ItemGroup> | |
<MinifiedSourceMaps Include="Scripts\**\*.built.js.src" /> | |
<FilesForPackagingFromProject Include="%(MinifiedSourceMaps.Identity)"> | |
<DestinationRelativePath>Scripts\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath> | |
</FilesForPackagingFromProject> | |
</ItemGroup> | |
</Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment