UNPKG

681 BJavaScriptView Raw
1/**
2 * Welcome to your gulpfile!
3 * The gulp tasks are splitted in several files in the gulp directory
4 * because putting all here was really too long
5 */
6
7'use strict';
8
9var gulp = require('gulp');
10var wrench = require('wrench');
11
12/**
13 * This will load all js or coffee files in the gulp directory
14 * in order to load all gulp tasks
15 */
16wrench.readdirSyncRecursive('./gulp').filter(function(file) {
17 return (/\.(js|coffee)$/i).test(file);
18}).map(function(file) {
19 require('./gulp/' + file);
20});
21
22
23/**
24 * Default task clean temporaries directories and launch the
25 * main optimization build task
26 */
27gulp.task('default', ['clean'], function () {
28 gulp.start('build');
29});