1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00

ignore some public files, copy build

This commit is contained in:
Tykayn 2021-02-12 15:23:27 +01:00 committed by tykayn
parent 2314a0acac
commit 0fc4802770
2 changed files with 12 additions and 2 deletions

1
.gitignore vendored
View File

@ -32,6 +32,7 @@ public/polyfills-es2018.js
public/polyfills-es5.js
public/scripts.js
public/styles.css
public/*
###> symfony/phpunit-bridge ###
.phpunit

View File

@ -2,6 +2,8 @@
echo "######################"
echo " time to update the framadate setup"
echo "######################"
COMMAND_BUILD="build:prod:demobliss"
# git reset --hard
git pull origin master
@ -32,16 +34,23 @@ echo " yarn version "
yarn -v
echo " "
echo "######################"
git fetch
git pull
yarn
echo "######################"
echo " building the frontend "
echo " npm run $COMMAND_BUILD "
echo "######################"
ng build --prod --baseHref=https://framadate-api.cipherbliss.com
npm run $COMMAND_BUILD
echo "######################"
echo " copying built files in the public folder of the symfony project "
echo "######################"
cp -r dist/* ../public/
rm -rf ../public/*
cp -r dist/framadate/* ../public/
COUNT_FILES = ls -larth ../public |wc -l
cd ..
echo " $COUNT_FILES fichiers de build copiés dans /public"
echo "######################"
echo " done "
echo "######################"