public
anord
read
Ledger
Why work hard when you can work easier?
Languages
Repository composition by tracked source files.
TypeScript
86%
CSS
10%
SQL
3%
Shell
1%
HTML
0%
Trace
infra/scripts/dev-bootstrap.sh
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
#!/bin/sh
2
set -eu
4
cd /app
6
mkdir -p /app/node_modules
8
MANIFEST_HASH="$(
9
find /app -maxdepth 3 -name package.json -type f \
10
! -path '*/node_modules/*' \
11
| sort \
12
| xargs cat \
13
| sha256sum \
14
| awk '{print $1}'
15
)"
17
CURRENT_HASH=""
18
if [ -f /app/node_modules/.ledger-deps-hash ]; then
19
CURRENT_HASH="$(cat /app/node_modules/.ledger-deps-hash)"
20
fi
22
if [ "$MANIFEST_HASH" != "$CURRENT_HASH" ] || [ ! -f /app/node_modules/.ledger-ready ]; then
23
npm install
24
npm run build --workspace @ledger/shared
25
printf '%s' "$MANIFEST_HASH" > /app/node_modules/.ledger-deps-hash
26
touch /app/node_modules/.ledger-ready
27
fi