Skip to content

Instantly share code, notes, and snippets.

@s10mcow
Created October 7, 2015 08:50
Show Gist options
  • Save s10mcow/d9144656f6b97bd34749 to your computer and use it in GitHub Desktop.
Save s10mcow/d9144656f6b97bd34749 to your computer and use it in GitHub Desktop.
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var wrench = require('wrench');
var options = {
src: 'src',
dist: 'dist',
tmp: '.tmp',
styles: 'styles',
errorHandler: function (title) {
return function (err) {
gutil.log(gutil.colors.red('[' + title + ']'), err.toString());
this.emit('end');
};
},
wiredep: {
directory: 'src/bower_components'
}
};
wrench.readdirSyncRecursive('./gulp').filter(function (file) {
return (/\.(js|coffee)$/i).test(file);
}).map(function (file) {
require('./gulp/' + file)(options);
});
gulp.task('default', ['clean'], function () {
gulp.start('build');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment