mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
29 lines
593 B
Bash
Executable File
29 lines
593 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Exit on error.
|
|
set -eo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
start_time=$(date +%s)
|
|
|
|
echo "[Build]: Extracting and compiling translations"
|
|
npm run translate --prefix ../../
|
|
|
|
echo "[Build]: Building app"
|
|
npm run build:app
|
|
|
|
echo "[Build]: Building server"
|
|
npm run build:server
|
|
|
|
# Copy over the entry point for the server.
|
|
cp server/main.js build/server/main.js
|
|
|
|
# Copy over all web.js translations
|
|
cp -r ../../packages/lib/translations build/server/hono/packages/lib/translations
|
|
|
|
# Time taken
|
|
end_time=$(date +%s)
|
|
|
|
echo "[Build]: Done in $((end_time - start_time)) seconds"
|