-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
30 lines (30 loc) · 1.49 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
<project default="all" name="syriac-corpus">
<description>Digital Syriac Corpus</description>
<xmlproperty file="expath-pkg.xml"/>
<property name="project.version" value="${package(version)}"/>
<property name="project.app" value="asyriac-corpus"/>
<property name="build.dir" value="build"/>
<!-- Start it -->
<target name="init" description="create build directory">
<tstamp/>
<mkdir dir="${build.dir}"/>
<!--
<copy file="node_modules/bootstrap/dist/js/bootstrap.bundle.min.js" todir="resources/scripts"/>
<copy file="node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map" todir="resources/scripts"/>
<copy file="node_modules/bootstrap/dist/css/bootstrap.min.css" todir="resources/css"/>
<copy file="node_modules/bootstrap/dist/css/bootstrap.min.css.map" todir="resources/css"/>
-->
</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}/a${project.app}-${project.version}.xar" excludes="**/${build.dir}/**, .existdb.json, .yo-rc.json, **/node_modules/**, **/reports/**, README.md, **/.git*/** "/>
</target>
<target name="all" depends="deploy">
<tstamp/>
</target>
</project>