Browse Source

Use explicit Bower publishing

Jeffrey Way 10 years ago
parent
commit
b225276a7a
2 changed files with 10 additions and 6 deletions
  1. 1 4
      .bowerrc
  2. 9 2
      gulpfile.js

+ 1 - 4
.bowerrc

@@ -1,6 +1,3 @@
 {
-  "directory": "vendor/bower_components",
-  "scripts": {
-    "postinstall": "gulp publish"
-  }
+  "directory": "vendor/bower_components"
 }

+ 9 - 2
gulpfile.js

@@ -12,7 +12,14 @@ var elixir = require('laravel-elixir');
  */
 
 elixir(function(mix) {
-    mix.sass("app.scss")
+    mix.sass('app.scss')
        .phpUnit()
-       .publish("vendor/bower_components");
+       .publish(
+            'jquery/dist/jquery.min.js',
+            'public/js/vendor/jquery.js'
+        )
+       .publish(
+            'bootstrap-sass-official/assets/javascripts/bootstrap.js',
+            'public/js/vendor/bootstrap.js'
+        );
 });