Switched to asset-packagist.org

This commit is contained in:
SilverFire - Dmitry Naumenko 2017-06-17 17:23:21 +03:00
parent 927398596b
commit fc2ec7dfee
4 changed files with 13 additions and 4 deletions

View File

@ -5,6 +5,7 @@ php:
- 5.5 - 5.5
- 5.6 - 5.6
- 7.0 - 7.0
- 7.1
# - hhvm # - hhvm
# faster builds on new travis setup not using sudo # faster builds on new travis setup not using sudo
@ -17,7 +18,6 @@ cache:
install: install:
- travis_retry composer self-update && composer --version - travis_retry composer self-update && composer --version
- travis_retry composer global require "fxp/composer-asset-plugin:~1.3.1"
- travis_retry composer update --dev --prefer-dist --no-interaction - travis_retry composer update --dev --prefer-dist --no-interaction
# setup application: # setup application:
- | - |

View File

@ -46,7 +46,6 @@ at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).
You can then install this project template using the following command: You can then install this project template using the following command:
~~~ ~~~
php composer.phar global require "fxp/composer-asset-plugin:^1.3.1"
php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic
~~~ ~~~

View File

@ -42,6 +42,12 @@
"yii\\composer\\Installer::postCreateProject" "yii\\composer\\Installer::postCreateProject"
] ]
}, },
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
],
"extra": { "extra": {
"yii\\composer\\Installer::postCreateProject": { "yii\\composer\\Installer::postCreateProject": {
"setPermission": [ "setPermission": [

View File

@ -7,6 +7,10 @@ $config = [
'id' => 'basic', 'id' => 'basic',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'bootstrap' => ['log'], 'bootstrap' => ['log'],
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
'components' => [ 'components' => [
'request' => [ 'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation