Skip to content

Commit

Permalink
update composer
Browse files Browse the repository at this point in the history
  • Loading branch information
jGRUBBS committed Jun 9, 2024
1 parent 5a9918c commit 855b039
Show file tree
Hide file tree
Showing 1,306 changed files with 151,344 additions and 1,157 deletions.
24 changes: 24 additions & 0 deletions bin/composer
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

if [ -f .env ]; then
. .env
fi

COMPOSER_CONFIG=()

if [ -n "$ACF_PRO_KEY" ]; then
COMPOSER_CONFIG+=("composer config -g http-basic.connect.advancedcustomfields.com $ACF_PRO_KEY https://www.kingandpartners.com &&")
fi

ARGS="--rm"
if [ -t 0 ]; then
ARGS="$ARGS -it"
fi

docker run $ARGS \
--env ACF_PRO_KEY \
--volume $HOME/.composer:/tmp \
--volume $PWD:/app \
--user $(id -u):$(id -g) \
kingandpartners/composer \
sh -c "${COMPOSER_CONFIG[*]} composer $*"
20 changes: 4 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,13 @@
"url": "https://my.yoast.com/packages/"
},
{
"type": "package",
"package": {
"name": "advanced-custom-fields/advanced-custom-fields-pro",
"version": "6.2.9",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://connect.advancedcustomfields.com/index.php?p=pro&a=download"
},
"require": {
"philippbaschke/acf-pro-installer": "^1.0",
"composer/installers": "^1.0"
}
}
"type":"composer",
"url":"https://connect.advancedcustomfields.com"
}
],
"require": {
"composer/installers": "~1.0",
"advanced-custom-fields/advanced-custom-fields-pro": "*",
"wpengine/advanced-custom-fields-pro": "*",
"flyntwp/acf-field-group-composer": "v1.1.0",
"elasticsearch/elasticsearch": "^6.1",
"yoast/wordpress-seo-premium": "*",
Expand All @@ -57,7 +45,7 @@
"type:wordpress-muplugin",
"aws/aws-sdk-php",
"flyntwp/acf-field-group-composer",
"advanced-custom-fields/advanced-custom-fields-pro",
"wpengine/advanced-custom-fields-pro",
"elasticsearch/elasticsearch",
"yoast/wordpress-seo-premium"
]
Expand Down
Loading

0 comments on commit 855b039

Please sign in to comment.