mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-21 22:13:11 -06:00
30 lines
492 B
Bash
Executable File
30 lines
492 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
[ -d "/sites" ] && exit 1;
|
|
|
|
# build translations.
|
|
#php ~/Sites/tools/firefly-iii-tools/cli.php ff3:json-translations --v2
|
|
|
|
# remove old stuff
|
|
rm -rf public/
|
|
rm -rf ../public/fonts
|
|
rm -rf ../public/v2/js
|
|
rm -rf ../public/v2/css
|
|
|
|
# build new stuff
|
|
yarn install
|
|
yarn audit fix
|
|
yarn upgrade
|
|
yarn prod
|
|
|
|
# yarn watch
|
|
|
|
# move to right directory
|
|
# mv public/js ../public/v2
|
|
# mv public/css ../public/v2
|
|
|
|
# also copy fonts
|
|
cp -r fonts ../public
|
|
|
|
# remove built stuff
|
|
rm -rf public |