blob: d14f143ab1622a880db9be0e8ee50ea8b4344118 (
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
|
function selfcheck() {
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 start() {
printf '\033[0;32mNpx Server Starting...\033[0m\n'
exec npx serve -d -p 209 #| npx gnomon;
}
function main() {
selfcheck
start
}
if [ "$1" ]; then
$@
exit 0
fi
main
|