9215eb1202
pickups: - build.sh: Make the target dir configurable - build.sh: Auto-update yarn dependencies Co-authored-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
10 lines
297 B
Bash
Executable file
10 lines
297 B
Bash
Executable file
#!/bin/sh
|
||
TARGET="../pleroma" # Where pleroma’s 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"
|