ck86 / gulp-bower-files

Build gulp.src() of your bower packages main files.
80 stars 13 forks source link

"Missing positive glob" even though bower.json contains dependencies #34

Closed bildlich closed 10 years ago

bildlich commented 10 years ago

Gulp says

'bower-files' errored after 1.87 ms Missing positive glob

even though my bower.json does contain dependencies.

Here's the bower.json:

{
  "name": "myProject",
  "private": true,
  "dependencies": {
    "jquery.kinetic": "~2.0.1"
  },
  "devDependencies": {}
}

Here's the Gulp Task:


gulp.task("bower-files", function(){
    gulpBowerFiles()
      .pipe(gulp.dest("assets/scripts"));
});

Am I missing something here?

ck86 commented 10 years ago

Can you enable debugging and paste the output?

gulp.task("bower-files", function(){
    gulpBowerFiles({ debugging: true })
      .pipe(gulp.dest("assets/scripts"));
});
bildlich commented 10 years ago
[gulp] PackageCollection add         jquery.kinetic bower_components/jquery.kinetic
[gulp] 'bower-files' errored after 2.53 ms Missing positive glob
ck86 commented 10 years ago

The jquery.kinetic package has no main file defined, you have to add it in the overrides section:

{
  "name": "myProject",
  "private": true,
  "dependencies": {
    "jquery.kinetic": "~2.0.1"
  },
  "devDependencies": {},
  "overrides": {
    "jquery.kinetic": {
      "main": "jquery.kinetic.js"
    }
  }
}

It seems that the maintainer added the bower.json after the v2.0.1 release.

bildlich commented 10 years ago

This was it. Thanks!