- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
Latest commit
executable file
·35 lines (34 loc) · 816 Bytes
/
Copy pathdev.sh
File metadata and controls
executable file
·35 lines (34 loc) · 816 Bytes
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
#!/usr/bin/env bash
set -euo pipefail
case"${1:-help}"in
dev)
npm run dev -- --config example_config.json
;;
coverage)
npm run coverage
;;
test)
npm run test
;;
check)
npm run compile && npm run coverage && npm run lint:write
;;
db)
docker compose up -d redis && docker compose up -d db
;;
cserve)
npm run coverage &&cd coverage && npx http-server
;;
*)
echo"Usage: ./dev.sh <operation>"
echo""
echo"Operations:"
echo" dev Run dev server with example config"
echo" coverage Run test suite with coverage"
echo" test Run tests"
echo" check Compile + coverage + lint"
echo" db Start redis and db containers"
echo" csserve Serve coverage report via HTTP"
exit 1
;;
esac