Answer the question
In order to leave comments, you need to log in
How to run composer create-project instead of composer-install or run post-create-project-cmd?
There is a ready project on Yii2, I installed it via git. Launched composer install
and received, for example, bower-asset folder in vendor instead of bower .
Composer has this section:
"scripts": {
"post-create-project-cmd": [
"yii\\composer\\Installer::postCreateProject"
]
},
"extra": {
"yii\\composer\\Installer::postCreateProject": {
"setPermission": [
{
"runtime": "0777",
"web/assets": "0777",
"yii": "0755"
}
],
"generateCookieValidationKey": [
"config/web.php"
]
},
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
}
composer create-project
and doesn't work with composer install
. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question