masto-fe/build.sh
Morgan Bazalgette 31b43e8500
remove gzip on assets, add build.sh
pickups:
- build.sh: Make the target dir configurable
- build.sh: Auto-update yarn dependencies

Co-authored-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-02-03 15:44:41 +01:00

10 lines
297 B
Bash
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
TARGET="../pleroma" # Where pleromas repository is sitting
yarn install -D
rm -rf public/packs public/assets
env -i "PATH=$PATH" npm run build
cp public/assets/sw.js "${TARGET}/priv/static/sw.js"
rm -rf "${TARGET}/priv/static/packs"
cp -r public/packs "${TARGET}/priv/static/packs"