-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild-package.sh
More file actions
executable file
·64 lines (52 loc) · 905 Bytes
/
build-package.sh
File metadata and controls
executable file
·64 lines (52 loc) · 905 Bytes
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
if [ -z $VERSION ] ; then
VERSION="development-version"
fi
ZIP_FILE="fuyuko-${VERSION}.zip"
echo "VERSION: $VERSION"
echo "ZIP FILE: $ZIP_FILE"
if [ -f $ZIP_FILE ] ; then
echo "DELETE EXISITING ${ZIP_FILE}"
rm -fr $ZIP_FILE
fi
echo "BUILD COMMON"
(
cd common-code
npm install
)
echo "BUILD WF"
(
cd wf
npm install
npm run build
)
echo "BUILD BE"
(
cd be
npm install
npm install 'replace-in-file'
chmod +x ./update-files-with-git-hash.sh
./update-files-with-git-hash.sh
npm run build
)
echo "BUILD FE"
(
cd fe
npm install
npm install 'replace-in-file'
chmod +x ./update-files-with-git-hash.sh
./update-files-with-git-hash.sh
npm run build-prod
)
echo "ZIP BUILD"
zip -9 -r fuyuko-${VERSION}.zip \
LICENSE \
README.md \
db/docker \
be/dist \
be/docker \
fe/dist/fuyuko \
fe/docker \
kubernetes \
docker-compose
echo "DONE BUILD PACKAGE"