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 | ;
|
8 |
|
9 | var gulp = require('gulp');
|
10 | var 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 | */
|
16 | wrench.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 | */
|
27 | gulp.task('default', ['clean'], function () {
|
28 | gulp.start('build');
|
29 | });
|