-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sh
executable file
·38 lines (29 loc) · 1.94 KB
/
build.sh
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
echo "------------------------------------------------------------------------------------"
echo “Restoring Tools”
echo "------------------------------------------------------------------------------------"
dotnet tool restore
echo "------------------------------------------------------------------------------------"
echo "Build solution"
echo "------------------------------------------------------------------------------------"
dotnet build
echo "------------------------------------------------------------------------------------"
echo "Export Schemas"
echo "------------------------------------------------------------------------------------"
dotnet run -p Subgraphs/Accounts -- schema export --output schema.graphql
dotnet run -p Subgraphs/Products -- schema export --output schema.graphql
dotnet run -p Subgraphs/Shipping -- schema export --output schema.graphql
dotnet run -p Subgraphs/Reviews -- schema export --output schema.graphql
echo "------------------------------------------------------------------------------------"
echo "Pack Subgraphs"
echo "------------------------------------------------------------------------------------"
dotnet fusion subgraph pack --working-directory ./Subgraphs/Accounts
dotnet fusion subgraph pack --working-directory ./Subgraphs/Products
dotnet fusion subgraph pack --working-directory ./Subgraphs/Shipping
dotnet fusion subgraph pack --working-directory ./Subgraphs/Reviews
echo "------------------------------------------------------------------------------------"
echo "Compose Subrgraphs"
echo "------------------------------------------------------------------------------------"
dotnet fusion compose -p ./Gateway/gateway.fgp -s ./Subgraphs/Accounts/accounts.fsp
dotnet fusion compose -p ./Gateway/gateway.fgp -s ./Subgraphs/Products/products.fsp
dotnet fusion compose -p ./Gateway/gateway.fgp -s ./Subgraphs/Shipping/shipping.fsp
dotnet fusion compose -p ./Gateway/gateway.fgp -s ./Subgraphs/Reviews/reviews.fsp