website/scripts/copy-npm-contrib.sh
2022-06-12 17:21:53 +01:00

18 lines
334 B
Bash
Executable file

#!/usr/bin/env bash
set -e
# Make sure we're in the root of the project
cd $(dirname $0)/..
CONTRIB_DIR=$PWD/static/build/contrib
rm -r $CONTRIB_DIR
mkdir -p $CONTRIB_DIR
mkcontrib() {
mkdir -p $CONTRIB_DIR/$1
cp -r "${@:2}" $CONTRIB_DIR/$1/
}
mkcontrib fontawesome node_modules/@fortawesome/fontawesome-free/{css,webfonts}