Skip to content

Commit a607125

Browse files
committed
added Installing to a custom path manual
1 parent e3cb136 commit a607125

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: src/views/site/about.php

+27
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,33 @@
4444

4545
<p>All the JSON files are stored and served as static files on Asset Packagist side and composer effectively cashes those files on your side so everything works as quick as possible.</p>
4646

47+
<h1>Installing to a custom path</h1>
48+
49+
<p>Asset Packagist is NOT a plugin so it can't affect where the package will be installed.<br>
50+
By default <code>bower-asset/bootstrap</code> package will be installed to <code>vendor/bower-asset/bootstrap</code> folder.</p>
51+
52+
<p>But you can achieve installing to custom path with <code><a href="https://github.com/oomphinc/composer-installers-extender">oomphinc/composer-installers-extender</a></code> plugin like this:</p>
53+
<pre><code>
54+
"require": {
55+
"oomphinc/composer-installers-extender": "*",
56+
"bower-asset/bootstrap": "^3.3",
57+
"npm-asset/jquery": "^2.2"
58+
},
59+
"extra": {
60+
"installer-types": ["library"],
61+
"installer-paths": {
62+
"public/assets/bower/{$name}/": ["bower-asset/bootstrap"],
63+
"public/assets/npm/{$name}/": ["npm-asset/jquery"]
64+
}
65+
},
66+
"repositories": [
67+
{
68+
"type": "composer",
69+
"url": "https://asset-packagist.org"
70+
}
71+
]
72+
</code></pre>
73+
4774
<h1>Acknowledgements</h1>
4875

4976
<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>

0 commit comments

Comments
 (0)