E
E
Evgeny_Shestakov2015-10-20 15:02:52
Yii
Evgeny_Shestakov, 2015-10-20 15:02:52

Why js and css files are not downloaded when installing the package?

1) I'm trying to install the 2amigos/yii2-file-upload-widget package - there are no js files in the repository, the package itself is installed, but the scripts are not published (obviously because they are not downloaded), perhaps there is an indication in the dependencies to install js packages. Am I doing something wrong, or is there a problem with the repository? 2) and do I understand correctly that the composer in Yii2 can take into account dependencies for js packages managed by bower via the fxp/composer-asset-plugin:~1.0.3 package?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim Stepanov, 2015-10-22
@Vdm17

See https: //github.com/2amigos/yii2-file-upload-widget ...
There is one dependency on the bower package - blueimp-file-upload.
If you installed fxp/composer-asset-plugin correctly (composer global install "fxp/composer-asset-plugin:~1.0.3") then there shouldn't be any problems.

E
EVMI, 2016-03-07
@EVMI

I had a similar problem, need to update. Run:
$ composer selfupdate
$ composer global update --no-plugins
$ composer global require fxp/composer-asset-plugin:"^1.1.0" --no-plugins
$composer update
After these steps, dependencies will be pulled up

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question