gulpwiredep

wiredep gulp, file order


I'm looking a simple way to pass the option files to wiredep that allows me to set jquery on top of angular, so far, it is working by dependencies, there fore it set jquery at bottom.

I'm passing as options:

var options = {
  bowerJson: require('./bower.json'),
  directory: './bower_components/',
  ignorePath: '../..'
};

devDependencies is set to True, I cannot find any parameter in the documentation that allow to me to do


Solution

  • I've ended up declaring these explicitly like:

    var options = [
            'css/component*.css',
            'css/global.css',
            'css/main-custom.css'
        ]
    

    and passing this to gulp pipe like

    gulp.src("/*.html").pipe(options)....