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.
irreligious/cmd

16 lines
347 B
Plaintext
Raw Normal View History

2021-08-21 09:22:11 -05:00
#!/usr/bin/env bash
cmd=$1
if [ "$cmd" = "lint" ]; then
2021-09-04 22:21:14 -05:00
eslint_d . --ext .ts
elif [ "$cmd" = "build" ]; then
2021-09-04 22:21:14 -05:00
eslint_d . --ext .ts && tsc
2021-08-21 09:22:11 -05:00
elif [ "$cmd" = "run" ]; then
firefox public/index.html &
else
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