Skip to content

Commit 9f7d0b6

Browse files
committed
+ hisite-web extension config
1 parent cf2d54d commit 9f7d0b6

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
"hiqdev\\assetpackagist\\": "src"
5656
}
5757
},
58+
"extra": {
59+
"extension-plugin": {
60+
"hisite-web": "src/config/hisite-web.php"
61+
}
62+
},
5863
"repositories": [
5964
{
6065
"type": "composer",

src/config/hisite-web.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
3+
/*
4+
* asset-packagist.hiqdev.com
5+
*
6+
* @link http://asset-packagist.hiqdev.com/
7+
* @package asset-packagist.hiqdev.com
8+
* @license BSD-3-Clause
9+
* @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10+
*/
11+
12+
return [
13+
'id' => 'asset-packagist',
14+
'name' => 'Asset Packagist',
15+
'basePath' => __DIR__,
16+
'vendorPath' => '<base-dir>/vendor',
17+
'runtimePath' => '<base-dir>/runtime',
18+
'controllerNamespace' => 'hiqdev\assetpackagist\controllers',
19+
'bootstrap' => ['log'],
20+
'aliases' => [
21+
'@storage' => '<base-dir>/web',
22+
'@npm' => '@vendor/npm-asset',
23+
'@bower' => '@vendor/bower-asset',
24+
],
25+
'components' => [
26+
'log' => [
27+
'traceLevel' => 0,
28+
'targets' => [
29+
'default' => [
30+
'class' => 'yii\log\FileTarget',
31+
'levels' => ['error', 'warning'],
32+
],
33+
],
34+
],
35+
],
36+
'modules' => [],
37+
];

0 commit comments

Comments
 (0)