forked from cloudinformationmodel/cloudinformationmodel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·41 lines (35 loc) · 1.05 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
39
40
41
#!/usr/bin/env bash
## Generate the model
pushd ./scripts/jvm
sbt run
popd
## Generate global JSON-LD model
pushd ./scripts
npm i
npm run global_model
popd
## HTML documentation
rm -rf html/*
mkdir -p html
pushd ./scripts/node_modules/@aml-org/aml2html
npm run aml2html -- ../../../../html -d ../../../../src -g ../../../cfg.js -t ../../../templates
popd
cp -rf ./scripts/templates/* ./html/
rm -rf ./html/*.mustache
## Additional HTML pages
pushd ./scripts
npm run subject_areas
npm run about
popd
## linking distribution
pushd ./html
ln -s ../dist ./dist
popd
## Copying images
cp ./scripts/diagrams/*.png ./html/
cp ./scripts/diagrams/Party.png ./src/subjectAreas/Party/diagram.png
cp ./scripts/diagrams/Payment.png ./src/subjectAreas/Payment/diagram.png
cp ./scripts/diagrams/PaymentMethod.png ./src/subjectAreas/PaymentMethod/diagram.png
cp ./scripts/diagrams/Product.png ./src/subjectAreas/Product/diagram.png
cp ./scripts/diagrams/SalesOrder.png ./src/subjectAreas/SalesOrder/diagram.png
cp ./scripts/diagrams/Shipment.png ./src/subjectAreas/Shipment/diagram.png