### Remove Asset-Packagist Repository from composer.json Source: https://github.com/yidas/yii2-composer-bower-skip/blob/master/README.md Illustrates the `repositories` configuration block in `composer.json` that can be optionally removed when using Yii versions 2.0.13 or higher after installing `yidas/yii2-composer-bower-skip`. ```JSON "repositories": [ { "type": "composer", "url": "https://asset-packagist.org" } ] ``` -------------------------------- ### Create Yii2 Basic App Project via Composer Source: https://github.com/yidas/yii2-composer-bower-skip/blob/master/README.md Uses the `composer create-project` command to set up a new Yii2 basic application based on the `yidas/yii2-app-basic` template, which already incorporates the necessary bower handling. ```Bash composer create-project --prefer-dist yidas/yii2-app-basic ``` -------------------------------- ### Create Yii2 Advanced App Project via Composer Source: https://github.com/yidas/yii2-composer-bower-skip/blob/master/README.md Uses the `composer create-project` command to set up a new Yii2 advanced application based on the `yidas/yii2-app-advanced` template, which already incorporates the necessary bower handling. ```Bash composer create-project --prefer-dist yidas/yii2-app-advanced ``` -------------------------------- ### Troubleshoot Composer Update with Bower Issues Source: https://github.com/yidas/yii2-composer-bower-skip/blob/master/README.md Provides commands to resolve persistent bower issues during `composer update` by globally removing the `fxp/composer-asset-plugin` and then running `composer update` again. ```Bash composer global remove fxp/composer-asset-plugin composer update ``` -------------------------------- ### Require yidas/yii2-composer-bower-skip in composer.json Source: https://github.com/yidas/yii2-composer-bower-skip/blob/master/README.md Adds the `yidas/yii2-composer-bower-skip` package to the project's dependencies in the `composer.json` file. It should be listed before `yiisoft/yii2`. ```JSON "require": { "php": ">=5.4.0", "yidas/yii2-composer-bower-skip": "~2.0.5", "yiisoft/yii2": "~2.0.5", "yiisoft/yii2-bootstrap": "~2.0.0" } ``` -------------------------------- ### Keep vendor/bower in Git Ignore Source: https://github.com/yidas/yii2-composer-bower-skip/blob/master/README.md Shows how to configure the `.gitignore` file to ignore the entire `vendor` directory except for the `vendor/bower` subdirectory, allowing you to keep the bower vendor files under version control. ```Gitignore # composer vendor dir /vendor/* !/vendor/bower ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.