1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
website-2020-spike/scripts/build-static.sh

25 lines
766 B
Bash
Raw Normal View History

#!/usr/bin/env sh
export PATH=node_modules/.bin:${PATH}
set -ex
rm -rf static/build
mkdir -p static/build/css static/build/js
2020-04-25 15:40:08 +01:00
parcel build --no-autoinstall --no-source-maps -d static/build/js static/src/js/index.js
# Separate step because parcel process images itself, and breaks them
sass -I node_modules/ -s compressed --no-source-map static/src/scss/index.scss static/build/css/index.css
# Install materialize CSS
cp node_modules/materialize-css/dist/js/materialize.min.js static/build/js/materialize.min.js
# Install fontawesome
cp node_modules/@fortawesome/fontawesome-free/css/all.min.css static/build/css/font-awesome.min.css
cp -r node_modules/@fortawesome/fontawesome-free/webfonts static/build/
2020-04-13 12:32:26 +01:00
# Install images
cp -r static/src/img static/build/