blob: 023972727ca29664f43da564ad7bf83ef994a570 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
function check() {
printf '\033[0;35mCode Checking Starts...\033[0m\n'
html5validator --also-check-css --also-check-svg --verbose | npx gnomon || printf '\033[0;31mCode Check Failed...\033[0m\n'
# sleep .5
echo
htmltest --conf ./.htmltest.yml | npx gnomon || printf '\033[0;31mCode Check Failed...\033[0m\n'
# sleep .5
}
function buildcss() {
printf '\033[0;35mCode CSS Build Starts...\033[0m\n'
yarn build:css || printf '\033[0;31mCode CSS Build Failed...\033[0m\n'
}
function buildjs() {
printf '\033[0;35mCode JavaScript Compile Starts...\033[0m\n'
yarn build:js || printf '\033[0;31mCode JavaScript Compile Failed...\033[0m\n'
}
function start() {
printf '\033[0;32mNpx Server Starting...\033[0m\n'
exec npx serve -d -p 209 #| npx gnomon;
}
function main() {
check
buildcss
buildjs
start
}
if [ "$1" ]; then
$@
exit 0
fi
main
|