Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <target name="concatenate" description="Concatenate all js files">
- <concat destfile="build/application.js">
- <fileset dir="src/js" includes="*.js" />
- </concat>
- </target>
- <target name="compress" depends="concatenate" description="Compress application.js to application-min.js">
- <apply executable="java" parallel="false">
- <filelist dir="build" files="application.js" />
- <arg line="-jar" />
- <arg path="path/to/yuicompressor-2.4.2.jar" />
- <srcfile />
- <arg line="-o" />
- <mapper type="glob" from="*.js" to="build/*-min.js" />
- <targetfile />
- </apply>
- </target>
- copy /B *.js compiled.js /Y
- copy /A *.js compiled.js /B /Y
- copy /A *.js /B compiled.js /Y
- <asp:ScriptManager ID="ScriptManager1" runat="server">
- <CompositeScript>
- <Scripts>
- <asp:ScriptReference Path="~/Scripts/Script1.js" />
- <asp:ScriptReference Path="~/Scripts/Script2.js" />
- <asp:ScriptReference Path="~/Scripts/Script3.js" />
- </Scripts>
- </CompositeScript>
- </asp:ScriptManager>
- type *.js > compiled.js
- <groups xmlns="http://www.isdc.ro/wro">
- <group name="all">
- <css>/asset/*.css</css>
- <js>/asset/*.js</js>
- </group>
- </groups>
Add Comment
Please, Sign In to add comment