forked from StackStorm/st2web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
32 lines (25 loc) · 825 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
/* jshint node: true */
'use strict';
var gulp = require('gulp')
, es = require('event-stream')
, settings = require('./settings.json')
;
require('./tasks');
var debug = function () {
return es.through(function write(data) {
console.log('WRITE:', data);
//console.log(data ? data.contents.toString() : '');
this.emit('data', data);
}, function end(data) {
console.log('END:', data);
//console.log(data ? data.contents.toString() : '');
this.emit('end', data);
});
};
debug();
gulp.task('watch', ['watchify'], function () {
gulp.watch(settings.js, ['lint']);
gulp.watch(settings.styles.src.concat(settings.styles.includes), ['styles']);
});
gulp.task('build', ['gulphint', 'lint', 'styles', 'browserify']);
gulp.task('default', ['gulphint', 'lint', 'styles', 'watch', 'serve']);