-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdevi
executable file
·92 lines (74 loc) · 2.38 KB
/
devi
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/bash
############################################################
# The Imixs Developer Script
# start, build, deploy
#
############################################################
# Helper function to remove the '-' char from a param
strip_dash() {
echo "$1" | sed 's/^-//'
}
echo " _ _ _ _ "
echo " __| | _____ _(_) | |__ ___| |_ __"
echo " / _\` |/ _ \\ \\ / / | | '_ \\ / _ \\ | \'_ \\"
echo "| (_| | __/\ V /| | | | | | __/ | |_) |"
echo " \__,_|\___| \_/ |_| |_| |_|\___|_| .__/ "
echo " |_| "
echo " Imixs Developer Script..."
echo "_________________________________________"
# now verify params...
if [[ "$(strip_dash $1)" == "start" ]]; then
echo " starting frontend only..."
cd open-bpmn.glsp-client/
yarn start:external --root-dir=../open-bpmn.glsp-client/workspace
cd ..
fi
if [[ "$(strip_dash $1)" == "install" ]]; then
echo " install frontend..."
cd open-bpmn.glsp-client/
yarn install
cd ..
fi
if [[ "$(strip_dash $1)" == "frontend" ]]; then
cd open-bpmn.glsp-client/
yarn
yarn start:external
cd ..
fi
if [[ "$(strip_dash $1)" == "hot" ]]; then
echo " starting hot deployment mode for frontend..."
cd open-bpmn.glsp-client/
yarn watch
cd ..
fi
if [[ "$(strip_dash $1)" == "build" ]]; then
echo " starting maven build..."
mvn clean install
fi
if [[ "$(strip_dash $1)" == "docker" ]]; then
echo " building docker image..."
mvn clean install -DskipTests
docker build . -t imixs/open-bpmn
docker push imixs/open-bpmn
fi
if [[ "$(strip_dash $1)" == "clean" ]]; then
echo " cleanup build..."
# clean up gitignore files
#git clean -xdf
mvn clean
rm open-bpmn.glsp-client/yarn.lock
fi
# Überprüfen, ob keine Parameter übergeben wurden - standard build
if [[ $# -eq 0 ]]; then
echo " Run with ./dev.sh -XXX"
echo " "
echo " -start : start the frontend"
echo " -frontend : rebuild and start frontend components "
echo " -install : install the frontend components "
echo " -hot : start hot deployment mode for frontend components "
echo " -build : run a maven build "
echo " -clean : clean up build "
echo " -docker : build the docker image "
echo "_________________________________________"
echo " "
fi