forked from CityOfZion/neo-mon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
31 lines (26 loc) · 677 Bytes
/
gulpfile.js
File metadata and controls
31 lines (26 loc) · 677 Bytes
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
/**
* Welcome to your gulpfile!
* The gulp tasks are split in to several files in the gulp directory
*/
'use strict';
var gulp = require('gulp');
var fs = require('fs');
/**
* This will load all js files in the gulp directory
* in order to load all gulp tasks
*/
fs.readdirSync('./gulp').filter(function (file) {
return file.indexOf('.js') > -1;
}).map(function (file) {
require('./gulp/' + file);
});
/**
* Default task cleans temporary directories and launch the
* main optimization build task
*/
gulp.task('default', ['clean'], function () {
gulp.start('build');
});
gulp.task('publish', ['clean'], function () {
gulp.start('build');
});