utils js class

I’ve been trying to get some code of the ground for so long now, I’ve decided to log the small progress I’ve made here – then I won’t lose it again & again & again.

   // set up the utils class
   var utils = {
     test: function(){
       console.log("This is a test for the IIFE");

   // execute the test()


This won’t mean very much to anybody but me, but coupled with some tidy gulpfile.js this can become the backbone of some rather rapid and joyful coding experiences (IMHO).

var gulp = require('gulp');
var sass = require('gulp-sass');
//  compile the scss
gulp.task('sass', function () {
  return gulp.src('./sass/**/*.scss')
    .pipe(sass.sync({outputStyle: 'compressed'}).on('error', sass.logError))
//  watch for scss changes
gulp.task('sass:watch', function () {
  gulp.watch('./sass/**/*.scss', ['sass']);
//	Default task
gulp.task('default', ['sass:watch']);