mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-15 11:07:48 +00:00
36 lines
1.0 KiB
Bash
Executable File
36 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
case "${1:-}" in
|
|
badge-web)
|
|
(cd apps/simplex-badge-service/web && npm ci && npm test)
|
|
;;
|
|
ci-scripts)
|
|
python3 scripts/ci/test_packages_release.py
|
|
;;
|
|
website)
|
|
(cd website && npm test)
|
|
;;
|
|
mcp)
|
|
(cd packages/simplex-chat-client/types/typescript && npm install --no-audit --no-fund && npx tsc)
|
|
(cd packages/simplex-chat-nodejs && npm install --ignore-scripts --no-save --no-audit --no-fund ../simplex-chat-client/types/typescript && npx tsc && cp src/simplex.* dist)
|
|
cd packages/simplex-chat-mcp
|
|
npm ci --no-audit --no-fund
|
|
npm install --no-save --no-audit --no-fund ../simplex-chat-nodejs ../simplex-chat-client/types/typescript
|
|
npx tsc
|
|
npx tsc -p test/tsconfig.json --noEmit
|
|
npm test
|
|
npm run test:e2e
|
|
;;
|
|
support-bot)
|
|
(cd apps/simplex-support-bot && npm ci --no-audit --no-fund && npm run build && npm test)
|
|
;;
|
|
*)
|
|
echo "usage: $0 badge-web | ci-scripts | website | mcp | support-bot" >&2
|
|
exit 1
|
|
;;
|
|
esac
|