blur-admin/gulpfile.js

24 lines
522 B
JavaScript
Raw Normal View History

2015-12-10 16:22:20 +00:00
'use strict';
2015-09-09 08:38:46 +00:00
2015-12-10 16:22:20 +00:00
var gulp = require('gulp');
var wrench = require('wrench');
2015-09-09 08:38:46 +00:00
2015-12-10 16:22:20 +00:00
/**
* This will load all js or coffee files in the gulp directory
* in order to load all gulp tasks
*/
wrench.readdirSyncRecursive('./gulp').filter(function(file) {
return (/\.(js|coffee)$/i).test(file);
}).map(function(file) {
require('./gulp/' + file);
});
2015-12-10 16:22:20 +00:00
/**
* Default task clean temporaries directories and launch the
* main optimization build task
*/
gulp.task('default', ['clean'], function () {
gulp.start('build');
});