<commit_before>var through = require("through2"),
	gutil = require("gulp-util");

module.exports = function (param) {
	"use strict";

	// if necessary check for required param(s), e.g. options hash, etc.
	if (!param) {
		throw new gutil.PluginError("gulp-laravel-elixir-livereload", "No param supplied");
	}

	// see "Writing a plugin"
	// https://github.com/gulpjs/gulp/blob/master/docs/writing-a-plugin/README.md
	function laravelElixirLivereload(file, enc, callback) {
		/*jshint validthis:true*/

		// Do nothing if no contents
		if (file.isNull()) {
			this.push(file);
			return callback();
		}

		if (file.isStream()) {

			// http://nodejs.org/api/stream.html
			// http://nodejs.org/api/child_process.html
			// https://github.com/dominictarr/event-stream

			// accepting streams is optional
			this.emit("error",
				new gutil.PluginError("gulp-laravel-elixir-livereload", "Stream content is not supported"));
			return callback();
		}

		// check if file.contents is a `Buffer`
		if (file.isBuffer()) {

			// manipulate buffer in some way
			// http://nodejs.org/api/buffer.html
			file.contents = new Buffer(String(file.contents) + "\n" + param);

			this.push(file);

		}
		return callback();
	}

	return through.obj(laravelElixirLivereload);
};<commit_msg>Updated index.js with main elixer extend command for livereload.<commit_after>var gulp = require('gulp'),
    elixir = require('laravel-elixir'),
    utilities = require('laravel-elixir/ingredients/commands/Utilities'),
    notifications = require('laravel-elixir/ingredients/commands/Notification'),
    livereload = require('gulp-livereload');

elixir.extend('livereload', function(src, output) {

    gulp.task('livereload', function() {
        livereload.listen();
        gulp.on('stop', function(){
            livereload();
        });
    });

    this.registerWatcher('livereload');

    return this.queueTask('livereload');

});
{'fraction_non_alphanumeric': 0.1575091575091575, 'fraction_numerical': 0.0005232862375719519, 'mean_word_length': 3.5415676959619953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '269702', 'n_tokens_mistral': 679, 'n_tokens_neox': 609, 'n_words': 123}