7th-saga/scripts/client-deps.sh

21 lines
561 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
thisDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
rootDir="$(dirname "${thisDir}")"
targetDir="${rootDir}/web/static"
nodeDir="${rootDir}/node_modules"
mkdir -p "${targetDir}"
cp -r \
"${nodeDir}"/bootstrap/dist/css/bootstrap.css \
"${nodeDir}"/bootstrap/dist/js/bootstrap.js \
"${nodeDir}"/bootstrap-icons/font/bootstrap-icons.css \
"${nodeDir}"/bootstrap-icons/font/fonts/ \
"${nodeDir}"/jquery/dist/jquery.js \
"${nodeDir}"/popper.js/dist/umd/popper.js \
"${nodeDir}"/js-cookie/src/js.cookie.js \
"${targetDir}"