-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.xml
33 lines (28 loc) · 1.05 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<project name="daylerees/anbu" default="build">
<!-- Refresh destination directories. -->
<target name="clean">
<delete dir="${basedir}/vendor"/>
<delete dir="${basedir}/node_modules"/>
</target>
<!-- Download and install composer. -->
<target name="composer">
<get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" />
<exec dir="${basedir}" executable="php" failonerror="true">
<arg line="composer.phar update --ansi"></arg>
</exec>
</target>
<!-- Install NPM modules. -->
<target name="npm">
<exec dir="${basedir}" executable="npm" failonerror="true">
<arg line="install --ansi"></arg>
</exec>
</target>
<!-- Run Gulp -->
<target name="gulp">
<exec dir="${basedir}" executable="node" failonerror="true">
<arg line="node_modules/gulp/bin/gulp.js --ansi"></arg>
</exec>
</target>
<!-- Execute the build process. -->
<target name="build" depends="clean,composer,npm,gulp"/>
</project>