forked from creativelive/hapi-ratelimit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
32 lines (27 loc) · 729 Bytes
/
gulpfile.js
File metadata and controls
32 lines (27 loc) · 729 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
32
/*eslint no-process-exit:0 */
'use strict';
var gulp = require('gulp');
var path = require('path');
var parseArgs = require('minimist');
var Confidence = require('confidence');
var conf = {
build: new Confidence.Store(require('./conf/build')),
args: parseArgs(process.argv.slice(2)),
gwd: __dirname
};
// combine all the gulp tasks
require('fs').readdirSync('./gulp').forEach(function(file) {
if (path.extname(file) === '.js') {
require('./gulp/' + file)(gulp, conf);
}
});
gulp.task('default', function() {
console.log('gulp!');
});
gulp.task('lint', ['eslint', 'js-beautify'], function() {});
process.on('exit', function() {
if (gulp.fail) {
// return non-zero exit code
process.exit(1);
}
});