|
@@ -11,77 +11,37 @@ fi
|
11
|
11
|
echo -e "\n${BROWN}/!\ ${NC}this script does not run 'npm install'\n${BROWN}/!\ ${NC}it also assumes your webpack dev server of frontend is running"
|
12
|
12
|
|
13
|
13
|
# Tracim Lib
|
14
|
|
-log "build frontend_lib"
|
15
|
14
|
(
|
|
15
|
+ log "build frontend_lib"
|
16
|
16
|
cd frontend_lib || exit
|
17
|
17
|
npm run buildtracimlib$windoz
|
18
|
18
|
)
|
19
|
19
|
|
20
|
20
|
|
21
|
21
|
# app Html Document
|
22
|
|
-log "build frontend_app_html-document"
|
23
|
22
|
(
|
24
|
23
|
cd frontend_app_html-document || exit
|
25
|
|
- npm run build$windoz
|
|
24
|
+ ./build_html-document.sh
|
26
|
25
|
)
|
27
|
26
|
|
28
|
|
-log "copying built file to frontend/"
|
29
|
|
-cp frontend_app_html-document/dist/html-document.app.js frontend/dist/app/
|
30
|
|
-
|
31
|
|
-log "copying en translation.json"
|
32
|
|
-cp frontend_app_html-document/i18next.scanner/en/translation.json frontend/dist/app/html-document_en_translation.json
|
33
|
|
-
|
34
|
|
-log "copying fr translation.json"
|
35
|
|
-cp frontend_app_html-document/i18next.scanner/fr/translation.json frontend/dist/app/html-document_fr_translation.json
|
36
|
|
-
|
37
|
27
|
|
38
|
28
|
# app Thread
|
39
|
|
-log "build frontend_app_thread"
|
40
|
29
|
(
|
41
|
30
|
cd frontend_app_thread || exit
|
42
|
|
- npm run build$windoz
|
|
31
|
+ ./build_thread.sh
|
43
|
32
|
)
|
44
|
33
|
|
45
|
|
-log "copying built file to frontend/"
|
46
|
|
-cp frontend_app_thread/dist/thread.app.js frontend/dist/app/
|
47
|
|
-
|
48
|
|
-log "copying Thread en translation.json"
|
49
|
|
-cp frontend_app_thread/i18next.scanner/en/translation.json frontend/dist/app/thread_en_translation.json
|
50
|
|
-
|
51
|
|
-log "copying Thread fr translation.json"
|
52
|
|
-cp frontend_app_thread/i18next.scanner/fr/translation.json frontend/dist/app/thread_fr_translation.json
|
53
|
|
-
|
54
|
34
|
|
55
|
35
|
# app Workspace
|
56
|
|
-log "build frontend_app_workspace"
|
57
|
36
|
(
|
58
|
37
|
cd frontend_app_workspace || exit
|
59
|
|
- npm run build$windoz
|
|
38
|
+ ./build_workspace.sh
|
60
|
39
|
)
|
61
|
40
|
|
62
|
|
-log "copying built file to frontend/"
|
63
|
|
-cp frontend_app_workspace/dist/workspace.app.js frontend/dist/app/
|
64
|
|
-
|
65
|
|
-log "copying Thread en translation.json"
|
66
|
|
-cp frontend_app_workspace/i18next.scanner/en/translation.json frontend/dist/app/workspace_en_translation.json
|
67
|
|
-
|
68
|
|
-log "copying Thread fr translation.json"
|
69
|
|
-cp frontend_app_workspace/i18next.scanner/fr/translation.json frontend/dist/app/workspace_fr_translation.json
|
70
|
|
-
|
71
|
41
|
# app Admin Workspace User
|
72
|
|
-log "build frontend_app_admin_workspace_user"
|
73
|
42
|
(
|
74
|
43
|
cd frontend_app_admin_workspace_user || exit
|
75
|
|
- npm run build$windoz
|
|
44
|
+ ./build_admin_workspace_user.sh
|
76
|
45
|
)
|
77
|
46
|
|
78
|
|
-log "copying built file to frontend/"
|
79
|
|
-cp frontend_app_admin_workspace_user/dist/admin_workspace_user.app.js frontend/dist/app/
|
80
|
|
-
|
81
|
|
-log "copying Thread en translation.json"
|
82
|
|
-cp frontend_app_admin_workspace_user/i18next.scanner/en/translation.json frontend/dist/app/admin_workspace_user_en_translation.json
|
83
|
|
-
|
84
|
|
-log "copying Thread fr translation.json"
|
85
|
|
-cp frontend_app_admin_workspace_user/i18next.scanner/fr/translation.json frontend/dist/app/admin_workspace_user_fr_translation.json
|
86
|
|
-
|
87
|
|
-log "frontend fully built"
|
|
47
|
+log "-- frontend build successful."
|