Skip to content

Commit

Permalink
Add support for yiisoft/assets ^3.0 +Fixed publish options in ass…
Browse files Browse the repository at this point in the history
…ets (#81)

Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
  • Loading branch information
dependabot[bot] and vjik committed Feb 11, 2023
1 parent 8c9e205 commit 4d75065
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 44 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Expand Up @@ -2,9 +2,11 @@

## 1.0.1 under development

- Chg #64: Adopt configuration to changes in `yiisoft/form` (vjik)
- Chg: Allow yiisoft/arrays ^3.0 (samdark)
- Chg: Allow yiisoft/html ^3.0 (samdark)
- Chg #64: Adapt configuration to changes in `yiisoft/form` (@vjik)
- Enh: Allow `yiisoft/arrays` ^3.0 (@samdark)
- Enh: Allow `yiisoft/html` ^3.0 (@samdark)
- Enh #81: Add support for `yiisoft/assets` version `^3.0` (@vjik)
- Bug #81: Fixed publish options in assets (@vjik)
- Chg #79: Raise version PHP 8.0, adopt last change `yiisoft/widget` (@terabytesoftw)

## 1.0.0 April 01, 2022
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -20,7 +20,7 @@
"require": {
"php": "^8.0",
"yiisoft/arrays": "^2.0|^3.0",
"yiisoft/assets": "^2.0",
"yiisoft/assets": "^2.0|^3.0",
"yiisoft/html": "^2.0|^3.0",
"yiisoft/widget": "^2.0"
},
Expand Down
12 changes: 7 additions & 5 deletions src/Asset/BulmaAsset.php
Expand Up @@ -5,6 +5,7 @@
namespace Yiisoft\Yii\Bulma\Asset;

use Yiisoft\Assets\AssetBundle;
use Yiisoft\Files\PathMatcher\PathMatcher;

final class BulmaAsset extends AssetBundle
{
Expand All @@ -16,9 +17,10 @@ final class BulmaAsset extends AssetBundle
'css/bulma.css',
];

public array $publishOptions = [
'only' => [
'css/bulma.css',
],
];
public function __construct()
{
$this->publishOptions = [
'filter' => (new PathMatcher())->only('css/bulma.css'),
];
}
}
12 changes: 7 additions & 5 deletions src/Asset/BulmaHelpersAsset.php
Expand Up @@ -5,6 +5,7 @@
namespace Yiisoft\Yii\Bulma\Asset;

use Yiisoft\Assets\AssetBundle;
use Yiisoft\Files\PathMatcher\PathMatcher;

final class BulmaHelpersAsset extends AssetBundle
{
Expand All @@ -16,9 +17,10 @@ final class BulmaHelpersAsset extends AssetBundle
'bulma-helpers.css',
];

public array $publishOptions = [
'only' => [
'bulma-helpers.css',
],
];
public function __construct()
{
$this->publishOptions = [
'filter' => (new PathMatcher())->only('bulma-helpers.css'),
];
}
}
12 changes: 7 additions & 5 deletions src/Asset/BulmaJsAsset.php
Expand Up @@ -5,6 +5,7 @@
namespace Yiisoft\Yii\Bulma\Asset;

use Yiisoft\Assets\AssetBundle;
use Yiisoft\Files\PathMatcher\PathMatcher;

final class BulmaJsAsset extends AssetBundle
{
Expand All @@ -16,9 +17,10 @@ final class BulmaJsAsset extends AssetBundle
'dist/bulma.js',
];

public array $publishOptions = [
'only' => [
'dist/bulma.js',
],
];
public function __construct()
{
$this->publishOptions = [
'filter' => (new PathMatcher())->only('dist/bulma.js'),
];
}
}
12 changes: 7 additions & 5 deletions src/Asset/DropdownAsset.php
Expand Up @@ -5,6 +5,7 @@
namespace Yiisoft\Yii\Bulma\Asset;

use Yiisoft\Assets\AssetBundle;
use Yiisoft\Files\PathMatcher\PathMatcher;

final class DropdownAsset extends AssetBundle
{
Expand All @@ -16,9 +17,10 @@ final class DropdownAsset extends AssetBundle
'dist/dropdown.js',
];

public array $publishOptions = [
'only' => [
'dist/dropdown.js',
],
];
public function __construct()
{
$this->publishOptions = [
'filter' => (new PathMatcher())->only('dist/dropdown.js'),
];
}
}
12 changes: 7 additions & 5 deletions src/Asset/FilePluginAsset.php
Expand Up @@ -5,6 +5,7 @@
namespace Yiisoft\Yii\Bulma\Asset;

use Yiisoft\Assets\AssetBundle;
use Yiisoft\Files\PathMatcher\PathMatcher;

final class FilePluginAsset extends AssetBundle
{
Expand All @@ -16,9 +17,10 @@ final class FilePluginAsset extends AssetBundle
'dist/file.js',
];

public array $publishOptions = [
'only' => [
'dist/file.js',
],
];
public function __construct()
{
$this->publishOptions = [
'filter' => (new PathMatcher())->only('dist/file.js'),
];
}
}
12 changes: 7 additions & 5 deletions src/Asset/MessagePluginAsset.php
Expand Up @@ -5,6 +5,7 @@
namespace Yiisoft\Yii\Bulma\Asset;

use Yiisoft\Assets\AssetBundle;
use Yiisoft\Files\PathMatcher\PathMatcher;

final class MessagePluginAsset extends AssetBundle
{
Expand All @@ -16,9 +17,10 @@ final class MessagePluginAsset extends AssetBundle
'dist/message.js',
];

public array $publishOptions = [
'only' => [
'dist/message.js',
],
];
public function __construct()
{
$this->publishOptions = [
'filter' => (new PathMatcher())->only('dist/message.js'),
];
}
}
12 changes: 7 additions & 5 deletions src/Asset/NavBarAsset.php
Expand Up @@ -5,6 +5,7 @@
namespace Yiisoft\Yii\Bulma\Asset;

use Yiisoft\Assets\AssetBundle;
use Yiisoft\Files\PathMatcher\PathMatcher;

final class NavBarAsset extends AssetBundle
{
Expand All @@ -16,9 +17,10 @@ final class NavBarAsset extends AssetBundle
'dist/navbar.js',
];

public array $publishOptions = [
'only' => [
'dist/navbar.js',
],
];
public function __construct()
{
$this->publishOptions = [
'filter' => (new PathMatcher())->only('dist/navbar.js'),
];
}
}
12 changes: 7 additions & 5 deletions src/Asset/PanelAsset.php
Expand Up @@ -5,6 +5,7 @@
namespace Yiisoft\Yii\Bulma\Asset;

use Yiisoft\Assets\AssetBundle;
use Yiisoft\Files\PathMatcher\PathMatcher;

final class PanelAsset extends AssetBundle
{
Expand All @@ -16,9 +17,10 @@ final class PanelAsset extends AssetBundle
'dist/panel.js',
];

public array $publishOptions = [
'only' => [
'dist/panel.js',
],
];
public function __construct()
{
$this->publishOptions = [
'filter' => (new PathMatcher())->only('dist/panel.js'),
];
}
}

0 comments on commit 4d75065

Please sign in to comment.