-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml.dist
50 lines (46 loc) · 1.67 KB
/
build.xml.dist
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
<?xml version="1.0"?>
<project name="Contao Package List" default="list" basedir=".">
<target name="list">
<echo message="Available commands:" />
<echo message=" phing prod - Builds production files" />
<echo message=" phing tx - Syncs language files with Transifex" />
</target>
<target name="prod" depends="build-prod">
<echo message="Contao Package List build complete" />
</target>
<target name="deploy" depends="build-prod">
<echo message="Deploying to extensions.contao.org" />
<exec executable="rsync" checkreturn="true">
<arg value="-av" />
<arg value="--delete" />
<arg value="./dist/*" />
<arg value="[email protected]:/srv/home/packages/public/" />
</exec>
<delete dir="dist" />
</target>
<target name="build-prod">
<echo message="Compiling UI files" />
<exec executable="npm" checkreturn="true">
<arg value="run" />
<arg value="build" />
</exec>
</target>
<target name="tx">
<echo message="Starting Transifex sync" />
<exec executable="tx" passthru="true">
<arg value="push" />
<arg value="--source" />
<arg value="--force" />
</exec>
<echo message="Waiting 10 seconds for sources to be parsed" />
<exec executable="sleep">
<arg value="10" />
</exec>
<exec executable="tx" passthru="true">
<arg value="pull" />
<arg value="--all" />
<arg value="--force" />
<arg value="--minimum-perc=50" />
</exec>
</target>
</project>