UNPKG

720 Bapplication/x-shView Raw
1#! /bin/sh
2
3# Colors used for status updates
4ESC_SEQ="\x1b["
5COL_RESET=$ESC_SEQ"39;49;00m"
6COL_RED=$ESC_SEQ"31;01m"
7COL_GREEN=$ESC_SEQ"32;01m"
8COL_YELLOW=$ESC_SEQ"33;01m"
9COL_BLUE=$ESC_SEQ"34;01m"
10COL_MAGENTA=$ESC_SEQ"35;01m"
11COL_CYAN=$ESC_SEQ"36;01m"
12
13# if examples/lib does not exist, create
14if [ ! -d "./examples/lib" ]; then
15 mkdir ./examples/lib
16fi
17
18printf "\n ${COL_GREEN}[ •• ${CO_RESET}] ${COL_YELLOW} ==> Copying files to ${COL_CYAN}./examples${COL_GREEN} ... ${COL_RESET}\n"
19
20# copy built lib files to examples
21cp dist/*.js ./examples/lib
22
23# move built index.html
24mv dist/index.html ./examples
25
26printf " ${COL_GREEN}[ ok ${CO_RESET}] ${COL_YELLOW} ==> Build Completed Successfully ... ${COL_RESET}\n\n"