File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 71
71
]
72
72
</code></pre>
73
73
74
+ <h1>Yii2</h1>
75
+
76
+ <p>Yii2 expects Bower and NPM packages to be installed to <code>vendor/bower</code> and <code>vendor/npm</code> folders respectively.</p>
77
+
78
+ <p>So, to use asset-packagist for Yii2 projects it's necessary to reassign Bower and NPM aliases in your application config like this:</p>
79
+
80
+ <pre><code>
81
+ $config = [
82
+ ...
83
+ 'aliases' => [
84
+ '@bower' => '@vendor/bower-asset',
85
+ '@npm' => '@vendor/npm-asset',
86
+ ],
87
+ ...
88
+ ];
89
+ </code></pre>
90
+
74
91
<h1>Acknowledgements</h1>
75
92
76
93
<p>This project uses Francois Pluchino's <a href="https://github.com/francoispluchino/composer-asset-plugin">composer-asset-plugin</a> to convert Bower and NPM packages to Composer format.</p>
You can’t perform that action at this time.
0 commit comments