2021-03-12 12:18:24 -08:00
|
|
|
#!/bin/bash
|
|
|
|
# This file is part of Moonfire NVR, a security camera network video recorder.
|
|
|
|
# Copyright (C) 2021 The Moonfire NVR Authors; see AUTHORS and LICENSE.txt.
|
|
|
|
# SPDX-License-Identifier: GPL-v3.0-or-later WITH GPL-3.0-linking-exception.
|
|
|
|
|
|
|
|
# Build the "build-ui" target. See Dockerfile.
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
set -o pipefail
|
|
|
|
set -o xtrace
|
|
|
|
|
|
|
|
mkdir /docker-build-debug/build-ui
|
|
|
|
exec > >(tee -i /docker-build-debug/build-ui/output) 2>&1
|
|
|
|
|
2021-03-27 16:34:14 -07:00
|
|
|
date
|
|
|
|
uname -a
|
2021-08-11 22:27:36 -07:00
|
|
|
node --version
|
|
|
|
npm --version
|
2021-03-12 12:18:24 -08:00
|
|
|
time npm ci
|
|
|
|
time npm run build
|
2021-03-27 16:34:14 -07:00
|
|
|
|
2023-01-10 21:03:01 -08:00
|
|
|
find /var/lib/moonfire-nvr/src/ui/node_modules -ls \
|
2021-03-12 12:18:24 -08:00
|
|
|
> /docker-build-debug/build-ui/node_modules-after
|
2021-03-27 16:34:14 -07:00
|
|
|
date
|