Permalink
Browse files

Added -rollupjs step to rollup.xml to allow creation of rollup of rol…

…lups. TODO: Need to add -rollupcss step also
  • Loading branch information...
1 parent 731a524 commit 6b230fe9b28c64403acd80c41e3cffa19d3ababe @sdesai sdesai committed May 14, 2009
Showing with 11 additions and 1 deletion.
  1. +11 −1 componentbuild/3.x/rollup.xml
@@ -6,7 +6,7 @@
<target name="build" depends="buildmodules" description="Create component.js"></target>
- <target name="buildmodules" depends="-buildmodules, -registerall, -prependall, -appendall">
+ <target name="buildmodules" depends="-buildmodules, -registerall, -prependall, -appendall, -rollupjs">
<fixcrlf srcdir="${component.builddir}" eol="${buildfiles.eol}" />
</target>
@@ -20,6 +20,16 @@
</subant>
</target>
+ <target name="-rollupjs" if="rollup">
+ <echo level="info">Rolling up ${component.basefilename}-debug.js into ${rollup.component.basefilename}-debug.js</echo>
+ <concat destfile="${rollup.builddir}/${rollup.component.basefilename}.js" append="true" fixlastline="true">
+ <filelist dir="${component.builddir}" files="${component.basefilename}.js" />
+ </concat>
+ <concat destfile="${rollup.builddir}/${rollup.component.basefilename}-debug.js" append="true" fixlastline="true">
+ <filelist dir="${component.builddir}" files="${component.basefilename}-debug.js" />
+ </concat>
+ </target>
+
<target name="-prependall" depends="-prependdebug, -prepend" if="component.prependfiles" />
<target name="-appendall" depends="-appenddebug, -append" if="component.appendfiles" />

0 comments on commit 6b230fe

Please sign in to comment.