Kaynağa Gözat

added git pull and build frontend to build_full_frontend.sh

Skylsmoi 5 yıl önce
ebeveyn
işleme
1aa9fce8e1
1 değiştirilmiş dosya ile 10 ekleme ve 1 silme
  1. 10 1
      build_full_frontend.sh

+ 10 - 1
build_full_frontend.sh Dosyayı Görüntüle

8
     windoz="windoz"
8
     windoz="windoz"
9
 fi
9
 fi
10
 
10
 
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"
11
+echo -e "\n${BROWN}/!\ ${NC}this script does not run 'npm install'\n${BROWN}/!\ ${NC}"
12
+
13
+# get the new sources
14
+git pull origin develop
12
 
15
 
13
 # Tracim Lib
16
 # Tracim Lib
14
 (
17
 (
44
   ./build_admin_workspace_user.sh
47
   ./build_admin_workspace_user.sh
45
 )
48
 )
46
 
49
 
50
+# build Tracim
51
+(
52
+  cd frontend || exit
53
+  npm run build
54
+)
55
+
47
 log "-- frontend build successful."
56
 log "-- frontend build successful."