diff --git a/assets/SlickAssets.php b/assets/SlickAssets.php index a381a0c..f6e4b83 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-carousel'; 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 +} 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 +} 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" - } -}