Permalink
Browse files

Fixed build.xml file for npm build

  • Loading branch information...
1 parent 7153a0f commit 6fba55799a667907101ae6896621974e3edc7eda @davglass davglass committed Aug 17, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 javascript/build.xml
View
@@ -19,8 +19,10 @@
<!-- override to make npm package -->
<target name="npmbuild" depends="all">
+ <delete dir="${global.build.npm}"/>
<echo>Creating NPM package directory</echo>
<mkdir dir="${global.build.npm}"/>
+ <echo>Copying package.json file over and setting version number</echo>
<copy file="${component.npm.base}/package.json" tofile="${global.build.npm}/package.json">
<filterchain>
<replacetokens>
@@ -40,6 +42,7 @@
<echo>Setting Version</echo>
<replace dir="${global.build.base}/yuitest/">
<include name="**/*.js"/>
+ <include name="**/*.json"/>
<replacefilter token="@VERSION@" value="${version.release}"/>
</replace>

0 comments on commit 6fba557

Please sign in to comment.