diff --git a/README.md b/README.md index 06b9e33..8d32d23 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,6 @@ If you do not have Composer, you may install it by following the instructions at You can then install this project template using the following command: ``` -php composer.phar global require "fxp/composer-asset-plugin:^1.2.0" php composer.phar create-project --prefer-dist --stability=dev 2amigos/yii2-app-template your-site-name ``` @@ -111,7 +110,7 @@ web root so you will be able to run your functional and acceptance tests: composer start-test-server ``` -Then tests can be executeb by running: +Then tests can be execute by running: ``` composer exec codecept run diff --git a/composer.json b/composer.json index de5cbc8..5d358ae 100644 --- a/composer.json +++ b/composer.json @@ -71,6 +71,12 @@ ] } }, + "repositories": [ + { + "type": "composer", + "url": "https://asset-packagist.org" + } + ], "extra": { "yii\\composer\\Installer::postCreateProject": { "setPermission": [ @@ -86,17 +92,6 @@ "preferred-install": { "sidekit/*": "source", "*": "auto" - }, - "fxp-asset": { - "installer-paths": { - "npm-asset-library": "vendor/npm", - "bower-asset-library": "vendor/bower" - }, - "vcs-driver-options": { - "github-no-api": true - }, - "git-skip-update": "2 days", - "pattern-skip-version": "(-build|-patch)" } } } diff --git a/config/web/app.php b/config/web/app.php index 976bf08..c697467 100644 --- a/config/web/app.php +++ b/config/web/app.php @@ -26,4 +26,9 @@ 'language' => ConfigKit::env()->get('APP_LANGUAGE'), 'bootstrap' => ['log'], + + 'aliases' => [ + '@bower' => '@vendor/bower-asset', + '@npm' => '@vendor/npm-asset', + ] ];