UNPKG

gulp-lib-generator

Version:

A Gulp task that creates a mass exports file from directory that contain exported vars, functions, etc. Great for use with frameworks!

10 lines (6 loc) 204 B
const path = require('path'); function createRelativePath(...paths) { const mappedPaths = paths.map(p => path.basename(p)); return path.join(...mappedPaths); } module.exports = createRelativePath;