Skip to content

Commit

Permalink
Merge pull request #30 from edgardmessias/patch-1
Browse files Browse the repository at this point in the history
Added package type
  • Loading branch information
SilverFire committed Apr 24, 2017
2 parents bb771de + de93971 commit 5a70619
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/models/AssetPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ public function prepareReleases($repository)
'uid' => $this->prepareUid($version),
'name' => $this->getNormalName(),
'version' => $version,
'type' => $this->getType() . '-asset,
];
if ($require) {
$release['require'] = $require;
Expand Down
10 changes: 5 additions & 5 deletions src/views/site/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"uid": 1000600,
"name": "bower-asset/moment",
"version": "2.13.0.0",
"type": "bower-asset",
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/moment/moment/zipball/d6651c21c6131fbb5db891b60971357739015688",
Expand All @@ -48,18 +49,17 @@
<p>Asset Packagist is NOT a plugin so it can't affect where the package will be installed.<br>
By default <code>bower-asset/bootstrap</code> package will be installed to <code>vendor/bower-asset/bootstrap</code> folder.</p>

<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>
<p>But you can achieve installing to custom path with <code><a href="https://github.com/composer/installers">composer/installers</a></code> plugin like this:</p>
<pre><code>
"require": {
"oomphinc/composer-installers-extender": "*",
"composer/installers": "~1.0",
"bower-asset/bootstrap": "^3.3",
"npm-asset/jquery": "^2.2"
},
"extra": {
"installer-types": ["library"],
"installer-paths": {
"public/assets/bower/{$name}/": ["bower-asset/bootstrap"],
"public/assets/npm/{$name}/": ["npm-asset/jquery"]
"public/assets/bower/{$name}/": ["type:bower-asset"],
"public/assets/npm/{$name}/": ["type:npm-asset"]
}
},
"repositories": [
Expand Down

0 comments on commit 5a70619

Please sign in to comment.