-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
29 lines (26 loc) · 885 Bytes
/
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
<?xml version="1.0"?>
<project name="wux" default="complete" basedir=".">
<property name="out.dir" value="dist" />
<property name="dst.dir" value="dist" />
<target name="complete" depends="compilation, assembly" />
<target name="normal" depends="compilation" />
<target name="compilation">
<delete dir="${out.dir}" includeEmptyDirs="true" />
<mkdir dir="${out.dir}" />
<echo>Compile...</echo>
<exec executable="tsc" vmlauncher="false">
<arg value="--declaration" />
<arg value="--project" />
<arg value="./ts/wux/tsconfig.json" />
</exec>
</target>
<target name="assembly">
<echo>Minify...</echo>
<exec executable="minify" vmlauncher="false">
<arg value="${out.dir}/wux.js" />
</exec>
<copy todir="${dst.dir}">
<fileset dir="${out.dir}" includes="**/*.min.js"/>
</copy>
</target>
</project>