Browse Source

added git pull and build frontend to build_full_frontend.sh

Skylsmoi 5 years ago
parent
commit
1aa9fce8e1
1 changed files with 10 additions and 1 deletions
  1. 10 1
      build_full_frontend.sh

+ 10 - 1
build_full_frontend.sh View File

@@ -8,7 +8,10 @@ if  [[ $1 = "-w" ]]; then
8 8
     windoz="windoz"
9 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 16
 # Tracim Lib
14 17
 (
@@ -44,4 +47,10 @@ echo -e "\n${BROWN}/!\ ${NC}this script does not run 'npm install'\n${BROWN}/!\
44 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 56
 log "-- frontend build successful."