Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Trigger grunt only if needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 7, 2015
1 parent a441b37 commit 1a810e8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions dist/phing/build-pydio.xml
Expand Up @@ -580,11 +580,15 @@
</target>

<target name="grunt">
<!-- BUILD JAVASCRIPT -->
<exec command="npm install" dir="${plugin_abs_dir}" passthru="true"/>
<exec command="grunt" dir="${plugin_abs_dir}" passthru="true"/>
<delete dir="${plugin_abs_dir}/node_modules"/>

<if>
<available file="${plugin_abs_dir}/package.json"/>
<then>
<!-- BUILD JAVASCRIPT -->
<exec command="npm install" dir="${plugin_abs_dir}" passthru="true"/>
<exec command="grunt" dir="${plugin_abs_dir}" passthru="true"/>
<delete dir="${plugin_abs_dir}/node_modules"/>
</then>
</if>
</target>


Expand Down

0 comments on commit 1a810e8

Please sign in to comment.