This repository has been archived on 2022-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-21 09:22:11 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
cmd=$1
|
|
|
|
|
2021-08-21 10:44:53 -05:00
|
|
|
if [ "$cmd" = "lint" ]; then
|
|
|
|
tslint --project .
|
|
|
|
elif [ "$cmd" = "build" ]; then
|
2021-08-21 09:22:11 -05:00
|
|
|
tslint --project . && tsc
|
|
|
|
elif [ "$cmd" = "run" ]; then
|
|
|
|
firefox public/index.html &
|
|
|
|
else
|
2021-08-21 10:44:53 -05:00
|
|
|
echo "Usage: ./cmd lint - lint"
|
|
|
|
echo " ./cmd build - lint and compile"
|
2021-08-21 09:22:11 -05:00
|
|
|
echo " ./cmd run - run in firefox"
|
|
|
|
fi
|