Build frontend, delete old code.

This commit is contained in:
James Cole
2020-11-12 06:14:15 +01:00
parent d90f457a36
commit 60339c9d1b
59 changed files with 7253 additions and 10315 deletions

View File

@@ -1,7 +1,9 @@
#!/usr/bin/env bash
[ -d "/sites" ] && exit 1;
# build translations.
php /sites/tools/firefly-iii-tools/cli.php ff3:json-translations --v2
php ~/Sites/tools/firefly-iii-tools/cli.php ff3:json-translations --v2
# remove old stuff
rm -rf public/
@@ -10,12 +12,12 @@ rm -rf ../public/v2/js
rm -rf ../public/v2/css
# build new stuff
npm install
npm audit fix
npm upgrade
npm run prod
yarn install
yarn audit fix
yarn upgrade
yarn prod
# npm run watch-poll
# yarn watch
# move to right directory
# mv public/js ../public/v2
@@ -23,3 +25,6 @@ npm run prod
# also copy fonts
cp -r fonts ../public
# remove built stuff
rm -rf public