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