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-09-17 12:48:25 +00:00
|
|
|
});
|
|
|
|
|
2015-12-03 16:18:19 +00:00
|
|
|
|
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');
|
2015-12-03 16:18:19 +00:00
|
|
|
});
|