// grab our gulp packages
var gulp  = require('gulp');
var gutil = require('gulp-util');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename')
var concat = require('gulp-concat');

gulp.task('concat', function() {
  return gulp.src(['bliss.shy.js', 'bliss._.js'])
	.pipe(concat('bliss.js'))
	.pipe(gulp.dest('.'));
});

gulp.task('minify', ['concat'], function() {
	var u = uglify();
	u.on('error', function(error){
		console.error(error);
		u.end();
	});

	return gulp.src(['bliss.shy.js', 'bliss.js'])
	.pipe(u)
	.pipe(rename({ suffix: '.min' }))
	.pipe(gulp.dest('.'))
	
});

gulp.task('watch', function() {
	gulp.watch(["*.js"], ['concat', 'minify']);
});

gulp.task('default', ['concat', 'minify']);
// grab our gulp packages
var gulp  = require("gulp");
var gutil = require("gulp-util");
var uglify = require("gulp-uglify");
var rename = require("gulp-rename");
var concat = require("gulp-concat");

gulp.task("concat", function() {
  return gulp.src(["bliss.shy.js", "bliss._.js"])
	.pipe(concat("bliss.js"))
	.pipe(gulp.dest("."));
});

gulp.task("minify", ["concat"], function() {
	var u = uglify();
	u.on("error", function(error) {
		console.error(error);
		u.end();
	});

	return gulp.src(["bliss.shy.js", "bliss.js"])
	.pipe(u)
	.pipe(rename({ suffix: ".min" }))
	.pipe(gulp.dest("."));
});

gulp.task("watch", function() {
	gulp.watch(["*.js", "!bliss.js", "!*.min.js"], ["concat", "minify"]);
});

gulp.task("default", ["concat", "minify"]);

Fix guloop (gulp loop ;), align gulpfile with ESLint rules