0

Previously, We use wiredep to get all dependency lib's main file path in bower.json, and then concat all 3-rd party files as vendor.js.

var wiredep = require('wiredep');
// concatenate and minify vendor sources

gulp.task('vendor', function () {
  var vendorFiles = wiredep().js;

  return gulp.src(vendorFiles)
    .pipe(plugins.concat('vendor.js'))
    .pipe(gulp.dest(targetDir))

    .on('error', errorHandler);
});

Now, we want to use npm as package manager, is there a replacement of wiredep?

Leon
  • 1,935
  • 3
  • 23
  • 36

1 Answers1

-1

As pointed in this answer you can use Browserify for that :)

Community
  • 1
  • 1
hsbrighenti
  • 59
  • 1
  • 5
  • Yeah,I know that,but my project architectural is ready with bower.json, i just want to move from bower to npm. If use browerify or webpack, we need do lots of works – Leon Aug 19 '16 at 01:20