Created
October 7, 2015 08:50
-
-
Save s10mcow/d9144656f6b97bd34749 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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