From 891d856e994438dc7308f83da202ad506a53d5ed Mon Sep 17 00:00:00 2001 From: kriss <462679766@qq.com> Date: Fri, 17 Aug 2018 10:57:34 +0800 Subject: [PATCH 1/2] use npm asset bower is maintained and slow --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index decb92a..a245a9b 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ }, "require": { "yiisoft/yii2": "*", - "bower-asset/echarts": "*" + "npm-asset/echarts": "*" }, "autoload": { "psr-4": { From 8aa5547f683d1f565ac359c6003bb02268f66c79 Mon Sep 17 00:00:00 2001 From: kriss <462679766@qq.com> Date: Fri, 17 Aug 2018 13:11:29 +0800 Subject: [PATCH 2/2] fix bower to npm --- src/EChartsAsset.php | 2 +- src/MapAsset.php | 2 +- src/ThemeAsset.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EChartsAsset.php b/src/EChartsAsset.php index d04805d..5c3d6fd 100644 --- a/src/EChartsAsset.php +++ b/src/EChartsAsset.php @@ -19,7 +19,7 @@ class EChartsAsset extends AssetBundle /** * @inheritdoc */ - public $sourcePath = '@bower/echarts/dist'; + public $sourcePath = '@npm/echarts/dist'; /** * Initializes the bundle. diff --git a/src/MapAsset.php b/src/MapAsset.php index 46e1af6..7e43675 100644 --- a/src/MapAsset.php +++ b/src/MapAsset.php @@ -15,7 +15,7 @@ */ class MapAsset extends AssetBundle { - public $sourcePath = '@bower/echarts/map'; + public $sourcePath = '@npm/echarts/map'; public $depends = [ 'daixianceng\echarts\EChartsAsset', diff --git a/src/ThemeAsset.php b/src/ThemeAsset.php index 51a4147..a0947fd 100644 --- a/src/ThemeAsset.php +++ b/src/ThemeAsset.php @@ -15,7 +15,7 @@ */ class ThemeAsset extends AssetBundle { - public $sourcePath = '@bower/echarts/theme'; + public $sourcePath = '@npm/echarts/theme'; public $depends = [ 'daixianceng\echarts\EChartsAsset',