|
@@ -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
|