From 3b59966ce8ecb981f6bb1f0584e2c139f3525498 Mon Sep 17 00:00:00 2001 From: Insolita Date: Fri, 7 Nov 2014 09:41:22 +0800 Subject: [PATCH 1/4] Delete bower.json --- web/bower.json | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 web/bower.json diff --git a/web/bower.json b/web/bower.json deleted file mode 100644 index 4643d46..0000000 --- a/web/bower.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "yii2-slick", - "version": "0.0.1", - "authors": [ - "DrMabuse " - ], - "license": "MIT", - "homepage": "pascal-brewing.de", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "test", - "tests" - ], - "dependencies": { - "slick-carousel": "~1.3.1" - } -} From eb75ccfec53caba13b207f12b1afc06e581f36b1 Mon Sep 17 00:00:00 2001 From: Insolita Date: Fri, 7 Nov 2014 09:43:33 +0800 Subject: [PATCH 2/4] Update composer.json --- composer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c572178..453e72f 100644 --- a/composer.json +++ b/composer.json @@ -11,9 +11,12 @@ "email": "pascalbrewing@gmail.com" } ], + "require":{ + "bower-asset/slick-carousel":"@stable" + }, "autoload": { "psr-4": { "drmabuse\\slick\\": "" } } -} \ No newline at end of file +} From e7529b593b770aaf3beae978631192a420df8356 Mon Sep 17 00:00:00 2001 From: Insolita Date: Fri, 7 Nov 2014 09:45:22 +0800 Subject: [PATCH 3/4] Update SlickAssets.php --- assets/SlickAssets.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/SlickAssets.php b/assets/SlickAssets.php index a381a0c..ea874a5 100644 --- a/assets/SlickAssets.php +++ b/assets/SlickAssets.php @@ -35,12 +35,12 @@ */ class SlickAssets extends AssetBundle{ - public $sourcePath = '@drmabuse/slick/web/'; + public $sourcePath = '@bower/slick'; public $css = [ - 'bower_components/slick-carousel/slick/slick.css' + 'slick/slick.css' ]; public $js = [ - "bower_components/slick-carousel/slick/slick.min.js", + "slick/slick.min.js", ]; public $depends = [ @@ -53,4 +53,4 @@ class SlickAssets extends AssetBundle{ public $publishOptions = [ 'forceCopy' => true ]; -} \ No newline at end of file +} From 6f38ccf8ac9ea822b95904cc5ea94c4e122448f1 Mon Sep 17 00:00:00 2001 From: Insolita Date: Fri, 7 Nov 2014 09:48:37 +0800 Subject: [PATCH 4/4] Update SlickAssets.php --- assets/SlickAssets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/SlickAssets.php b/assets/SlickAssets.php index ea874a5..f6e4b83 100644 --- a/assets/SlickAssets.php +++ b/assets/SlickAssets.php @@ -35,7 +35,7 @@ */ class SlickAssets extends AssetBundle{ - public $sourcePath = '@bower/slick'; + public $sourcePath = '@bower/slick-carousel'; public $css = [ 'slick/slick.css' ];