Skip to content

Instantly share code, notes, and snippets.

// initial utilities
var gutil = require('gulp-util'); // tools to help, e.g. detect env, colour our output + logging
var changeEvent = function(evt) {
// log
gutil.log('File', gutil.colors.cyan(evt.path.replace(new RegExp('/.*(?=/' + paths.appSrc + ')/'), '')), 'was', gutil.colors.magenta(evt.type));
};
require('autostrip-json-comments'); // https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaGSr
// 'development' is just default, production overrides are triggered by adding the production flag to the gulp command e.g. `gulp build --production`