-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
38 lines (35 loc) · 1.59 KB
/
build.xml
File metadata and controls
38 lines (35 loc) · 1.59 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="frontend_api">
<property name="path.openssl.executable" value="openssl"/>
<target name="frontend-api-generate-new-keys" depends="production-protection" description="Generates keys and parameter for signing tokens.">
<exec executable="${path.openssl.executable}" checkreturn="true">
<arg value="genrsa"/>
<arg value="-out"/>
<arg value="${path.config}/frontend-api/private.key"/>
<arg value="2048"/>
</exec>
<exec executable="${path.openssl.executable}" checkreturn="true">
<arg value="rsa"/>
<arg value="-in"/>
<arg value="${path.config}/frontend-api/private.key"/>
<arg value="-pubout"/>
<arg value="-out"/>
<arg value="${path.config}/frontend-api/public.key"/>
</exec>
</target>
<target name="frontend-api-generate-graphql-schema" description="Generates schema.graphql in root directory">
<exec executable="${path.php.executable}" passthru="true" checkreturn="true">
<arg value="${path.bin-console}"/>
<arg value="graphql:dump-schema"/>
<arg value="--file"/>
<arg value="${path.root}/schema.graphql"/>
<arg value="--format"/>
<arg value="graphql"/>
<arg value="--modern"/>
</exec>
<exec executable="${path.npm.executable}" logoutput="true" passthru="true" checkreturn="true">
<arg value="run"/>
<arg value="format-graphql"/>
</exec>
</target>
</project>