lib/gulp-import-tasks.js
function registerTask(file, options) {
  const task = require(file.path);
  const taskName = path.basename(file.path, file.ext);
  const taskObject = parseTaskObject(task, options);

  // Register this task with Gulp.
  gulp.task.call(gulp, taskName, taskObject);

  debug(`registered "${taskName}" task`);
}
function registerTask(file, options) {
  const task = require(file.path);
  const taskName = path.basename(file.path, file.ext);
  const taskObject = parseTaskObject(task, options);

  // Register this task with Gulp.
  gulp.task.call(gulp, taskName, taskObject);

  debug(`registered "${taskName}" task`);
}
function registerTask ( file , options ) { const task = require ( file . path ) ; const taskName = path . basename ( file . path , file . ext ) ; const taskObject = parseTaskObject ( task , options ) ; // Register this task with Gulp. gulp . task . call ( gulp , taskName , taskObject ) ; debug ( ` ${ taskName } ` ) ; }
Registers a Gulp task given a file and a set of options.

@param {Object} file
@param {Object} options
Registers a Gulp task given a file and a set of options .