2022-05-15 00:53:47 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-02-08 19:04:21 +00:00
|
|
|
source ./scripts/common.sh
|
2021-08-24 18:27:52 +00:00
|
|
|
|
|
|
|
rm -rf "$STATIC_BUILD"
|
|
|
|
rm -rf "$OUTPUT_DIR"
|
2022-05-14 22:28:12 +00:00
|
|
|
rm -rf "$BASEDIR/resources"
|
2021-08-24 18:27:52 +00:00
|
|
|
|
2021-08-25 08:43:25 +00:00
|
|
|
mkdir -p "$STATIC_BUILD"
|
|
|
|
|
2021-08-25 09:17:41 +00:00
|
|
|
mkdir -p "$STATIC_BUILD/img"
|
2021-08-26 00:01:26 +00:00
|
|
|
cp -r "$STATIC_SRC/img"/* "$STATIC_BUILD/img"
|
2021-08-24 18:27:52 +00:00
|
|
|
|
2021-08-25 09:17:41 +00:00
|
|
|
mkdir -p "$STATIC_BUILD/js"
|
2022-05-11 15:29:57 +00:00
|
|
|
cp -r "$STATIC_SRC/js"/* "$STATIC_BUILD/js"
|
2022-05-14 22:28:12 +00:00
|
|
|
cp "$BASEDIR/node_modules/jquery/dist/jquery.min.js" "$STATIC_BUILD/js/jquery.min.js"
|
|
|
|
cp "$BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js" "$STATIC_BUILD/js/bootstrap.min.js"
|
2021-08-25 09:05:43 +00:00
|
|
|
|
2021-08-25 09:17:41 +00:00
|
|
|
mkdir -p "$STATIC_BUILD/css"
|
2021-08-25 12:12:01 +00:00
|
|
|
#cp -r "$STATIC_SRC/css"/* "$STATIC_BUILD/css"
|
2021-08-25 09:05:43 +00:00
|
|
|
cp -r "$BASEDIR/node_modules/@fortawesome/fontawesome-free/css/all.min.css" "$STATIC_BUILD/css/font-awesome.css"
|
2021-08-24 18:27:52 +00:00
|
|
|
|
2021-08-25 09:17:41 +00:00
|
|
|
mkdir -p "$STATIC_BUILD/scss"
|
|
|
|
cp -r "$STATIC_SRC/scss"/* "$STATIC_BUILD/scss"
|
2022-05-14 22:28:12 +00:00
|
|
|
|
2022-07-25 10:49:38 +00:00
|
|
|
mkdir -p "$STATIC_BUILD/webfonts"
|
|
|
|
cp -r "$STATIC_SRC/webfonts"/* "$STATIC_BUILD/webfonts"
|
|
|
|
cp -r "$BASEDIR/node_modules/@fortawesome/fontawesome-free/webfonts"/* "$STATIC_BUILD/webfonts"
|
2022-05-14 22:28:12 +00:00
|
|
|
|
2023-12-10 00:15:28 +00:00
|
|
|
hugo -DEF --logLevel info --gc "$@"
|