Удалён composer-asset-plugin в пользу использования нативного asset packagist registry

This commit is contained in:
ErickSkrauch 2016-06-16 11:00:16 +03:00
parent 61ea766fca
commit 73d07f355a
4 changed files with 11 additions and 15 deletions

View File

@ -1,3 +0,0 @@
{
"directory" : "vendor/bower"
}

View File

@ -46,7 +46,8 @@ RUN yes | pecl install xdebug \
# Next composer and global composer package, as their versions may change from time to time # Next composer and global composer package, as their versions may change from time to time
RUN curl -sS https://getcomposer.org/installer | php \ RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer.phar \ && mv composer.phar /usr/local/bin/composer.phar \
&& composer.phar global require --no-progress "fxp/composer-asset-plugin:~1.1.4" "hirak/prestissimo:>=0.3.1" && echo '{"github-oauth": {"github.com": "***REMOVED***"}}' > ~/.composer/auth.json \
&& composer.phar global require --no-progress "hirak/prestissimo:>=0.3.1"
COPY ./docker/php/composer.sh /usr/local/bin/composer COPY ./docker/php/composer.sh /usr/local/bin/composer
RUN chmod a+x /usr/local/bin/composer RUN chmod a+x /usr/local/bin/composer

View File

@ -23,4 +23,8 @@ return [
'class' => \common\components\RabbitMQ\Component::class, 'class' => \common\components\RabbitMQ\Component::class,
], ],
], ],
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
]; ];

View File

@ -36,21 +36,15 @@
"codeception/verify": "*", "codeception/verify": "*",
"phploc/phploc": "^3.0.1" "phploc/phploc": "^3.0.1"
}, },
"provide": {
"bower-asset/jquery": "*",
"bower-asset/jquery.inputmask": "*",
"bower-asset/punycode": "*",
"bower-asset/yii2-pjax": "*"
},
"config": { "config": {
"process-timeout": 1800 "process-timeout": 1800
}, },
"extra": { "repositories": [
"asset-installer-paths": { {
"npm-asset-library": "vendor/npm", "type": "composer",
"bower-asset-library": "vendor/bower" "url": "https://asset-packagist.org"
} }
}, ],
"scripts": { "scripts": {
"build-tests" : "cd tests && codecept build", "build-tests" : "cd tests && codecept build",
"test" : "codecept run -c tests", "test" : "codecept run -c tests",