Skip to content

Commit

Permalink
Replace composer-asset-plugin with asset-packagist
Browse files Browse the repository at this point in the history
* Switch to Composer 2
  • Loading branch information
chrisvire committed Mar 21, 2022
1 parent a35352c commit e52792e
Show file tree
Hide file tree
Showing 6 changed files with 369 additions and 99 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ RUN chown -R www-data:www-data \
frontend/runtime/ \
frontend/web/assets/

# Install composer
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer

# Install/cleanup composer dependencies
RUN composer global require "fxp/composer-asset-plugin:^1.4.3" \
RUN composer global remove "fxp/composer-asset-plugin" \
&& composer install --prefer-dist --no-interaction --no-dev --optimize-autoloader

# Install shellcheck for validating shell scripts
Expand Down
5 changes: 0 additions & 5 deletions application/auth.json

This file was deleted.

15 changes: 9 additions & 6 deletions application/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@
"codeception/verify": "0.*"
},
"config": {
"process-timeout": 1800
"process-timeout": 1800,
"allow-plugins": {
"yiisoft/yii2-composer": true
}
},
"extra": {
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
}
]
}
Loading

0 comments on commit e52792e

Please sign in to comment.