Updated the way of Frontend dependencies updating to tags usage, removed the php version related packages limitation ass now we can use php7.4.

phpword_v0.18.1
Ruslan Baidan 2021-05-05 12:41:12 +02:00
parent 15fd1aa83d
commit 69a9ca2e37
No known key found for this signature in database
GPG Key ID: 4B7724C136BF1D89
2 changed files with 11 additions and 11 deletions

View File

@ -52,9 +52,7 @@
"laminas/laminas-log": "^2.11", "laminas/laminas-log": "^2.11",
"laminas/laminas-i18n": "^2.9", "laminas/laminas-i18n": "^2.9",
"symfony/console": "^5.0", "symfony/console": "^5.0",
"laminas/laminas-dependency-plugin": "^2.0", "laminas/laminas-dependency-plugin": "^2.0"
"ocramius/proxy-manager": "<2.3",
"ocramius/package-versions": "<1.5"
}, },
"require-dev": { "require-dev": {
"roave/security-advisories": "dev-master", "roave/security-advisories": "dev-master",

View File

@ -29,10 +29,12 @@ do
esac esac
done done
pull_if_exists() { checkout_to_latest_tag() {
if [ -d $1 ]; then if [ -d $1 ]; then
pushd $1 pushd $1
git pull git fetch --tags
tag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $tag -b latest
popd popd
fi fi
} }
@ -86,8 +88,8 @@ fi
if [[ -d node_modules && -d node_modules/ng_anr ]]; then if [[ -d node_modules && -d node_modules/ng_anr ]]; then
if [[ -d node_modules/ng_anr/.git ]]; then if [[ -d node_modules/ng_anr/.git ]]; then
pull_if_exists node_modules/ng_client checkout_to_latest_tag node_modules/ng_client
pull_if_exists node_modules/ng_anr checkout_to_latest_tag node_modules/ng_anr
else else
npm update npm update
fi fi