Vendorman is a small helper. It helps you to install dependencies for small websites and assists in providing your build tools with all paths. Install via npm install vendorman -g
-
vendorman add <packages...>
Add a dependency - usesnpm install
-
vendorman remove <packages...>
Remove a dependency - usesnpm remove
-
vendorman list
List dependencies -
vendorman file <package> <files...>
Adds or deletes (-d) the given filepaths from the given package
Small websites often need standard libraries like jQuery. Integrating these in your build task can be tedious. Vendorman provies an easy to use command line interface to integrate these dependencies in you build task.
Vendorman by default returns the main package file. For basic frontend-vendors this is usally the right one. Filepaths can be added or removed with the vendorman file <package> <files...>
command.
const vendorman = require('vendorman');
// Returns an array with all vendor files
vendorman.all();
// Returns the vendor files of the given package
vendorman.package('jquery');
const gulp = require('gulp');
const vendorman = require('vendorman');
gulp.task('vendor', function() {
return gulp.src(vendorman.all())
.pipe(gulp.dest('./vendors/'));
});