Skip to content

Commit

Permalink
Use yii2-extensions/asset-bootstrap5. (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw authored Nov 17, 2023
1 parent 1354f30 commit 92da851
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 75 deletions.
17 changes: 15 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"prefer-stable": true,
"require": {
"php": ">=8.1",
"npm-asset/bootstrap": "^5.3",
"oomphinc/composer-installers-extender": "^2.0",
"yii2-extensions/asset-bootstrap5": "dev-main",
"yiisoft/yii2": "^2.2"
},
"require-dev": {
Expand All @@ -38,12 +39,24 @@
},
"config-plugin": {
"yii2-bootstrap5": "extension.php"
},
"installer-types": [
"bower-asset",
"npm-asset"
],
"installer-paths": {
"./node_modules/{$name}": [
"type:bower-asset",
"type:npm-asset"
]
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"yiisoft/yii2-composer": true
"yiisoft/yii2-composer": true,
"composer/installers": true,
"oomphinc/composer-installers-extender": true
}
},
"scripts": {
Expand Down
32 changes: 0 additions & 32 deletions src/BootstrapAsset.php

This file was deleted.

39 changes: 0 additions & 39 deletions src/BootstrapPluginAsset.php

This file was deleted.

1 change: 1 addition & 0 deletions src/BootstrapWidgetTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace yii\bootstrap5;

use Yii2\Asset\BootstrapPluginAsset;
use yii\base\InvalidConfigException;
use yii\helpers\Json;

Expand Down
1 change: 1 addition & 0 deletions src/ButtonGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace yii\bootstrap5;

use Throwable;
use Yii2\Asset\BootstrapAsset;
use yii\helpers\ArrayHelper;

use function implode;
Expand Down
1 change: 1 addition & 0 deletions src/ButtonToolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace yii\bootstrap5;

use Throwable;
use Yii2\Asset\BootstrapAsset;

use function implode;
use function is_array;
Expand Down
1 change: 1 addition & 0 deletions src/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use Exception;
use Throwable;
use Yii2\Asset\BootstrapPluginAsset;
use yii\base\InvalidConfigException;
use yii\helpers\ArrayHelper;

Expand Down
1 change: 1 addition & 0 deletions src/Nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Exception;
use Throwable;
use Yii;
use Yii2\Asset\BootstrapAsset;
use yii\base\InvalidConfigException;
use yii\helpers\ArrayHelper;

Expand Down
1 change: 1 addition & 0 deletions src/NavBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace yii\bootstrap5;

use Yii;
use Yii2\Asset\BootstrapPluginAsset;
use yii\helpers\ArrayHelper;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Progress.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace yii\bootstrap5;

use Exception;
use Yii2\Asset\BootstrapAsset;
use yii\base\InvalidConfigException;
use yii\helpers\ArrayHelper;

Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ protected function mockWebApplication(array $config = [], string $appClass = '\y
'vendorPath' => dirname(__DIR__) . '/vendor',
'language' => 'en-US',
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
'@bower' => dirname(__DIR__) . '/node_modules',
'@npm' => dirname(__DIR__) . '/node_modules',
],
'components' => [
'i18n' => [
Expand Down

0 comments on commit 92da851

Please sign in to comment.