Updated the way of Frontend dependencies updating to tags usage, removed the php version related packages limitation ass now we can use php7.4.
parent
15fd1aa83d
commit
69a9ca2e37
|
@ -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",
|
||||||
|
|
|
@ -29,12 +29,14 @@ 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
|
||||||
popd
|
tag=$(git describe --tags `git rev-list --tags --max-count=1`)
|
||||||
fi
|
git checkout $tag -b latest
|
||||||
|
popd
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
migrate_module() {
|
migrate_module() {
|
||||||
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue