website/scripts/copy-npm-contrib.sh

20 lines
395 B
Bash
Raw Normal View History

2022-06-12 19:42:15 +01:00
#!/usr/bin/env bash
2022-06-12 17:21:46 +01:00
set -e
# Make sure we're in the root of the project
cd $(dirname $0)/..
CONTRIB_DIR=$PWD/static/build/contrib
2022-06-12 19:40:18 +01:00
rm -rf $CONTRIB_DIR
2022-06-12 17:21:46 +01:00
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}
2022-06-20 08:46:42 +01:00
mkcontrib elevator-js node_modules/elevator.js/demo/music/*