Skip to content

Commit

Permalink
Added -rollupjs step to rollup.xml to allow creation of rollup of rol…
Browse files Browse the repository at this point in the history
…lups. TODO: Need to add -rollupcss step also
  • Loading branch information
sdesai committed May 14, 2009
1 parent 731a524 commit 6b230fe
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion componentbuild/3.x/rollup.xml
Expand Up @@ -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>

Expand All @@ -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" />

Expand Down

0 comments on commit 6b230fe

Please sign in to comment.