-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
54 lines (49 loc) · 1.88 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<project name="PhpPlaisio" default="build" basedir=".">
<property name="BUILD_DIR" value="./build"/>
<!-- Run composer update and executes various other updates -->
<target name="update">
<exec executable="composer" checkreturn="true" passthru="true">
<arg value="--ansi"/>
<arg value="update"/>
</exec>
<exec executable="npm" checkreturn="true" passthru="true">
<arg value="--ansi"/>
<arg value="update"/>
</exec>
<exec executable="bin/plaisio" checkreturn="true" passthru="true">
<arg value="--ansi"/>
<arg value="plaisio:assets"/>
</exec>
<phing phingfile="build.xml" target="code-generation" haltonfailure="true"/>
<phing phingfile="build.xml" target="kernel" haltonfailure="true"/>
<phing phingfile="build.xml" target="outdated" haltonfailure="true"/>
</target>
<target name="code-generation">
<exec executable="bin/plaisio" checkreturn="true" passthru="true">
<arg value="--ansi"/>
<arg value="plaisio:type-script-automator"/>
<arg value="--once"/>
</exec>
</target>
<target name="kernel">
<exec executable="bin/plaisio" checkreturn="true" passthru="true">
<arg value="--ansi"/>
<arg value="plaisio:kernel-properties"/>
</exec>
</target>
<!-- Show outdated packages -->
<target name="outdated">
<exec executable="composer" checkreturn="false" passthru="true">
<arg value="--ansi"/>
<arg value="outdated"/>
<arg value="--direct"/>
</exec>
<exec executable="npm" checkreturn="false" passthru="true">
<arg value="--ansi"/>
<arg value="outdated"/>
</exec>
</target>
<target name="build">
<echo message=""/>
</target>
</project>