mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-18 10:41:19 +02:00
14 lines
393 B
Bash
14 lines
393 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
deps_hash="$(sha256sum package.json package-lock.json | sha256sum | cut -d ' ' -f 1)"
|
|
deps_stamp="node_modules/.wygiwyh-deps-hash"
|
|
|
|
if [ ! -f "$deps_stamp" ] || [ "$(cat "$deps_stamp")" != "$deps_hash" ]; then
|
|
echo "Installing frontend dependencies..."
|
|
npm ci --no-audit --no-fund --prefer-offline
|
|
printf '%s\n' "$deps_hash" > "$deps_stamp"
|
|
fi
|
|
|
|
exec npm run dev
|