-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
24 lines (24 loc) · 1.18 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="all" name="02-titles-no-controller">
<description>My amazing 02-titles-no-controller application</description>
<xmlproperty file="expath-pkg.xml" />
<property name="project.version" value="${package(version)}" />
<property name="project.app" value="02-titles-no-controller" />
<property name="build.dir" value="build" />
<!-- Start it -->
<target name="init" description="create build directory">
<tstamp />
<mkdir dir="${build.dir}" />
</target>
<!-- Dev build (includes everything unoptimized) -->
<target name="dev" depends="init" description="compile all source files">
<zip basedir="." destfile="${build.dir}/${project.app}-${project.version}-dev.xar" excludes="**/${build.dir}/**, **/node_modules/**" />
</target>
<!-- Release build -->
<target name="deploy" depends="init" description="compile release build">
<zip basedir="." destfile="${build.dir}/${project.app}-${project.version}.xar" excludes="**/${build.dir}/**, .existdb.json, .yo-rc.json, **/node_modules/**, **/reports/**, README.md, **/.git*/** " />
</target>
<target name="all" depends="dev, deploy">
<tstamp />
</target>
</project>