src/index.js
function gulpHolograph () {

  return through.obj(function (file, encoding, cb) {

    // Handle any non-supported types.
    // This covers directories and symlinks as well, as they have to be null.
    if (file.isNull()) {
      this.emit('error', new PluginError(PLUGIN_NAME, 'No file contents.'));
    }

    // Handle buffers.
    if (file.isBuffer()) {
      handleBuffer(file, encoding, cb);
    }

    // Handle streams.
    if (file.isStream()) {
      handleStream(file, encoding, cb);
    }

  });

}
function gulpHolograph () {

  return through.obj(function (file, encoding, cb) {

    // Handle any non-supported types.
    // This covers directories and symlinks as well, as they have to be null.
    if (file.isNull()) {
      this.emit('error', new PluginError(PLUGIN_NAME, 'No file contents.'));
    }

    // Handle buffers.
    if (file.isBuffer()) {
      handleBuffer(file, encoding, cb);
    }

    // Handle streams.
    if (file.isStream()) {
      handleStream(file, encoding, cb);
    }

  });

}
function gulpHolograph ( ) { return through . obj ( function ( file , encoding , cb ) { // Handle any non-supported types. // This covers directories and symlinks as well, as they have to be null. if ( file . isNull ( ) ) { this . emit ( 'error' , new PluginError ( PLUGIN_NAME , 'No file contents.' ) ) ; } // Handle buffers. if ( file . isBuffer ( ) ) { handleBuffer ( file , encoding , cb ) ; } // Handle streams. if ( file . isStream ( ) ) { handleStream ( file , encoding , cb ) ; } } ) ; }
The actual plugin. Runs Holograph with a provided config file.

@returns {Object} A through2 stream.
The actual plugin . Runs Holograph with a provided config file .