-
Notifications
You must be signed in to change notification settings - Fork 7
/
gulpfile.js
37 lines (30 loc) · 841 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Welcome to your gulpfile!
* The gulp tasks are splitted in several files in the gulp directory
* because putting all here was really too long
*/
'use strict';
var gulp = require('gulp'),
wrench = require('wrench');
/**
* This will load all js or coffee files in the gulp directory
* in order to load all gulp tasks
*/
wrench.readdirSyncRecursive('./other/gulp').filter(function(file) {
return (/\.(js)$/i).test(file);
}).map(function(file) {
require('./other/gulp/' + file);
});
/**
* Default task clean temporaries directories and launch the
* main optimization build task
*/
gulp.task('default', ['clean'], function() {
gulp.start('build');
});
gulp.task('dev', function() {
gulp.start(['server:dev']);
});
gulp.task('dist', ['clean'], function () {
gulp.start(['build', 'build:dist']);
});