|  | @@ -0,0 +1,28 @@
 | 
	
		
			
			|  | 1 | +#!/bin/bash
 | 
	
		
			
			|  | 2 | +
 | 
	
		
			
			|  | 3 | +windoz=""
 | 
	
		
			
			|  | 4 | +if  [[ $1 = "-w" ]]; then
 | 
	
		
			
			|  | 5 | +    windoz="windoz"
 | 
	
		
			
			|  | 6 | +fi
 | 
	
		
			
			|  | 7 | +
 | 
	
		
			
			|  | 8 | +BROWN='\033[0;33m'
 | 
	
		
			
			|  | 9 | +NC='\033[0m' # No Color
 | 
	
		
			
			|  | 10 | +
 | 
	
		
			
			|  | 11 | +function log {
 | 
	
		
			
			|  | 12 | +    echo -e "\n${BROWN}>> $ $1${NC}\n"
 | 
	
		
			
			|  | 13 | +}
 | 
	
		
			
			|  | 14 | +
 | 
	
		
			
			|  | 15 | +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"
 | 
	
		
			
			|  | 16 | +
 | 
	
		
			
			|  | 17 | +log "cd frontend_lib"
 | 
	
		
			
			|  | 18 | +cd frontend_lib
 | 
	
		
			
			|  | 19 | +log "npm run buildtracimlib$windoz"
 | 
	
		
			
			|  | 20 | +npm run buildtracimlib$windoz
 | 
	
		
			
			|  | 21 | +cd -
 | 
	
		
			
			|  | 22 | +
 | 
	
		
			
			|  | 23 | +log "cd frontend_app_html-document"
 | 
	
		
			
			|  | 24 | +cd frontend_app_html-document
 | 
	
		
			
			|  | 25 | +log "npm run build$windoz # for frontend_app_html-document"
 | 
	
		
			
			|  | 26 | +npm run build$windoz
 | 
	
		
			
			|  | 27 | +log "cp dist/html-document.app.js"
 | 
	
		
			
			|  | 28 | +cp dist/html-document.app.js ../frontend/dist/app
 |