Browse Source

better separation of the sh scripts

Skylsmoi 5 years ago
parent
commit
98ba838f2a
3 changed files with 25 additions and 44 deletions
  1. 0 0
      build_full_frontend.sh
  2. 0 44
      first_install_frontend.sh
  3. 25 0
      install_frontend_dependencies.sh

rebuild_full_frontend.sh → build_full_frontend.sh View File


+ 0 - 44
first_install_frontend.sh View File

@@ -1,44 +0,0 @@
1
-#!/bin/bash
2
-
3
-. bash_library.sh # source bash_library.sh
4
-
5
-windoz=""
6
-if  [[ $1 = "-w" ]]; then
7
-    windoz="windoz"
8
-fi
9
-
10
-log "cd frontend_lib"
11
-cd frontend_lib
12
-log "npm i"
13
-npm i
14
-log "sudo npm link"
15
-sudo npm link
16
-log "npm run buildtracimlib$windoz"
17
-npm run buildtracimlib$windoz
18
-cd -
19
-
20
-log "cd frontend_app_html-document"
21
-cd frontend_app_html-document
22
-log "npm i"
23
-npm i
24
-log "npm link tracim_frontend_lib"
25
-npm link tracim_frontend_lib
26
-log "npm run build$windoz # for frontend_app_html-document"
27
-npm run build$windoz
28
-log "cp dist/html-document.app.js"
29
-cp dist/html-document.app.js ../frontend/dist/app
30
-cd -
31
-
32
-log "cd frontend"
33
-cd frontend
34
-log "npm i"
35
-npm i
36
-log "npm link tracim_frontend_lib"
37
-npm link tracim_frontend_lib
38
-if [[ $1 = "-w" ]]; then
39
-    log "npm run servdev # for frontend"
40
-    npm run servdev
41
-else
42
-    log "npm run servdev-dashboard # for frontend"
43
-    npm run servdev-dashboard
44
-fi

+ 25 - 0
install_frontend_dependencies.sh View File

@@ -0,0 +1,25 @@
1
+#!/bin/bash
2
+
3
+. bash_library.sh # source bash_library.sh
4
+
5
+log "cd frontend_lib"
6
+cd frontend_lib
7
+log "npm i"
8
+npm i
9
+log "sudo npm link"
10
+sudo npm link
11
+cd -
12
+
13
+log "cd frontend_app_html-document"
14
+cd frontend_app_html-document
15
+log "npm i"
16
+npm i
17
+log "npm link tracim_frontend_lib"
18
+npm link tracim_frontend_lib
19
+cd -
20
+
21
+log "cd frontend"
22
+cd frontend
23
+log "npm i"
24
+npm i
25
+cd -