File tree Expand file tree Collapse file tree 5 files changed +75
-30
lines changed Expand file tree Collapse file tree 5 files changed +75
-30
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Gestion locale des comptes.
10
10
## Prepare environment
11
11
12
12
``` bash
13
- ./init.sh
13
+ ./scripts/ init.sh
14
14
```
15
15
16
16
Complete the ` .env.local ` (located at root) file and the ` application-dev.yml ` file (located in ` src/main/resources/config ` ).
@@ -32,5 +32,5 @@ yarn dev
32
32
## Build
33
33
34
34
``` bash
35
- ./build.sh
35
+ ./scripts/ build.sh
36
36
```
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ echo " GLC Bulding Tool"
4
+ echo " "
5
+ echo " 0 -> package"
6
+ echo " 1 -> shapshot"
7
+ echo " 2 -> release"
8
+ echo " "
9
+
10
+ read -p " Choose build type: " choice
11
+
12
+ init () {
13
+ echo " --- Initialize ---"
14
+ source ./scripts/init.sh
15
+ }
16
+
17
+ package () {
18
+ echo " --- Package ---"
19
+ ./mvnw clean package -P prod -Dmaven.test.skip=true -Darguments=" -DskipTests -Dmaven.deploy.skip=true"
20
+ }
21
+
22
+ snapshot () {
23
+ echo " --- Snapshot ---"
24
+ ./mvnw clean package deploy -P prod -Dmaven.test.skip=true -Darguments=" -DskipTests -Dmaven.deploy.skip=true"
25
+ }
26
+
27
+ release () {
28
+ echo " --- Release ---"
29
+ ./mvnw clean package release:prepare release:perform -P prod -Dmaven.test.skip=true -Darguments=" -DskipTests -Dmaven.deploy.skip=true"
30
+ }
31
+
32
+ case $choice in
33
+
34
+ 0)
35
+ init
36
+ if yarn build; then package; fi
37
+ ;;
38
+
39
+ 1)
40
+ init
41
+ if yarn build; then snapshot; fi
42
+ ;;
43
+
44
+ 2)
45
+ init
46
+ if yarn build; then release; fi
47
+ ;;
48
+
49
+ * )
50
+ echo " Unknown choice"
51
+ ;;
52
+
53
+ esac
54
+ echo " GLC Builder"
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ source ~ /.nvm/nvm.sh
4
+ source ~ /.sdkman/bin/sdkman-init.sh
5
+
6
+ # Frontend
7
+ nvm install
8
+ npm i -g yarn
9
+ yarn
10
+ yarn prepare
11
+ yarn predev
12
+
13
+ # Backend
14
+ if ! sdk env; then
15
+ sdk env install
16
+ fi
17
+ if [ ! -f " src/main/resources/config/application-dev.yml" ]; then
18
+ cp -u src/main/resources/config/application-dev.example.yml src/main/resources/config/application-dev.yml
19
+ fi
You can’t perform that action at this time.
0 commit comments