-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
executable file
·37 lines (31 loc) · 1.53 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
<project name="brein-api-library-javascript-browser" basedir=".">
<!-- This is an internally used build-script. To build the project manually,
please resolve the needed dependencies (npm install) and run the default
npm and grunt commands!
-->
<include file="../../brein-workspace/brein-intellij-workspace/common-libs/ant-util/util-ant.xml"/>
<property name="node" value="v20.11.0-linux-x64"/>
<property name="grunt" value="1.5.3"/>
<property name="app" value="brein-api-library-javascript-browser"/>
<target name="01-resolve-dependencies">
<exec-npm module="install" nodeVersion="${node}"/>
<exec-grunt module="dep" nodeVersion="${node}" gruntVersion="${grunt}" />
</target>
<target name="04-publish-results" depends="01-resolve-dependencies">
<publish-js-app>
<cf>
<exec-grunt module="dist" nodeVersion="${node}" gruntVersion="${grunt}" />
<copy todir="tmp" includeEmptyDirs="true">
<fileset dir="dist" />
</copy>
</cf>
</publish-js-app>
</target>
<target name="05-deploy-to-npm" depends="04-publish-results">
<exec-grunt module="publish" nodeVersion="${node}" gruntVersion="${grunt}" />
</target>
<target name="06-run-test-suite" depends="01-resolve-dependencies">
<!-- disabled since pupeteer does not run on Debian 10 -->
<!-- <exec-grunt module="test" nodeVersion="${node}" gruntVersion="${grunt}" /> -->
</target>
</project>