You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-04 18:22:34 +03:00
19 lines
542 B
Bash
19 lines
542 B
Bash
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
export SQLX_OFFLINE=1
|
|
BASE_DIR="$(dirname "$0")/.."
|
|
CONFIG_SCHEMA="${BASE_DIR}/docs/config.schema.json"
|
|
GRAPHQL_SCHEMA="${BASE_DIR}/frontend/schema.graphql"
|
|
POLICIES_SCHEMA="${BASE_DIR}/policies/schema/"
|
|
|
|
set -x
|
|
cargo run -p mas-config > "${CONFIG_SCHEMA}"
|
|
cargo run -p mas-graphql > "${GRAPHQL_SCHEMA}"
|
|
cargo run -p mas-i18n-scan -- --update "${BASE_DIR}/templates/" "${BASE_DIR}/translations/en.json"
|
|
OUT_DIR="${POLICIES_SCHEMA}" cargo run -p mas-policy --features jsonschema
|
|
|
|
cd "${BASE_DIR}/frontend"
|
|
npm run generate
|