codedungeon
5/13/2016 - 6:52 PM

bash script to perform build

bash script to perform build

#!/bin/bash

YELLOW='\033[1;33m'
LIGHTBLUE='\033[1;36m'
GREEN='\033[1;32m'
NC='\033[0m'
RESET='\033[0m'

SRC=./examples/hello-controller-as/AmbryGrid.jsx
DEST=./examples/hello-controller-as/ambryGrid.js

printf '\n'
printf " [${GREEN} ok ${RESET}] ${YELLOW}Transpiling Components...   ${RESET}[$SRC]\n"
browserify $SRC -o $DEST -t reactify
printf " [${GREEN} ok ${RESET}] ${GREEN}Transpilation Complete:     ${RESET}[$DEST]\n"
now=$(date +'%r')
printf " [${GREEN} ok ${RESET}] ${GREEN}Execution Completed:${RESET}        ${now}\n"
printf '\n'